Csound Csound-dev Csound-tekno Search About

[Csnd] turnoff not working?

Date2010-08-06 14:20
FromJoel Ross
Subject[Csnd] turnoff not working?
I am trying to turn an instrument off with turnoff.
However it doesn't seem to be having any effect.

The code I am using is:

if isamp < 48 then
	turnoff
print isamp
endif

When this is true, the instrument continues to run, and the value of
isamp is printed.

Am I missing something?

Thanks,
-Joel


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-08-06 15:07
FromVictor Lazzarini
Subject[Csnd] Re: turnoff not working?
turnoff  works at perf-time, isamp at init-time.

try this:

if ksamp < 48 then
  turnoff
  printk 1, ksamp
endif

it should not print ksamp.

Victor
On 6 Aug 2010, at 14:20, Joel Ross wrote:

> I am trying to turn an instrument off with turnoff.
> However it doesn't seem to be having any effect.
>
> The code I am using is:
>
> if isamp < 48 then
> 	turnoff
> print isamp
> endif
>
> When this is true, the instrument continues to run, and the value of
> isamp is printed.
>
> Am I missing something?
>
> Thanks,
> -Joel
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"