Csound Csound-dev Csound-tekno Search About

[Csnd] start/stop/reset/start odness

Date2014-02-07 20:49
Fromzappfinger
Subject[Csnd] start/stop/reset/start odness
In my csound server project I use the Python API and sometimes need to do the
following;
(leaving out some code)

csoundInitialize(3)
csound = Csound()
csound.SetOption("-odac")
csound.compileOrc(..)

csound.start()
..
csound.stop()
..
csound.reset()
csound.start()

After the second start csound behaves differently
I had 0dbfs set to 1, but now it is 
0dBFS level = 32768.0

but worst of all:
writing 512-byte blks of shorts to test.wav (WAV)

now appears, and it is writing this wave very fast, filling up my hard disk.
(in my initial options I had set to output to dac only)
Do I have to set the options again after the reset?
Also compile again, I guess?

Richard






--
View this message in context: http://csound.1045644.n5.nabble.com/start-stop-reset-start-odness-tp5732438.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-07 23:55
FromVictor Lazzarini
SubjectRe: [Csnd] start/stop/reset/start odness
yes, after Reset() options are back to defaults.

Victor
On 7 Feb 2014, at 20:49, zappfinger  wrote:

> In my csound server project I use the Python API and sometimes need to do the
> following;
> (leaving out some code)
> 
> csoundInitialize(3)
> csound = Csound()
> csound.SetOption("-odac")
> csound.compileOrc(..)
> 
> csound.start()
> ..
> csound.stop()
> ..
> csound.reset()
> csound.start()
> 
> After the second start csound behaves differently
> I had 0dbfs set to 1, but now it is 
> 0dBFS level = 32768.0
> 
> but worst of all:
> writing 512-byte blks of shorts to test.wav (WAV)
> 
> now appears, and it is writing this wave very fast, filling up my hard disk.
> (in my initial options I had set to output to dac only)
> Do I have to set the options again after the reset?
> Also compile again, I guess?
> 
> Richard
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/start-stop-reset-start-odness-tp5732438.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 



Date2014-02-08 10:02
Fromzappfinger
Subject[Csnd] Re: start/stop/reset/start odness
Ok, makes sense.



--
View this message in context: http://csound.1045644.n5.nabble.com/start-stop-reset-start-odness-tp5732438p5732445.html
Sent from the Csound - General mailing list archive at Nabble.com.