Add generic granular sampler

This commit is contained in:
2024-05-15 17:29:26 +02:00
parent 39ed936b75
commit e62c7661b9
7 changed files with 177 additions and 10 deletions

View File

@ -119,5 +119,22 @@ Boot {
~type = \note;
currentEnvironment.play;
});
Event.addEventType(\buboGranular, {
arg server;
if (~sp.notNil, {
if (BuboUtils.stringIsNumber(~sp), {}, {
~sp = BuboUtils.cleanSampleName(~sp);
~nb = BuboUtils.cleanSampleIndex(~nb);
if (~sp !== "", {
~buf = Bank(~sp)[~nb % Bank(~sp).paths.size];
~instrument = 'grainSampler';
});
});
});
~type = \note;
currentEnvironment.play;
});
}
}