[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] indexing controls
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] indexing controls
- From: James Harkins <jamshark70@xxxxxxxxx>
- Date: Tue, 28 Jul 2009 15:27:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=m7RTeyuF88gd4ajo2oVvn9nYJVDUN7kAnGgUO+MK36g=; b=Ce8CvPj83S819L+LeZXrb+ZdsCgGUJ0IvtRNvRoXDc72pVMXlhhIyI5CJFdqiLOCRh AZlna4aoxQT3XcG2qra4LdF+joFe37wxqOcZ9NTNWgX6z9deO6TogSZtwc+yN7so1brw 7E4/+YWAmIgeARTP6m+3stf+dj14BlzibcGso=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=pL+CR+TMrxbXZSTvmVmbW45YWFv0tSQ+vQsYlcJTggr9rpLJv+wleq34W2mK2+QxdM AM8vEFQoiQKbikf7R/mVdhTXU65mtmCBw9z409wneqWsa2cf2UY+1csvNSKhFpLZ3U2G KjxvG4+j4XGW9DDxYStIWNnHWANmydstiwalg=
- In-reply-to: <EBE98D71-2C23-499C-B144-489DB82776BF@xxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <EBE98D71-2C23-499C-B144-489DB82776BF@xxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
x = SynthDef("help-node-set", {| freq = 440, out = 0 |
Out.ar(out, SinOsc.ar(freq, 0, 0.1));
});
x.allControlNames.do { |cn|
cn.name.debug(cn.index);
};
-->
0: freq
1: out
In this other variant:
x = {| freq = 440, out = 0 |
Out.ar(out, SinOsc.ar(freq, 0, 0.1));
}.asSynthDef;
x.allControlNames.do { |cn|
cn.name.debug(cn.index);
};
-->
0: i_out
1: freq
2: out
It's a bad example in the help, though, since you should normally not write your own Out when using Function:play.
hjh
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman