| I suppose (never used instrument names) that nstrnum opcode could be the way,
then multiply by -1
Atte, have you tried to receive osc messges only with the instrument with the
two k values (for both type of messages)? If it works maybe you can control the
event line with another "if"
if (kk4 > 0) then
event "i", kinsnum, kdelay, kk3, kk4
else
event "i", kinsnum, kdelay, kk3
endif
No idea if it can work, eh eh eh
>----Messaggio originale----
>Da: obrandts@gmail.com
>Data: 17/06/2009 12.18
>A:
>Ogg: [Csnd] Re: Re: Re: triggering instruments from OSC
>
>To keep track of different instances of instrument with negative p3,
>you can use fractional instr numbers.
>i 1.1 0 -1 ; turn on instance 1
>i 1.2 1 -1 ; turn on instance 2
>i -1.2 3 1 ; turn off instance 2
>i -1.1 5 1 ; turn off instance 1
>
>I'm not sure how this applies to named instruments.
>
>best
>Oeyvind
>
>2009/6/17 Atte Andre Jensen :
>> vallste@libero.it wrote:
>>
>>> Question 1: I don't understand why you would use two different
instruments
>>> to do basically the same thing on the same instrument... could you
please
>>> explain, I'm curious...
>>
>> I might be totally wrong, but it seems that I can only listen for OSC
>> messages with a certain format. So if I listen for "sf" (the string being
>> the instrument name, the float being p3), I won't catch "sff" (where the
>> last float is p4). Hence I simply setup a number of OSC listeners for
each
>> format I want to catch.
>>
>>> Question 2: I suppose it depends of what values are received with kp3
and
>>> kp4, maybe working with negative p3 (for indefinite duration - noteon)
and
>>> negative p1 (to turn off the instrument - noteoff) can work.
>>
>> I'll try that, thanks. I like to work with names instruments, is it still
>> possible to have negative p1 in such cases? If so should it be -
"instr_name"
>> or?
>>
>> How are the noteons and noteoffs matched? Supposed the same instrument is
>> triggered with two or more notes (with negative p3) how can I turnoff a
>> specific instance?
>>
>> My ignorance to the more subtle workings of p3 and p1 might stem from my
>> main experience with csound is midi driven instruments, sorry for the
>> newbie-ish nature of my question...
>>
>> --
>> Atte
>>
>> http://atte.dk http://modlys.dk http://virb.com/atte
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
|