On 2014-08-29 08:21, Peter Billam wrote:
Greetings,

fluidsynth.lua is now apparently approaching stability at 1.4:
   http://www.pjb.com.au/comp/lua/fluidsynth.html
and the two little apps which motivated it are working happily:
   http://www.pjb.com.au/midi/fluadity.html
   http://www.pjb.com.au/midi/midi2wavs.html

So as my contribution to feature-creep, I'd like to suggest
   fluid_player_add(synth, '-')
should read the midi file from stdin.  I do a lot of this, eg:
   muscript -midi foo | midichord -f 0,2 -aco 4 | fluadity -
and it didn't work for me from the C-library itself,
so in fluadity I detect '-' and slurp into a tmp file ...

To avoid the tmp file, you can just load it into memory and use fluid_player_add_mem.

(I hope this isn't an RTFM...)

I don't think so, but have you tried using "/dev/stdin" instead of "-"? (I'm not very familiar with /dev/stdin myself so this is just a guess.)

Anyway, if you feel motivated, feel free to write a patch, should be easy to implement in src/midi/fluid_midi.c, function fluid_player_load.

// David

_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to