add sample pack

This commit is contained in:
2023-08-15 23:57:34 +02:00
parent e86b71ec78
commit de44edc002
2 changed files with 103 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Array.prototype.in = function <T>(this: T[], value: T): boolean {
Promise.all([
initAudioOnFirstClick(),
samples("github:tidalcycles/Dirt-Samples/master"),
samples("github:Bubobubobubobubo/Topos-Samples/main"),
registerSynthSounds(),
]);
@ -828,7 +829,7 @@ export class UserAPI {
*/
let final_pulses: boolean[] = [];
beat.forEach((b) => {
b = (b % this.app.clock.time_signature[0]);
b = (b % this.app.clock.time_signature[0]) + 1;
let integral_part = Math.floor(b);
let decimal_part = b - integral_part;
final_pulses.push(