|
From: | David Henningsson |
Subject: | Re: [fluid-dev] fluid_player_add(synth, '-') |
Date: | Fri, 29 Aug 2014 09:16:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |