Questions tagged [music-notation]

This tag relates to all types of music notation (chords, tablatures or music score).

This tag relates to all types of music notation (chords, tablatures or music score). It may also be used for questions relating to aspects of music theory (chord progressions, etc.) that are not strictly notation-dependent. It should not be used for audio music generation, audio file players, etc..

85 questions
1
vote
1 answer

Lua Musical Notes to Numbers

I need to convert some musical note inputs representing a chord to numbers above it's root note 0 using Lua. So from the midi data we get the notes of a C13 Chord input: C, E, G, A#, D, F, A as the root note 0 is C we start on the C…
LuaStart
  • 397
  • 2
  • 11
1
vote
1 answer

Spiral Loss Function for Music Encoding

I am trying to develop an autoencoder for music generation; in pursuit of that end, I am attempting to develop a loss function which captures musical relationships. My current idea is a 'Spiral' loss function, which is to say that if the system…
bgenchel
  • 3,739
  • 4
  • 19
  • 28
1
vote
1 answer

Function with input prints out nothing

Ok so I'm trying to get z.ExNote() to print out an image (of an 8th note) onto a page of sheet music for an app I'm building. Basically every variable just has to do with the (x,y) coordinates of where the note is to be placed. .ExNote() is a…
1
vote
1 answer

java how to draw a G-clef and F-clef using points or curves

I am making a music app using Graphics 2D, and I have managed to draw the stave and the music notes. I am now trying to draw a G-clef and an F-clef If there is another possible way to do it, I will appreciate. NB: I have looked around for two…
Josiah
  • 118
  • 10
1
vote
2 answers

Chords in MIDI?

I'm looking for a way to represent chords in a MIDI file. Note that I'm not looking to represent chord voicings. That can be trivially done with multiple note-on messages. But if I do that, then I have to do some sort of note-on to chord analysis…
K Richard Pixley
  • 617
  • 1
  • 6
  • 10
1
vote
1 answer

use Lilypond to transpose pattern around circle of fifths

I want to provide a pattern (e.g., the C major arpeggio, C E G) and have Lilypond automatically show it transposed (as one score) in all 12 scales. Here's my current attempt: music = { c' e' g' s } \new Staff { \transpose c c { \music } …
scaramouche
  • 461
  • 2
  • 12
1
vote
1 answer

What is the canonical way to invert a chord in Teoria.js

Using Web MIDI andTeoria.JS I'm trying to build a web based a chords controller. I found a way to generate chords for a scale thanks to teoria-chord-progression and then get the midi codes for it. Now I would like to get the midi notes for the…
Jonathan Raoult
  • 812
  • 7
  • 10
1
vote
0 answers

some ideas of how export a hymn to XML without losing the position of chords

I created a program to move from PDF to XML, but for some reason the chords change places unlike the original. I wanted to ask to see if you give me any idea to help me. I'm a bit stuck Actualy this is my xml code:
Gonay Pico
  • 29
  • 7
1
vote
2 answers

Drawing music notes in android app

I'm trying to make an app which has some music instruments to play with. When I play the instrument, the app will draw the music note by following the tempo. The video shown is what I'm trying to put into my app. Video Now, I'm trying to draw the…
vincentsiau
  • 61
  • 4
  • 11
1
vote
2 answers

Finding note onsets in musicXML

I am trying to parse a list of which pitch classes are being played at each division in a musicXML file with java and jSoup. The output should look like this (one line per division): A C E A C A C D (for instance) I could fill up this array based…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
1 answer

Ocaml : how to transform note to musical chords

I would like to create a chord from a note and a list in ocaml. the structure : type objet_musical = | Note of (int * int * int) | Silence of int | Sequence of objet_musical list | Parallel of objet_musical list and the list let…
Marie
  • 21
  • 3
1
vote
0 answers

Javascript allowing musescore text to be rendered in a browser

I need a good javascript library that can render musical notation to a browser page. VexFlow seemed promising, but it doesn't look like it could support multiple staves like are done in the piano or larger group orchestrations, and frankly a lot of…
blaineh
  • 2,263
  • 3
  • 28
  • 46
1
vote
2 answers

Lilypond: repeat bar line do not show in polymeter music

I am working with some polymetric music (i.e., different time signatures for individual instruments), and obviously the bar lines will not always coincide. To do this, I substitute the layout { } for the following code: \layout { \context {…
gilbertohasnofb
  • 1,984
  • 16
  • 28
1
vote
2 answers

Extracting measure number of key change in MusicXML

I am working a lot with MusicXML files and am trying to compile a list of the bars in which there are key changes in a number of pieces. I am in need of some help using python to first identify where the tags occur in the XML file, and then…
user2025161
  • 103
  • 1
  • 5
1
vote
4 answers

python looping index

I am trying to write a program for getting the notes of a musical scale. This is what I've got up to now but it seems ridiculously complicated!! what am I missing? Is it supposed to be like that? notes = [ "c", "c#", "d", "d#", "e", "f", "f#", "g",…
Stamoulohta
  • 649
  • 1
  • 7
  • 21