Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-29 Thread Justin
Thanks, all! Tom, you were right, the arguments in my call were not getting used for some reason. I remedied this by taking out the "shell=True" from the call to "subprocess.check_call(fluidsynth_command)". Now the wav file can render! Now I'm onto trying to get the subsequent conversion from wav t

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-29 Thread Tom M.
> fluidsynth: error: Device does not exists For some reason fluidsynth starts the OSS audio driver rather than the file renderer. As if you were calling fluidsynth_exec/fluidsynth -ni tmp_sf2_file_name tmp_mid_file_name Make sure your python script doesn't omitt the last two flags. Note that t

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-29 Thread Marcus Weseloh
Hi Justin, You don't need a proper audio driver for fast rendering. So simply use "-a file" to select the file renderer. With the other problem I'm afraid I can't really help, I don't have any experience with this Amazon serverless computing black magic... Cheers, Marcus

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-28 Thread Justin
Thanks, great advice! I'm definitely getting further, but still facing issues. I created a new virtual ec2 instance locally on my mac, and installed all the dependencies with yum, not LinuxBrew (dependencies needed were libsndfile-devel and glib2-devel). I've generated a fluidsynth binary and I'm

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-27 Thread Marcus Weseloh
Hi Justin, Am Di., 25. Dez. 2018 um 02:36 Uhr schrieb Justin : > Cool, thanks! I've now set up a virtual EC2 instance locally on my mac, > and complied fluidsynth, as you've suggested. I'm still having execution > issues, though when I try to call the subprocess to run fluidsynth on the > lambda

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-24 Thread Justin
Cool, thanks! I've now set up a virtual EC2 instance locally on my mac, and complied fluidsynth, as you've suggested. I'm still having execution issues, though when I try to call the subprocess to run fluidsynth on the lambda as a subprocess of my python lambda function: -ni: fluidsynth_exec/fluid

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-24 Thread Marcus Weseloh
Hi! The easiest might be to skip cross compiling and build it natively. So either on an AWS instance, or on a virtual machine on your Mac. On the VM, just install the built-essential libsndfile-dev, libglib-dev and cmake packages (or whatever they are called on the distro you are using), build it

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-23 Thread Justin
Thanks for the quick reply! Installing the dependencies via homebrew fixed my issue, and fluidsynth can now do the conversion for me locally! However, I'm facing another issue now, which probably comes from the fact that I compiled the code on my mac, and I'm trying to run it on AWS lambda (which I

Re: [fluid-dev] Trouble building/using fluidsynth

2018-12-23 Thread Marcus Weseloh
Hi Justin, you probably compiled Fluidsynth without libsndfile support, so the resulting audio is a raw 16-bit signed dual-channel float audio file (so not a .wav file with proper headers). You can either convert this raw file to wav using some tool, or install libsndfile-dev (or whatever it's cal

[fluid-dev] Trouble building/using fluidsynth

2018-12-23 Thread Justin
Hello, I'm trying to compile a fluidsynth binary. For my application, I need a way to convert from midi to mp3 on an AWS lambda, and I thought that using fluidsynth would be the best way. These are the steps I took: 1. Clone fluidsynth from here: https://github.com/FluidSynth/fluidsynth 2.