-
I am trying to convert 2 integers into MSB and LSB values to pass into the bank helper via variables. I can't figure out how to properly convert the values to the expected format, nor find an example, and I would greatly appreciate if an example could be added. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi! Thanks for asking! |
Beta Was this translation helpful? Give feedback.
-
Just a note: you should chain your calls, otherwise the bank select goes to the tick 0: |
Beta Was this translation helpful? Give feedback.
-
To follow-up your question... |
Beta Was this translation helpful? Give feedback.
Hi! Thanks for asking!
If you have the bank MSB and LSB as numbers, you don't have to convert them to anything.
The easiest way to add the bank messages to the MIDI track would be
smf[n].bank(channel, MSB, LSB);
Please check https://jazz-soft.net/doc/JZZ/midifile.html for more details.
You can also look at this: https://github.com/jazz-soft/test-midi-files/blob/main/code/test-control-00-20-bank-select.js