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
Discussion options

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

Comment options

You must be logged in to vote
1 reply
@jeffm
Comment options

Answer selected by jeffm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeffm
Comment options

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