gleitz / midi-js-soundfonts

Pre-rendered General MIDI soundfonts that can be used immediately with MIDI.js
http://blog.gleitzman.com/post/63283830260/midi-js-playing-audio-in-the-browser-with-javascript
MIT License
678 stars 148 forks source link

Does the soundfont file contain drum sounds? #5

Closed clubfest closed 10 years ago

clubfest commented 10 years ago

I saw a chart about the sound for channel 10 being:

35 Acoustic Bass Drum
36 Bass Drum 1
37 Side Stick
38 Acoustic Snare

Are those in the soundfont file you use?

gleitz commented 10 years ago

The soundfont I used (http://www.musescore.org/download/fluid-soundfont.tar.gz) has different instruments for those numbers.

    'Bass': ['33 Acoustic Bass', '34 Electric Bass (finger)', '35 Electric Bass (pick)', '36 Fretless Bass', '37 Slap Bass 1', '38 Slap Bass 2', '39 Synth Bass 1', '40 Synth Bass 2'],

If you were to use a different soundfont with those instruments and run the Soundfont builder over it I believe it would work.

gregdyke commented 10 years ago

I'm not sure where the percussion is in the fluid soundfont, but this is midi 1 specification for channel 10: http://www.midi.org/techspecs/gm1sound.php

These are not program numbers (choosing instruments), but note numbers, which choose percussion sounds specifically when played on channel 10

clubfest commented 10 years ago

Using the synth drum sound provided in MIDI.js sounds okay for some song examples I have. I guess I will stick with it for now. It seems that the drum channel as parsed by jasmid and MIDI.js is 9 instead.

markusthoemmes commented 10 years ago

I don't see how this is closed, as far as i can tell there is still no percussion track in the soundfont, which would be very handy.

gleitz commented 10 years ago

I will accept a pull request that adds percussion. The answer to "Does the soundfont file contain drum sounds?" is no.

gregdyke commented 10 years ago

I believe you if you say the FluidR3_GM soundfont does not contain drum sounds. But I am curious whether you have actually checked [this would save me the trouble of checking - since a GM1 compatible soundfont should contain drum sounds, so it's reasonable to expect it does] or whether the MIDI.js soundfont-generator does not output them [I checked the source code: it wouldn't output them even if they were there].

gleitz commented 10 years ago

FluidR3_GM may contain drum sounds – I have not checked. You are correct that the script as written will not generate them.

drumnation commented 7 years ago

I realize this is a really old topic, but I was wondering if anyone knows how I would go about getting this to convert/generate the percussion sounds from the SoundFont or would anyone recommend a better way to have the drum channels from a midi file play "standard kit"?