skrytt / baselisk-rs

Learning Rust by writing a musical synthesizer
MIT License
1 stars 1 forks source link

Intermediate MIDI processing #7

Open skrytt opened 5 years ago

skrytt commented 5 years ago

There is an enumeration of MidiEvent types that can be received. Currently, processor types parse MIDI events of these types directly in their code.

I'd like to decouple the two by introducing intermediate processing, so that I can simplify the processor types themselves. This ticket is to track thoughts on what things could be helpful.

skrytt commented 5 years ago

I introduced a note selector type here, that would translate MIDI NoteOn/NoteOff into note change messages based on a high-note-priority selection algorithm: https://github.com/skrytt/baselisk-rs/commit/396a8acaf3e24c6868aa44932d4f14a41478fe7a

skrytt commented 5 years ago

Also introduced a pitch bend processor: https://github.com/skrytt/baselisk-rs/commit/ea9b8c1c826efb95f2b1ec25f6decf684954d959