Music Maker

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
electricpedals
 
Posts: 3
Joined: Wed Dec 07, 2016 12:28 pm

Music Maker

Post by electricpedals »

Hi
I just have a possible silly question.
I'm trying to use the VS1053b Percussion Instruments (GM1+GM2).
Do I change the midiSetChannelBank(0, VS1053_BANK_MELODY)?
If I change the parameter to either:

#define VS1053_BANK_DRUMS1 0x78
#define VS1053_BANK_DRUMS2 0x7F

It does not seem to work and I can't select the drum kit?

Grateful for any help
Thanks

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Music Maker

Post by mikeysklar »

It looks like you have the right idea. Is this what you have tried:

Code: Select all

midiSetChannelBank(0, VS1053_BANK_DRUMS1);

Code: Select all

midiSetChannelBank(0, VS1053_BANK_DRUMS2);
from the datasheet:
0x00: bank select (0 is default, 0x78 and 0x7f is drums, 0x79 melodic)
https://www.vlsi.fi/fileadmin/datasheets/vs1053.pdf (pg31 and pg32)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”