Improvement: sampling syntax
Choosing between the mono or stereo sampler is optional. Just use ~sp and ~nb and the sampler will be picked based on the number of channels in the audio file getting played.
This commit is contained in:
@ -18,7 +18,6 @@ Bank : Singleton {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
*new {
|
||||
|path, channels|
|
||||
^super.new(path, channels);
|
||||
@ -37,7 +36,9 @@ Bank : Singleton {
|
||||
}
|
||||
|
||||
lazyLoading_{
|
||||
|
||||
|lazy|
|
||||
|
||||
if (lazyLoading != lazy) {
|
||||
lazyLoading = lazy;
|
||||
this.prUpdateBuffers();
|
||||
@ -178,7 +179,6 @@ Bank : Singleton {
|
||||
buffers[index] = Buffer.readChannel(Server.default, paths[index], channels:Array.series(channels));
|
||||
};
|
||||
};
|
||||
|
||||
buffers[index];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user