is there a way to use a soundfont not provided by magenta.js? #43
-
Hello! I'd like to embed a roland-esque soundfont onto my site to use with this lovely tool, but i can't seem to get ti to work. Is there functionality to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Do you mean using a custom soundfont with the player? That would require converting it to the right format. I believe @majorcyto has done this for musicalnexus.net. |
Beta Was this translation helpful? Give feedback.
-
Hey! Was redirected here from #62 - what I did was modify the script found here: https://github.com/mudcube/MIDI.js/blob/master/generator/ruby/soundfont_builder.rb which turns a |
Beta Was this translation helpful? Give feedback.
Hey! Was redirected here from #62 - what I did was modify the script found here: https://github.com/mudcube/MIDI.js/blob/master/generator/ruby/soundfont_builder.rb which turns a
sf2
file into a format used for MIDI.js, to the format Magenta expects. It seems to work for me using this library, so thought I'd share: https://gist.github.com/valentijnnieman/00d93627a0da7d68a836553748f73564 note the comment that says to also manually create asoundfont.json
file!