[Cs-dev] New Opcodes Request
Date | 2008-01-25 17:20 |
From | Davis Pyon |
Subject | [Cs-dev] New Opcodes Request |
Attachments | =?utf-8?q?newopcodes.c?= None None |
Hi, This is a request to add these two opcodes: knum activeorder turnoffnow activeorder gives a number corresponding to the containing instr instance's position within the active instruments list. In other words, it would report how old the containing instr instance is compared to all active instances of the same instr. The lower the #, the older it is. The oldest instance would be 1. turnoffnow behaves like turnoff, except that it doesn't care about release envelopes. When turnoffnow is called, the containing instr is killed immediately. I would just compile a library for myself, but they require access to functions and CSOUND vars that are not available when using csdl.h. Also, I don't feel like compiling Csound whenever there's a new release. I've attached the code for the opcodes. I don't know if it's entirely correct. Most of it was just cut and paste from other pplz code. Thanks, Davis |
Date | 2008-01-25 17:25 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] New Opcodes Request |
Does not p2 give the start time of the instance of an instrument? ==John ff ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-01-25 18:26 |
From | Jacob Joaquin |
Subject | Re: [Cs-dev] New Opcodes Request |
Instead of creating a whole new opcode, would it be possible just to add an additional optional argument to "turnoff" and/or "turnoff2"? The default could be zero to retain backwards compatibility, while a value of 1 would do as dp51 suggested. Best, Jake ---- The Csound Blog http://www.thumbuki.com/csound/blog/ dp51 wrote: > > turnoffnow behaves like turnoff, except that it doesn't > care about release envelopes. When turnoffnow is called, > the containing instr is killed immediately. > -- View this message in context: http://www.nabble.com/New-Opcodes-Request-tp15092619p15093926.html Sent from the Csound - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |