On Friday 25 March 2011, Stefan Parviainen wrote:
> The following command
> "fluidsynth -vilF - mysoundfont.sf2 mymidifile.mid | cat"
> gives the error
> "fluidsynth: error: Failed to open audio file '-' for writing"
> 
> However,
> "fluidsynth -vilF - mysoundfont.sf2 mymidifile.mid > somefile.wav"
> works fine.
> 
> So there seems to be something strange going on with piping. Any ideas
> what the problem is or how to work around it?

FluidSynth uses libsndfile for WAV file format output (and for other types, 
except raw). WAV format is not suitable for piping. See libsndfile FAQ:
http://www.mega-nerd.com/libsndfile/FAQ.html#Q017

The workaround is selecting a different output format, like AU or RAW
$ fluidsynth -oaudio.file.type=raw -vilF - mysoundfont.sf2 mymidifile.mid | cat

> The Trac on sourceforge seems to be broken, I'm unable to browse it if
> I am logged in (goes into infinite redirect-loop) so I'm reporting the
> bug here instead.

Works fine here. Are you using this URL?
https://sourceforge.net/apps/trac/fluidsynth/

Regards,
Pedro

_______________________________________________
fluid-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to