Closed pmalacho-mit closed 2 years ago
first attempt: https://github.com/mitmedialab/prg-extension-boilerplate/commit/4589a071e4cdc6ba9ae2e4814c6533c828b1f3e0. This commit has 'scrolling' visualizations for the sheet music, as well as 'scrolling' visualizations for waveforms, with the caveat that the colors that notes are being re-drawn as don't seem to match the original color that it was displayed as. Have not worked enough with the frequency/spectrogram visualizations yet.
somewhat working: https://github.com/mitmedialab/prg-extension-boilerplate/commit/71aedc321239ce41fe1ff5df1d62786899150cf2. This commit fixes two bugs:
staff
of NaN
for sheet music visualization
staff
is to the extreme of the frequency range that the note is in. This is undesirable in the long run, but suffices as a temporary fix until we figure out what to do with notes outside of the standard sheet music visualization range
set visualization mode to _ with _
block created an issue where magenta gives us some notes with a duration
of 0
, and in https://github.com/mitmedialab/prg-extension-boilerplate/blob/1cc6b97864cea89afd968653d2c45f669492ee90/packages/scratch-vm/src/extensions/scratch3_musiccreation/sheetmusic.js#L880 that was creating Infinity
, causing the loop to never haltremaining issues:
(2) is mostly fixed by https://github.com/mitmedialab/prg-extension-boilerplate/commit/6ef8f8ac6bbc6de188e3fdfde74a3cdfc5fc0731 aside from a small issue with the legend
edit: (2) fixed by https://github.com/mitmedialab/prg-extension-boilerplate/commit/eced762021cd1b3665f47158dfe6f28b68be99ce
(3) is fixed by https://github.com/mitmedialab/prg-extension-boilerplate/pull/122, (1) is outdated
Make visuals 'scroll' as new items are added. Still TBD.
Some things to consider: