Csound Csound-dev Csound-tekno Search About

-t flag/accessing the command line

Date1999-06-15 00:50
FromDavid Frost
Subject-t flag/accessing the command line
I want to add a -t flag to the command line so that I may use tempo and
tempest in my orchestra file.  I mostly use "winsound 3.48" but have
tried using a batch file on a mac. If you know a way on your platform,
I can download the same version on to the same platform. The trouble
with winsound is as follows. It gives you an "Extra" option where you
find flags.  The -t flag has only a numeric value to enter into the -t
option.  This numeric value would then determine your default tempo
until instructed by the orc. otherwise, right?  No,  it doesn't even
change the tempo of the piece.  So, I tried running csound through the
"Run" option in the "Start" menu, giving it the correct directory then
the name of the program, csound -t orchname filename scorename: Csound
perf's but gives me an "illegal tempo error."  I've given it a -t flag
value and erased my tempo value, but I still get the error.  As for the
mac's Csound,  I tried entering a command line into a batch file
(although I am not quite aware of its function).  It didn't work.  Any
help would very much appreciated.  Thanks for your time.

              Nicholas Frost


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Date1999-06-15 13:53
Fromjpff@maths.bath.ac.uk
SubjectRe: -t flag/accessing the command line
>From the code...
          case 't':
            FIND(Str(X_1063,"no tempo value"));
            sscanf(s,"%d%n",&O.cmdTempo, &n);/* use this tempo .. */
            s += n;
            if (O.cmdTempo <= 0) dieu(Str(X_890,"illegal tempo"));
            O.Beatmode = 1;       /* on uninterpreted Beats */
            break;

The bug is that in winsound I fail to set O.Beatmode and so the -t
stufff is ignored.  

So, I will fix...... Sorry