Csound Csound-dev Csound-tekno Search About

[Csnd] schedwhen

Date2013-09-27 00:10
Frompeiman khosravi
Subject[Csnd] schedwhen
Hello, 

I have a question about schedwhen.
instr 1

kmtr metro 100				;produce 100 triggers per second
     schedwhen kmtr, 2, 1, .3		;but schedwhen plays instr. 2 only once		

endin
Why is instr 2 played only once in the above example form the manual? Shouldn't it play each time there is a zero to non-zero transition?

Thanks
Peiman

Date2013-09-27 05:55
FromRory Walsh
SubjectRe: [Csnd] schedwhen
schedkwhen is your friend :)

instr 1
kmtr metro 100
     schedkwhen kmtr, 0, 1, 2, 0, .3
endin

On 27 September 2013 00:10, peiman khosravi  wrote:
> Hello,
>
> I have a question about schedwhen.
>
> instr 1
>
> kmtr metro 100				;produce 100 triggers per second
>      schedwhen kmtr, 2, 1, .3		;but schedwhen plays instr. 2 only once		
>
> endin
>
> Why is instr 2 played only once in the above example form the manual?
> Shouldn't it play each time there is a zero to non-zero transition?
>
> Thanks
> Peiman
>
>
>
> www.peimankhosravi.co.uk || RSS Feed || Concert News

Date2013-09-27 08:14
Frompeiman khosravi
SubjectRe: [Csnd] schedwhen
How could I have missed that!

Thanks Rory. 

P



On 27 September 2013 05:55, Rory Walsh <rorywalsh@ear.ie> wrote:
schedkwhen is your friend :)

instr 1
kmtr metro 100
     schedkwhen kmtr, 0, 1, 2, 0, .3
endin

On 27 September 2013 00:10, peiman khosravi <peimankhosravi@gmail.com> wrote:
> Hello,
>
> I have a question about schedwhen.
>
> instr 1
>
> kmtr metro 100                                ;produce 100 triggers per second
>      schedwhen kmtr, 2, 1, .3         ;but schedwhen plays instr. 2 only once
>
> endin
>
> Why is instr 2 played only once in the above example form the manual?
> Shouldn't it play each time there is a zero to non-zero transition?
>
> Thanks
> Peiman
>
>
>
> www.peimankhosravi.co.uk || RSS Feed || Concert News


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"