Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Debugging Help Wanted

Date2013-01-31 19:41
From"Art Hunkins"
SubjectRe: [Csnd] Debugging Help Wanted
Joachim,

Thanks so much; you've led me exactly to what I needed.

I had completely forgotten about (and never had used) the delayed start (p2) 
argument of event, schedkwhen and even schedule (which I ended up using). As 
you indicate, my "halt instrument 1" problem disappears when you realize 
that events can be scheduled at i-time with delayed onsets that take care of 
their own timing!

Indeed, by far the simplest solution. (I found it very interesting to be 
able to schedule an infinite number of overlapping samples from a simple 
i-time loop in instr 1. No p-time activity at all.)

Art Hunkins

----- Original Message ----- 
From: "joachim heintz" 
To: 
Sent: Wednesday, January 30, 2013 10:43 AM
Subject: Re: [Csnd] Debugging Help Wanted


> or even more simple, i think (no need to do anything in performance time 
> in instr 1):
>
> 
> 
> -o distill.wav -m0d -b512 -B2048
> 
> 
> sr      = 16000
> ksmps   = 100
> nchnls  = 1
>
>       instr 1
> ilen1   filelen "1.wav"
> ilen2   filelen "2.wav"
> event_i "i", 2, 0, ilen1
> event_i "i", 3, ilen1-1, ilen2
>       endin
>
>       instr 2
> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
> aout    diskin  "1.wav", 1
>       out     aout * kamp
>       endin
>
>       instr 3
> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
> aout    diskin  "2.wav", 1
>       out     aout * kamp
>       endin
>
> 
> 
> i1 0 .1
> e
> 
> 
>
> joachim
>
>
> Am 30.01.2013 10:17, schrieb Victor Lazzarini:
>> 
>> 
>>
>> -o distill.wav -m0d -b512 -B2048
>>
>> 
>> 
>>
>>
>> sr      = 16000
>> ksmps   = 100
>> nchnls  = 1
>>
>> instr 1
>>
>> ktime   times
>> itime1  init    0
>> ilen1   filelen "1.wav"
>> ilen2   filelen "2.wav"
>> ktrig2  trigger ktime, itime1, 0
>>        schedkwhen ktrig2, 0, 0, 2, 0, ilen1
>> itime2  =       ilen1 - 1
>> p3 = ilen1                      ; >>>>  this makes instr 1 last for ilen1 
>> secs no matter what the original p3 was <<<<
>> ktrig3  trigger ktime, itime2, 0
>>        schedkwhen ktrig3, 0, 0, 3, 0, ilen2
>>
>>        endin
>>
>>        instr 2
>>
>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>> aout    diskin  "1.wav", 1
>>        out     aout * kamp
>>
>>        endin
>>
>>        instr 3
>>
>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>> aout    diskin  "2.wav", 1
>>        out     aout * kamp
>>
>>        endin
>>
>> 
>>
>> 
>>
>> i1 0 1
>>
>> e
>>
>> 
>> 
>
>
> 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"
> 


Date2013-02-01 09:08
Fromjoachim heintz
SubjectRe: [Csnd] Debugging Help Wanted
art -

thanks for the feedback. i am glad it is working for you, and with 
transparent code. good luck for your activities -

	joachim



Am 31.01.2013 20:41, schrieb Art Hunkins:
> Joachim,
>
> Thanks so much; you've led me exactly to what I needed.
>
> I had completely forgotten about (and never had used) the delayed start
> (p2) argument of event, schedkwhen and even schedule (which I ended up
> using). As you indicate, my "halt instrument 1" problem disappears when
> you realize that events can be scheduled at i-time with delayed onsets
> that take care of their own timing!
>
> Indeed, by far the simplest solution. (I found it very interesting to be
> able to schedule an infinite number of overlapping samples from a simple
> i-time loop in instr 1. No p-time activity at all.)
>
> Art Hunkins
>
> ----- Original Message ----- From: "joachim heintz" 
> To: 
> Sent: Wednesday, January 30, 2013 10:43 AM
> Subject: Re: [Csnd] Debugging Help Wanted
>
>
>> or even more simple, i think (no need to do anything in performance
>> time in instr 1):
>>
>> 
>> 
>> -o distill.wav -m0d -b512 -B2048
>> 
>> 
>> sr      = 16000
>> ksmps   = 100
>> nchnls  = 1
>>
>>       instr 1
>> ilen1   filelen "1.wav"
>> ilen2   filelen "2.wav"
>> event_i "i", 2, 0, ilen1
>> event_i "i", 3, ilen1-1, ilen2
>>       endin
>>
>>       instr 2
>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>> aout    diskin  "1.wav", 1
>>       out     aout * kamp
>>       endin
>>
>>       instr 3
>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>> aout    diskin  "2.wav", 1
>>       out     aout * kamp
>>       endin
>>
>> 
>> 
>> i1 0 .1
>> e
>> 
>> 
>>
>> joachim
>>
>>
>> Am 30.01.2013 10:17, schrieb Victor Lazzarini:
>>> 
>>> 
>>>
>>> -o distill.wav -m0d -b512 -B2048
>>>
>>> 
>>> 
>>>
>>>
>>> sr      = 16000
>>> ksmps   = 100
>>> nchnls  = 1
>>>
>>> instr 1
>>>
>>> ktime   times
>>> itime1  init    0
>>> ilen1   filelen "1.wav"
>>> ilen2   filelen "2.wav"
>>> ktrig2  trigger ktime, itime1, 0
>>>        schedkwhen ktrig2, 0, 0, 2, 0, ilen1
>>> itime2  =       ilen1 - 1
>>> p3 = ilen1                      ; >>>>  this makes instr 1 last for
>>> ilen1 secs no matter what the original p3 was <<<<
>>> ktrig3  trigger ktime, itime2, 0
>>>        schedkwhen ktrig3, 0, 0, 3, 0, ilen2
>>>
>>>        endin
>>>
>>>        instr 2
>>>
>>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>>> aout    diskin  "1.wav", 1
>>>        out     aout * kamp
>>>
>>>        endin
>>>
>>>        instr 3
>>>
>>> kamp    linseg  0, .5, 1, p3 - 2, 1, 1.5, 0
>>> aout    diskin  "2.wav", 1
>>>        out     aout * kamp
>>>
>>>        endin
>>>
>>> 
>>>
>>> 
>>>
>>> i1 0 1
>>>
>>> e
>>>
>>> 
>>> 
>>
>>
>> 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"
>
>