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

Re: [sc-users] [Patterns Cookbook] Drum Sequencing Example



On May 6, 2009, at 1:48 AM, Andrew Grathwohl wrote:

I've been particularly trying to understand Penvir, but this example just stumps me. No matter what parameters I modify, I cannot seem to change the values within the individual Penvir functions (such as duration, decay, amplitude, etc) in real time with any results. No matter what I change, when these patterns are running, they remain exactly the same. Changing the \dur value of the kick drum Penvir, for example, from 0.25 to 4, did absolutely nothing, contrary to what I think should happen, especially considering this example makes use of JITLib.

Well, it uses Plazy which is defined within JITLib, but to me JITLib implies a focus on the node proxy/proxy space working style, which is not part of this example.

I assume you're trying to modify the streams in l, m, and n -- those actually refer to Pbinds, not Penvir instances. To change those values, use the technique elsewhere in the pattern guide to tweak Pbind streams (PatternProxy). PG_Cookbook02_Manipulating_Patterns

But maybe I'm not understanding how you're going about changing the parameters. Could you post an example?

To change things in Penvir's environment, you would have to add "independent: false" as the last argument to Penvir (after Pbind). Patterns are supposed to be able to run independent streams without interfering with each other, so normally, Penvir makes a copy of the input environment for each stream. Once it does that, you don't have access to the copy to change it externally. Setting the independent flag to false skips the copy. Then you could adjust things using ~kikEnvir.something = somethingNew.

hjh


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

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