jlstuart125 / NoteGoat

Program implemented in MATLab to read images of piano sheet music and return a MIDI file of what it sounds like.
0 stars 0 forks source link

Make a function to extract and store all bars from subwindows #5

Closed jlstuart125 closed 1 year ago

jlstuart125 commented 1 year ago

Once the staff is isolated, it is simple to locate the lines that separate the bars of music. We may use these lines to create new sub-windows and then make a function to process all the notes within it.

jlstuart125 commented 1 year ago

functions get_measure and get_measure_lines work together to accomplish this. The functions are set up to get only a specific measure, however, so another function containing these two can be made. There is the issue of storing the measures, though. Because the measures are all different sizes, it isn't as simple as throwing it all in a matrix like was done for the subwindows.