| Awesome, glad that did the trick and glad the VKeyboard is useful!
On Tue, Oct 12, 2010 at 3:34 PM, Rory Walsh wrote:
> Thanks Steven, that did the trick. By the way I'm having great fun
> with your Virtual keyboard!
>
> On 12 October 2010 19:17, Steven Yi wrote:
>> Hi Rory,
>>
>> I'm going to guess it's related to processing order (there was an
>> issue reported here a month or two back with turnoff2 (I believe)).
>> Could you try making the instrument that does the turnoff2 calls to a
>> higher instrument number than the instruments you are turning off?
>> maybe "massign 0, 100" and make instr 1 be instr 100?
>>
>> steven
>>
>> On Tue, Oct 12, 2010 at 1:56 PM, Rory Walsh wrote:
>>> The following instrument works fine when I use the oscillators, that
>>> is, pressing C(60) on the virtual keyboard will start instr2 and stop
>>> instr3 if it's playing and pressing D(62) will stop instr2 if it's
>>> playing and start instr3. When I insert some loops using diskin2
>>> however I get a different response, it only works for the first 3
>>> toggles between notes C and D. It also keeps saying when I try to turn
>>> off and instance of instr2 that it can't initialise it. Please note
>>> pressing the C and D alternatively several times will crash Csound.
>>>
>>>
>>>
>>> ;-+rtaudio=alsa -odac:hw:1,0 -+rtmidi=virtual -M0
>>> -odac4 -+rtmidi=virtual -M0 --midi-key=4 --midi-velocity-amp=5
>>>
>>>
>>> nchnls = 2
>>> ksmps = 10
>>>
>>> massign 0, 1
>>>
>>> instr 1
>>> ival = p4
>>>
>>> kinstr3 active 3
>>> kinstr2 active 2
>>>
>>> if(ival=60) then
>>> event_i "i", 2, 0, 100
>>> if(kinstr3>0) then
>>> prints "\nturn off instr 3\n"
>>> turnoff2 3, 0, 0
>>> endif
>>>
>>> elseif(ival=62) then
>>> event_i "i", 3, 0, 100
>>> if(kinstr2>0) then
>>> prints "\nturn off instr 2\n"
>>> turnoff2 2, 0, 0
>>> endif
>>> endif
>>> endin
>>>
>>> instr 2
>>> a1 oscil 10000, 110, 1
>>> ;a1, a2 diskin2 "phat_drums1.wav", 1, 0, 1
>>> outs a1, a1
>>> endin
>>>
>>> instr 3
>>> a1 oscil 10000, 220, 1
>>> ;a1, a2 diskin2 "phat_drums2.wav", 1, 0, 1
>>> outs a1, a1
>>> endin
>>>
>>>
>>>
>>>
>>> f1 0 1024 10 1
>>> f0 3600
>>>
>>>
>>>
>>>
>>> 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"
>>
>>
>
>
> 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"
|