[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Notes and observations from a large SC project



On Jul 29, 2009, at 2:24 AM, Scott Wilson wrote:

s.makeBundle(nil, {

    m = { Out.kr( 100, [100,200,300] ) }.play;

    n = { |a,b,c|  Mix( SinOsc.ar( [a,b,c] ) ) }.play;

s.sync;

    n.map( \a, 100 );

    n.map( \b, 101 );

    n.map( \b, 102 );

});


Interesting. I wouldn't have thought this would work because normally sync should be used in a routine, but I didn't know about the (undocumented) syncFlag OSC message! I guess for bundling use, but it would be better to have this in the help.

s.makeBundle(nil, {
    m = { Out.kr( 100, [100,200,300] ) }.play;
    n = { |a,b,c|  Mix( SinOsc.ar( [a,b,c] ) ) }.play(args: [\a, \c100, \b, \c101, \c, \c102]);
});

+1  I've used this style as long as it's been there.  // Another insufficiently documented syntax -- AFAICS this is the only reference, in Bus.html.

asMap - Returns a symbol consisting of the letter 'c' followed by the bus's index. This may be used when setting a synth node's control inputs to maps the input to the control bus. See the Node help file for more information on mapping controls to buses. 

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman