You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
836 B
32 lines
836 B
(
|
|
name: 'Sampler_Enveloped',
|
|
func: {
|
|
| buf |
|
|
var start = \start.kr(0), end = \end.kr(0);
|
|
var phasor = Phasor.ar(rate: BufRateScale.kr(buf).poll, start: start, end: end);
|
|
var reader = BufRd.ar(1, buf, phasor, loop:1, interpolation:4);
|
|
|
|
reader;
|
|
// var start = \start.kr(0.0);
|
|
// var end = \end.kr(1.0);
|
|
// var phasor = EnvGen.ar(
|
|
// Env([start, end], [end - start], curve: \curve.kr(0)),
|
|
// //gate: Impulse.kr(1),
|
|
// timeScale: BufRateScale.kr(buf).reciprocal,
|
|
// doneAction: 0
|
|
// ) * SampleRate.ir;
|
|
|
|
// phasor.poll;
|
|
|
|
// //BufRd.ar(1, buf, phasor, loop:0, interpolation:4);
|
|
// EnvGen.kr(Env([0,1,1,0], [0.01, end - start - 0.03, 0.01] ), doneAction: 2);
|
|
|
|
// BufRd.ar(1, buf, phasor, loop:0, interpolation:4);
|
|
},
|
|
specs:(
|
|
start: [0.0, 1.0],
|
|
end: [0.0, 1.0],
|
|
curve: [-5, 5],
|
|
rate: [0,0, 1.0]
|
|
)
|
|
) |