fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Re: Can I load a list of commands?


From: Toby
Subject: [fluid-dev] Re: Can I load a list of commands?
Date: Mon, 9 Jan 2006 22:48:12 +0100
User-agent: Mutt/1.5.9i

Dave Serls wrote:
> A script can be made to do this

Here's a basic shell script version, for those who aren't familiar with
the syntax (and don't have Rex or whatever it is handy! :-)
It only adds an "incl filename" command.

----------------------------------------
#!/bin/sh

while read cmd rest
do
        case "$cmd" in
        incl)
                cat "$rest"
                ;;
        q|quit)
                echo "quit"
                exit 0
                ;;
        *)
                echo "$cmd $rest"
                ;;
        esac
done | fluidsynth "$@"
----------------------------------------

It's made to be called in place of fluidsynth itself.  
Suppose the script is called fs, then you would use it like this:  

        fs [options] [soundfonts] [midifiles]


Toby    

-- 
Pascal is for building pyramids—imposing, breathtaking structures
built by armies pushing heavy blocks into place.
Lisp is for building organisms . . .            —Alan Perlis




reply via email to

[Prev in Thread] Current Thread [Next in Thread]