diff --git a/src/API.ts b/src/API.ts index 33f00eb..9d2276f 100644 --- a/src/API.ts +++ b/src/API.ts @@ -255,6 +255,7 @@ export class UserAPI { */ this.MidiConnection.sendSysExMessage(data); }; + sy = this.sysex; public pitch_bend = (value: number, channel: number): void => { /** @@ -277,6 +278,7 @@ export class UserAPI { */ this.MidiConnection.sendProgramChange(program, channel); }; + pc = this.program_change; public midi_clock = (): void => { /** @@ -298,6 +300,7 @@ export class UserAPI { */ this.MidiConnection.sendMidiControlChange(control, value, channel); }; + cc = this.control_change; public midi_panic = (): void => { /** @@ -1034,7 +1037,7 @@ export class UserAPI { */ return this._euclidean_cycle(pulses, length, rotate)[iterator % length]; }; - ec = this.euclid; + eu = this.euclid; _euclidean_cycle( pulses: number, diff --git a/src/classes/Sound.ts b/src/classes/Sound.ts index 8a0beba..ef07c50 100644 --- a/src/classes/Sound.ts +++ b/src/classes/Sound.ts @@ -122,31 +122,37 @@ export class Sound extends SoundEvent { this.values["cutoff"] = value; return this; }; + lpf = this.cutoff; resonance = (value: number): this => { this.values["resonance"] = value; return this; }; + lpq = this.resonance; hcutoff = (value: number): this => { this.values["hcutoff"] = value; return this; }; + hpf = this.hcutoff; hresonance = (value: number): this => { this.values["hresonance"] = value; return this; }; + hpq = this.hresonance; bandf = (value: number): this => { this.values["bandf"] = value; return this; }; + bpf = this.bandf; bandq = (value: number): this => { this.values["bandq"] = value; return this; }; + bpq = this.bandq; coarse = (value: number): this => { this.values["coarse"] = value; @@ -182,11 +188,13 @@ export class Sound extends SoundEvent { this.values["delayfeedback"] = value; return this; }; + delayfb = this.delayfeedback; delaytime = (value: number): this => { this.values["delaytime"] = value; return this; }; + delayt = this.delaytime; orbit = (value: number): this => { this.values["orbit"] = value; @@ -207,6 +215,7 @@ export class Sound extends SoundEvent { this.values["velocity"] = value; return this; }; + vel = this.velocity; modify = (func: Function): this => { const funcResult = func(this);