mudcube / MIDI.js

:musical_keyboard: Making life easy to create a MIDI-app on the web. Includes a library to program synesthesia into your app for memory recognition or for creating trippy effects. Convert soundfonts for Guitar, Bass, Drums, ect. into code that can be read by the browser. Supports multiple simultaneous instruments and perfect timing.
http://mudcu.be/midi-js/
MIT License
3.8k stars 641 forks source link

Sounddont note true lengths #237

Open MSB89 opened 6 years ago

MSB89 commented 6 years ago

Is it possible to create a sound font with soundfont_builder.rb that will play for the length of any note without decaying?

My midi sounds weird compared to FluidSynth. In FluidSynth my midi notes will play for the length of how the note is defined in the midi file.

In midi.js the sound font will only last for the length defined in soundfont_builder.rb and shorter notes will trail on longer than desired

hmoffatt commented 6 years ago

Midi.js can't loop the samples to sustain a note indefinitely like a real soundfont player. You can change the builder to increase the 3 seconds but it will make your soundfont bigger and it still won't be indefinite.

Shorter notes should not be a problem though.

Sent from my android device.

-----Original Message----- From: MSB89 notifications@github.com To: "mudcube/MIDI.js" MIDI.js@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Sent: Sat., 26 May 2018 7:56 Subject: [mudcube/MIDI.js] Sounddont note true lengths (#237)

Is it possible to create a sound font with soundfont_builder.rb that will play for the length of any note without decaying?

My midi sounds weird compared to FluidSynth. In FluidSynth my midi notes will play for the length of how the note is defined in the midi file.

In midi.js the sound font will only last for the length defined in soundfont_builder.rb and shorter notes will trail on longer than desired

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/mudcube/MIDI.js/issues/237