Continue source code restructuring

This commit is contained in:
2024-04-14 16:11:58 +02:00
parent 7cef78bc3b
commit a21d6c9a88
68 changed files with 34 additions and 36 deletions

View File

@ -1,5 +1,5 @@
import { UserAPI } from "../API";
import { AppSettings } from "../FileManagement";
import { AppSettings } from "../Editor/FileManagement";
export type MidiNoteEvent = {
note: number;
@ -578,8 +578,7 @@ export class MidiConnection {
if (typeof output === "number") {
if (output < 0 || output >= this.midiOutputs.length) {
console.error(
`Invalid MIDI output index. Index must be in the range 0-${
this.midiOutputs.length - 1
`Invalid MIDI output index. Index must be in the range 0-${this.midiOutputs.length - 1
}.`,
);
return this.currentOutputIndex;
@ -608,8 +607,7 @@ export class MidiConnection {
if (typeof input === "number") {
if (input < 0 || input >= this.midiInputs.length) {
console.error(
`Invalid MIDI input index. Index must be in the range 0-${
this.midiInputs.length - 1
`Invalid MIDI input index. Index must be in the range 0-${this.midiInputs.length - 1
}.`,
);
return -1;