Adding more aliases
This commit is contained in:
@ -255,6 +255,7 @@ export class UserAPI {
|
|||||||
*/
|
*/
|
||||||
this.MidiConnection.sendSysExMessage(data);
|
this.MidiConnection.sendSysExMessage(data);
|
||||||
};
|
};
|
||||||
|
sy = this.sysex;
|
||||||
|
|
||||||
public pitch_bend = (value: number, channel: number): void => {
|
public pitch_bend = (value: number, channel: number): void => {
|
||||||
/**
|
/**
|
||||||
@ -277,6 +278,7 @@ export class UserAPI {
|
|||||||
*/
|
*/
|
||||||
this.MidiConnection.sendProgramChange(program, channel);
|
this.MidiConnection.sendProgramChange(program, channel);
|
||||||
};
|
};
|
||||||
|
pc = this.program_change;
|
||||||
|
|
||||||
public midi_clock = (): void => {
|
public midi_clock = (): void => {
|
||||||
/**
|
/**
|
||||||
@ -298,6 +300,7 @@ export class UserAPI {
|
|||||||
*/
|
*/
|
||||||
this.MidiConnection.sendMidiControlChange(control, value, channel);
|
this.MidiConnection.sendMidiControlChange(control, value, channel);
|
||||||
};
|
};
|
||||||
|
cc = this.control_change;
|
||||||
|
|
||||||
public midi_panic = (): void => {
|
public midi_panic = (): void => {
|
||||||
/**
|
/**
|
||||||
@ -1034,7 +1037,7 @@ export class UserAPI {
|
|||||||
*/
|
*/
|
||||||
return this._euclidean_cycle(pulses, length, rotate)[iterator % length];
|
return this._euclidean_cycle(pulses, length, rotate)[iterator % length];
|
||||||
};
|
};
|
||||||
ec = this.euclid;
|
eu = this.euclid;
|
||||||
|
|
||||||
_euclidean_cycle(
|
_euclidean_cycle(
|
||||||
pulses: number,
|
pulses: number,
|
||||||
|
|||||||
@ -122,31 +122,37 @@ export class Sound extends SoundEvent {
|
|||||||
this.values["cutoff"] = value;
|
this.values["cutoff"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
lpf = this.cutoff;
|
||||||
|
|
||||||
resonance = (value: number): this => {
|
resonance = (value: number): this => {
|
||||||
this.values["resonance"] = value;
|
this.values["resonance"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
lpq = this.resonance;
|
||||||
|
|
||||||
hcutoff = (value: number): this => {
|
hcutoff = (value: number): this => {
|
||||||
this.values["hcutoff"] = value;
|
this.values["hcutoff"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
hpf = this.hcutoff;
|
||||||
|
|
||||||
hresonance = (value: number): this => {
|
hresonance = (value: number): this => {
|
||||||
this.values["hresonance"] = value;
|
this.values["hresonance"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
hpq = this.hresonance;
|
||||||
|
|
||||||
bandf = (value: number): this => {
|
bandf = (value: number): this => {
|
||||||
this.values["bandf"] = value;
|
this.values["bandf"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
bpf = this.bandf;
|
||||||
|
|
||||||
bandq = (value: number): this => {
|
bandq = (value: number): this => {
|
||||||
this.values["bandq"] = value;
|
this.values["bandq"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
bpq = this.bandq;
|
||||||
|
|
||||||
coarse = (value: number): this => {
|
coarse = (value: number): this => {
|
||||||
this.values["coarse"] = value;
|
this.values["coarse"] = value;
|
||||||
@ -182,11 +188,13 @@ export class Sound extends SoundEvent {
|
|||||||
this.values["delayfeedback"] = value;
|
this.values["delayfeedback"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
delayfb = this.delayfeedback;
|
||||||
|
|
||||||
delaytime = (value: number): this => {
|
delaytime = (value: number): this => {
|
||||||
this.values["delaytime"] = value;
|
this.values["delaytime"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
delayt = this.delaytime;
|
||||||
|
|
||||||
orbit = (value: number): this => {
|
orbit = (value: number): this => {
|
||||||
this.values["orbit"] = value;
|
this.values["orbit"] = value;
|
||||||
@ -207,6 +215,7 @@ export class Sound extends SoundEvent {
|
|||||||
this.values["velocity"] = value;
|
this.values["velocity"] = value;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
vel = this.velocity;
|
||||||
|
|
||||||
modify = (func: Function): this => {
|
modify = (func: Function): this => {
|
||||||
const funcResult = func(this);
|
const funcResult = func(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user