Added chords to ziffers

This commit is contained in:
2023-09-08 00:42:39 +03:00
parent 7993d87915
commit d2161eb5bc
10 changed files with 111 additions and 46 deletions

View File

@ -5,7 +5,7 @@ import { DrunkWalk } from "./Utils/Drunk";
import { scale } from "./Scales";
import { Editor } from "./main";
import { SoundEvent } from "./classes/SoundEvent";
import { NoteEvent } from "./classes/MidiEvent";
import { MidiEvent } from "./classes/MidiEvent";
import { LRUCache } from "lru-cache";
import { InputOptions, Player } from "./classes/ZPlayer";
import {
@ -316,7 +316,7 @@ export class UserAPI {
value: number | object = 60,
velocity?: number,
channel?: number
): NoteEvent => {
): MidiEvent => {
/**
* Sends a MIDI note to the current MIDI output.
*
@ -342,7 +342,7 @@ export class UserAPI {
value["channel"] = channel;
}
return new NoteEvent(value, this.app);
return new MidiEvent(value, this.app);
};
public sysex = (data: Array<number>): void => {