Disclaimer: This is an idea, it might not perform as desired.
When using a slider, soundHandler could make MIDI files for the surrounding notes. Then we could change playback to be smoother by playing a pre-generated MIDI.
Current playNote() method:
progress is changed > stop playback > creating new MIDI > play MIDI
Proposed changes:
chord is changed > generate MIDI for progress 0 and +/- 3 surrounding progress
progress is changed > mediaplayer plays pre-made MIDI > destory/generate MIDI for new surrounding notes as needed
Disclaimer: This is an idea, it might not perform as desired.
When using a slider, soundHandler could make MIDI files for the surrounding notes. Then we could change playback to be smoother by playing a pre-generated MIDI.
Current
playNote()
method: progress is changed > stop playback > creating new MIDI > play MIDIProposed changes: chord is changed > generate MIDI for progress 0 and +/- 3 surrounding progress progress is changed > mediaplayer plays pre-made MIDI > destory/generate MIDI for new surrounding notes as needed