Csound Csound-dev Csound-tekno Search About

-L command line option

Date2005-12-08 23:54
From
Subject-L command line option
I'm using CSound5 on Windows 2000.  I'm trying to use the
-L option to read score events from the command line, but
it doesn't seem to be working.  It looks like it compiles
the orchestra OK, then it prints:

...
orch now loaded
stdmode = 00000000 Linefd = 0
audio buffered in 4096 sample-frame blocks
PortAudio V19-devel
PortAudio: selected output device 'Microsoft Sound Mapper
- Output'
writing 8192-byte blks of shorts to dac
SECTION 1:
ftable 1:
ftable 2:

At this point it looks like I can start typing score
events.  But when I type a score event, it isn't even
echoed to the command window.

This is the command line I'm using:

csound32 -odac -Lstdin foscil.orc midi.sco

midi.sco just generates some wave tables and then waits
(Don't be fooled by the name, I'm not using MIDI):

f1  0 4096 10   1
f2  0 4096 10   1  .5 .333 .25 .2 .166 .142 .125 .111 .1
.09 .083 .076 .071 .066 .062

f0 3600

Any idea what's wrong here?  Do I need another command
line option or something?

thanks,

Shawn

--
Shawn O'Rourke
shawn@shawn-and-kathleen.net

Date2005-12-09 00:09
FromSteven Yi
SubjectRe: -L command line option
AttachmentsNone  

Date2005-12-09 15:59
From
SubjectRe: -L command line option
Bummer - I was afraid that might be the case.

On Thu, 8 Dec 2005 16:09:59 -0800
  Steven Yi  wrote:
> Hi Shawn,
> 
> Unforunately the -L stdin feature doesn't work on 
>Windows, at least on
> 2000 and XP (not sure about 98/ME).  It's a problem of 
>how Windows
> implements pipes.  I'm not sure if there's a program yet 
>made using
> the API which uses that to feed events to Csound, but 
>without
> something like that, I'm afraid there isn't any way to 
>feed score to a
> running Csound live like you are trying to do.
> 
> steven
> 
> 
> On 12/8/05, shawn@shawn-and-kathleen.net 
> wrote:
>> I'm using CSound5 on Windows 2000.  I'm trying to use 
>>the
>> -L option to read score events from the command line, 
>>but
>> it doesn't seem to be working.  It looks like it 
>>compiles
>> the orchestra OK, then it prints:
>>
>> ...
>> orch now loaded
>> stdmode = 00000000 Linefd = 0
>> audio buffered in 4096 sample-frame blocks
>> PortAudio V19-devel
>> PortAudio: selected output device 'Microsoft Sound 
>>Mapper
>> - Output'
>> writing 8192-byte blks of shorts to dac
>> SECTION 1:
>> ftable 1:
>> ftable 2:
>>
>> At this point it looks like I can start typing score
>> events.  But when I type a score event, it isn't even
>> echoed to the command window.
>>
>> This is the command line I'm using:
>>
>> csound32 -odac -Lstdin foscil.orc midi.sco
>>
>> midi.sco just generates some wave tables and then waits
>> (Don't be fooled by the name, I'm not using MIDI):
>>
>> f1  0 4096 10   1
>> f2  0 4096 10   1  .5 .333 .25 .2 .166 .142 .125 .111 .1
>> .09 .083 .076 .071 .066 .062
>>
>> f0 3600
>>
>> Any idea what's wrong here?  Do I need another command
>> line option or something?
>>
>> thanks,
>>
>> Shawn
>>
>> --
>> Shawn O'Rourke
>> shawn@shawn-and-kathleen.net
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to 
>>csound-unsubscribe@lists.bath.ac.uk
>>
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to 
>csound-unsubscribe@lists.bath.ac.uk

--
Shawn O'Rourke
shawn@shawn-and-kathleen.net