Adding bry shortcut for binrhythm
This commit is contained in:
@ -1650,6 +1650,7 @@ export class UserAPI {
|
||||
let tobin: boolean[] = convert.split("").map((x: string) => x === "1");
|
||||
return this.beat(div) && tobin.beat(div);
|
||||
};
|
||||
bry = this.binrhythm;
|
||||
|
||||
// =============================================================
|
||||
// Low Frequency Oscillators
|
||||
@ -2659,4 +2660,5 @@ export class UserAPI {
|
||||
public getThemes = (): string[] => {
|
||||
return Object.keys(colorschemes);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -788,7 +788,7 @@ const completionDatabase: CompletionDatabase = {
|
||||
name: "counter",
|
||||
category: "patterns",
|
||||
description: "Counter/iterator",
|
||||
example: "counter('my_counter_, 20, 1)",
|
||||
example: "counter('my_counter', 20, 1)",
|
||||
},
|
||||
drunk: {
|
||||
name: "drunk",
|
||||
|
||||
@ -578,12 +578,11 @@ export class Editor {
|
||||
// @ts-ignore
|
||||
this.hydra_backend = new Hydra({
|
||||
canvas: this.interface.hydra_canvas as HTMLCanvasElement,
|
||||
width: 1280,
|
||||
height: 768,
|
||||
detectAudio: false,
|
||||
enableStreamCapture: false,
|
||||
});
|
||||
this.hydra = this.hydra_backend.synth;
|
||||
this.hydra.setResolution(1280, 768);
|
||||
(globalThis as any).hydra = this.hydra;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user