You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to issue #379, there should be a verovio/js toolkit function called getElementsAtTick(). This would allow the tempo in a MIDI file to be changed after it has been created by the verovio toolkit, but still have it align with the notation (although real-time change of the tempo while the MIDI is performed might be more complicated). Also this would require the MIDI playback device to know what MIDI tick it is currently playing. This should be trivial, since it has to convert this tick value into a time in seconds.
MIDI ticks are similar to score-time, and they remain constant regardless of the tempo. There is a data field in a MIDI file header which specifies how many ticks are in a quarter note, so this is close to the qstamp method I described in issue #379, so the new function could equivalently or alternatively be called getElementsAtQuarterNote() (which would not be MIDI-specific).
This functionality would allow users to change the tempo of a MIDI performance, such as through a tempo slider, and the MIDI file would not have to be recalculated by verovio in order for the audio playback to sync with the MIDI playback.
The text was updated successfully, but these errors were encountered:
Related to issue #379, there should be a verovio/js toolkit function called getElementsAtTick(). This would allow the tempo in a MIDI file to be changed after it has been created by the verovio toolkit, but still have it align with the notation (although real-time change of the tempo while the MIDI is performed might be more complicated). Also this would require the MIDI playback device to know what MIDI tick it is currently playing. This should be trivial, since it has to convert this tick value into a time in seconds.
MIDI ticks are similar to score-time, and they remain constant regardless of the tempo. There is a data field in a MIDI file header which specifies how many ticks are in a quarter note, so this is close to the qstamp method I described in issue #379, so the new function could equivalently or alternatively be called getElementsAtQuarterNote() (which would not be MIDI-specific).
This functionality would allow users to change the tempo of a MIDI performance, such as through a tempo slider, and the MIDI file would not have to be recalculated by verovio in order for the audio playback to sync with the MIDI playback.
The text was updated successfully, but these errors were encountered: