09-12-2024, 11:14 PM
Looks like QB64-PE has a good GM (general midi) soundfont. Most GM sound fonts have 128 sounds plus about 48 drum sounds to be used on channel 10. I've discovered that MIDI channel 10 does indeed tap into the standard drum kit sounds, So a midi track assigned channel 10 will always play the drumkit sounds, no matter what program # you give it.. You play the drum kits sounds by giving notes as well. Not all notes have drum kit sounds. You can hear the drum kit sounds by playing all notes on channel 10 like this.
Also, I've found that there is more than 128 available program sounds in our soundfont, I've used program numbers up to 255 and it has a sound. Some of those extended numbers sounds good, a lot are repeated, a lot of synth sounds. Haven't listened to them all. You can't go higher that 255, that's the limit for a CHR$ value that it goes into.
- Dav
Code: (Select All)
'play all notes
all$ = "ena0A0b0c1C1d1D1e1f1F1g1G1a1A1b1c2C2d2D2e2f2F2g2G2a2A2b2"
all$ = all$ + "c3C3d3D3e3f3F3g3G3a3A3b3c4C4d4D4e4f4F4g4G4a4A4b4"
all$ = all$ + "c5C5d5D5e5f5F5g5G5a5A5b5c6C6d6D6e6f6F6g6G6a6A6b6"
all$ = all$ + "c7C7s7S7e7f7F7g7G7a7A7b7c8"
note$ = MidiNotes$(160, 1, all$, 10) '<<< channel 10 uses drum kit sounds always
midisong& = _SndOpen(note$, "memory")
_SndPlay midisong&
Sleep
Also, I've found that there is more than 128 available program sounds in our soundfont, I've used program numbers up to 255 and it has a sound. Some of those extended numbers sounds good, a lot are repeated, a lot of synth sounds. Haven't listened to them all. You can't go higher that 255, that's the limit for a CHR$ value that it goes into.
- Dav