Hello everyone!
I would like to beggin the discussion on this category by pointing some documentations that are problematic or not helpful, specially for begginers.
Pfunc examples:
(
var a, b, c;
a = Pfuncn({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, 2);
b = Pfuncn({ #[-2, -3].choose }, 2);
Pseq([a, b], inf).asStream.nextN(20).postln;
)Sound example
(
SynthDef(\help_sinegrain,
{ arg out = 0, freq = 440, sustain = 0.05;
var env;
env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf);
Out.ar(out, SinOsc.ar(freq, 0, env))
}).add;
)(
var a;
a = Pfunc({ exprand(0.1, 0.3) + #[1, 2, 3, 6, 7].choose }).asStream;
{
a.do { |val|
Synth(\help_sinegrain, [\freq, val * 100 + 300]);
0.02.wait;
}
}.fork;
)
IMO, Pfunc doc have many troubles:
-
It creates a function for someting that already exists: Pxrand implements the same thing in a more simpler way;
-
As this sound example is about patterns, it“s more clear for begginers to see stuff implemented used Pbind instead of .fork (a routine?);
-
The numerical example is the same of the sound one, it is a waste of documentation space, although I think every pattern must have numerical examples;
-
It creates a SynthDef that is sonic useless, it does not teach anything related to Pfunc, it would be better if used the default or the best option (IMO) would if SC had diferent default synths for using in diferent generic examples (piano, glide instruments, noise, etc).
-
Docs of Pfunc and Pfuncn are identical, so it does not help anything at allā¦
Can someone point one a trully begginer usage for Pfunc? I was thing about using it as a way to create a sinusoidal pitch vibrato with \freq on the default synth. BTW I dont know how to make itā¦
's
ZĆ© Craum