add drum machines and bank parameter
This commit is contained in:
@ -30,6 +30,7 @@ import { getScaleNotes } from "zifferjs";
|
||||
import { OscilloscopeConfig, blinkScript } from "./AudioVisualisation";
|
||||
import { SkipEvent } from "./classes/SkipEvent";
|
||||
import { AbstractEvent, EventOperation } from "./classes/AbstractEvents";
|
||||
import drums from "./tidal-drum-machines.json";
|
||||
|
||||
interface ControlChange {
|
||||
channel: number;
|
||||
@ -49,6 +50,7 @@ export async function loadSamples() {
|
||||
samples("github:Bubobubobubobubo/Dough-Amiga/main"),
|
||||
samples("github:Bubobubobubobubo/Dough-Amen/main"),
|
||||
samples("github:Bubobubobubobubo/Dough-Waveforms/main"),
|
||||
samples(drums, "github:ritchse/tidal-drum-machines/main/machines/")
|
||||
]);
|
||||
}
|
||||
|
||||
@ -1899,7 +1901,7 @@ export class UserAPI {
|
||||
// =============================================================
|
||||
|
||||
register = (name: string, operation: EventOperation<AbstractEvent>): void => {
|
||||
AbstractEvent.prototype[name] = function (this: AbstractEvent, ...args: any[]) {
|
||||
AbstractEvent.prototype[name] = function(this: AbstractEvent, ...args: any[]) {
|
||||
return operation(this, ...args);
|
||||
};
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@ export class SoundEvent extends AudibleEvent {
|
||||
volume: ["volume", "vol"],
|
||||
zrand: ["zrand", "zr"],
|
||||
curve: ["curve"],
|
||||
bank: ["bank"],
|
||||
slide: ["slide", "sld"],
|
||||
deltaSlide: ["deltaSlide", "dslide"],
|
||||
pitchJump: ["pitchJump", "pj"],
|
||||
|
||||
3716
src/tidal-drum-machines.json
Normal file
3716
src/tidal-drum-machines.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user