Skip to content

I am having trouble passing MSB and LSB values into the bank helper. #90

Answered by jazz-soft
jeffm asked this question in Q&A

You must be logged in to vote

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

Replies: 3 comments 2 replies

You must be logged in to vote
1 reply
@jeffm

Answer selected by jeffm

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@jeffm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants