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

Re: [sc-users] Pbind re-scales amplitude automatically?



it works very good!
it's quite strange that I've never thought about put \amp value in patterns, as now it seems to be so obvious...

I'll definitely look at Pchain, anyway I'm following this series of pattern tutorials at this moment.

thank you very much.

 

On Sun, Mar 8, 2009 at 1:59 AM, James Harkins <jamshark70@xxxxxxxxx> wrote:
On Mar 7, 2009, at 7:16 PM, Djého Youn wrote:
but as soon as I play it as patterns, ... then the amplitude kind of scale itself to "resonable" volume, and removes my desired clicking effects.

(when the each patterns overlaps, there must be this loud "TAKK!" sound)

Event.default.db
--> -20

Event.default.use { ~amp.value }
--> 0.1

There are several argument names that are (so to speak) "reserved" and pre-filled with some default values in the default Event prototype. \amp is one of them.

It's easy to override \amp in your pattern, though. That's easier than changing your SynthDef.

c = Pbind(\instrument, \jack,
        \freq, Pwhite(1, 20, inf),
        \dur, Pwhite(1, 5, inf),
\amp, 1,

        \dTime, Pwhite(0.00001, 0.005, inf)
).play;

Or:

c = Pchain(Pbind(\instrument, \jack,

        \freq, Pwhite(1, 20, inf),
        \dur, Pwhite(1, 5, inf),
        \dTime, Pwhite(0.00001, 0.005, inf)
// the event contained inside Pchain overrides default values
), (amp: 1)).play;

Pchain is actually really powerful - it can do a lot more than just this. See the PG_06c_Composition_of_Patterns helpfile.

hjh


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

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