I am just curious about something. Is there a way of setting up choke groups for instruments in Csound – meaning, out of a selected number of instruments, if this one plays stops the other? This behaviour would be similar to that of music tracker, or some samplers as well. I am thinking of implementing this in a future project, I just don’t know how to start
Or you want to have probably a master instrument that calls the ones in the group. That could take care of stopping previous instrument with turnoff2 when it calls the new one with schdulek or event opcode.
i guess there should be a better solution but i can only think of building this yourself with “active” and “turnoff2” opcodes. like:
if active(1) >= 1 then
turnoff2 2,0,0
…
endif
i hope that’s what you meant.
good luck -
parham
Hello, everyone
I am just curious about something. Is there a way of setting up choke groups for instruments in Csound – meaning, out of a selected number of instruments, if this one plays stops the other? This behaviour would be similar to that of music tracker, or some samplers as well. I am thinking of implementing this in a future project, I just don’t know how to start
- insnum: Instrument number.
- icount: Maximum number of instances that can be allocated.
- iturnoffmode (optional): Specifies the behavior when the icount limit is reached. This parameter can take the following values:
- 0: Default behavior. When the number of instances equals icount, no new instances are allocated.
- 1: When the number of instances equals icount, the oldest active instrument instance is automatically turned off, and a new instance is created.
- 2: When the number of instances equals icount, the newest active instrument instance is automatically turned off, and a new instance is created.
iturnoffmoade allows automatically turning of previous instrument instances.
Thanks for all the hints. I have to test some of those things myself in the next couple of days, unfortunately I won’t have time now. I will let you know in case I have any more questions.