eagsalazar / sf2_to_js

Gem and scripts to convert sf2 sound font files to js consumable by https://github.com/eagsalazar/midi.js
7 stars 2 forks source link

Creating .js files from sf2 in Windows? #1

Open mb2140 opened 10 years ago

mb2140 commented 10 years ago

I spent a lot of time yesterday trying to figure out how to take my existing sf2 files and translate them into .js. Has anyone had luck getting this to run in Windows?

Here is the error I get:

c:\sf2\bin>sf2_to_js to_js JV1080.sf2 -o drumMachine DL is deprecated, please use Fiddle C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.rb:26:in `': No such file or directory - which fluidsynth (Errno::ENOENT) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.r b:26:incheck_deps' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.r b:18:in initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:1 5:innew' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:1 5:in to_js' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb :27:inrun' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation .rb:126:in invoke_command' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:44 0:in start' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:2 1:in' from C:/Ruby200/bin/sf2_to_js:23:in load' from C:/Ruby200/bin/sf2_to_js:23:in'

eagsalazar commented 10 years ago

I'd be surprised if this was easy to make work on Windows. You can download and install an Ubuntu VM pretty easily if Windows is your only option.

On Sun, Sep 7, 2014 at 9:30 AM, mb2140 notifications@github.com wrote:

I spent a lot of time yesterday trying to figure out how to take my existing sf2 files and translate them into .js. Has anyone had luck getting this to run in Windows?

Here is the error I get:

c:\sf2\bin>sf2_to_js to_js JV1080.sf2 -o drumMachine DL is deprecated, please use Fiddle C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.rb:26:in `': No such file or directory - which fluidsynth (Errno::ENOENT) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.r b:26:incheck_deps' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/lib/sf2_to_js.r b:18:in initialize' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:1 5:innew' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:1 5:in to_js' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb :27:inrun' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation .rb:126:in invoke_command' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:44 0:in start' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sf2_to_js-0.0.3/bin/sf2_to_js:2 1:in' from C:/Ruby200/bin/sf2_to_js:23:in load' from C:/Ruby200/bin/sf2_to_js:23:in'

— Reply to this email directly or view it on GitHub https://github.com/eagsalazar/sf2_to_js/issues/1.

josStorer commented 1 year ago

For anyone looking for a way to run sf2_to_js on Windows, you can try this (pay attention to comments at the beginning): https://gist.github.com/josStorer/c6a15852827d20d35b64eb4e2239681a