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 called
in your distribution) before building fluidsynth.

Cheers,

    Marcus

Am So., 23. Dez. 2018 um 23:34 Uhr schrieb Justin <justin2...@gmail.com>:

> 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. Created build directory and ran 'cmake ..' from build directory
>    3. Ran 'make fluidsynth' from build directory. This seemed to create a
>    binary file called 'fluidsynth' in build/src directory
>    4. Downloaded a sound font file from
>    https://github.com/urish/cinto/blob/master/media/FluidR3%20GM.sf2
>    (renamed to sf.sf2 for convenience
>
>
> Running the binary gave the following output:
>
> > fluidsynth -ni sf.sf2 some_midi.mid -F output.wav -r 44100
>
> FluidSynth runtime version 2.0.2
>
> Copyright (C) 2000-2018 Peter Hanappe and others.
>
> Distributed under the LGPL license.
>
> SoundFont(R) is a registered trademark of E-mu Systems, Inc.
>
>
>
>
> Rendering audio to file 'output.wav'..
>
>
> However, when I tried to play the output.wav file that was generated, it
> just gave a short loud click/pop.
>
>
> I'm not sure what I'm doing wrong. Could someone give me some advice for
> how to figure out how to get this working? Or is there a better way for me
> to get fluidsynth to work on AWS lambda?
>
>
> Thanks!
>
> Justin
>
>
> _______________________________________________
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to