| Thanks for both of your replies,
Actually, the turnoff does work for the instrument from which i am
calling the event. I understood the event opcode wrong thought it would
wait for the event to finish. Will have a think about it again:)
Simon
Victor Lazzarini wrote:
> Show us an example of what doesn't work and what you
> want to do. A turnoff will turn an instrument itself off
> whenever
> it is seen so,
>
> instr 1
>
> event_i ...
> turnoff
>
> endin
>
> will turnoff the instrument after event_i is executed.
>
> Victor
>
> PS.: by the way responding to an earlier question about
> sharing the thread code, the solution is to have as many
> pointers
> (perhaps with general names such as *ptr1, *ptr2 ...) as you
> need for a stereo opcode and then use only the ones you need
> for the mono eg.
>
> struct _data{
> OPDS *h;
> MYFLT *ptr1, *ptr2, *ptr3, *ptr4, *ptr5;
> ...
>
> }
>
> when stereo: *ptr1 and *ptr2 are your outs,
> *ptr3 is your address, *ptr4 is port and *ptr5 is bufnos
>
> when mono: *ptr1 is out, *ptr2 is your address,
> *ptr3 is port and *ptr4 is bufnos. *p5 is ignored.
>
>
>
>
>
>> Hi Simon. You can use an 'e' scorechar to stop the
>> instrument like this:
>>
>> event "e", 1, 0, 0
>>
>> for instrument 1. The above syntax may not be correct, I'm
>> guessing a little...
>>
>> Rory.
>>
>> p.s. are you enjoying you stay in Ireland?
>>
>>
>>
>>
>> Simon Schampijer wrote:
>>
>>> Hi,
>>> I am using the event_i opcode to generate a score event.
>>> When this event is finished I would like to stop the
>>> (turnoff) the instrument from which the call is made.
>>> Calling turnoff after the event_i call does not seem to
>>>
>> work. How it is supposed to work - to return after the
>>
>>> event is finished? Any other way round that?
>>>
>>> Thank you in advance,
>>> Simon
>>>
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to
>> csound-unsubscribe@lists.bath.ac.uk
>> |