diff --git a/src/Note.ts b/src/Note.ts index 7045be8..39a5698 100644 --- a/src/Note.ts +++ b/src/Note.ts @@ -80,8 +80,8 @@ export class Note extends Event { } update = (): void => { - console.log(this.values.type); - if(this.values.type === 'Pitch') { + // TODO: Figure out why _ is sometimes added? + if(this.values.type === 'Pitch' || this.values.type === '_Pitch') { const [note,bend] = noteFromPc(this.values.key!, this.values.pitch!, this.values.parsedScale!, this.values.octave!); this.values.note = note; this.values.freq = midiToFreq(note); @@ -115,7 +115,6 @@ export class Note extends Event { } out = (): void => { - console.log("NOTE OUT", this.values); const note = this.values.note ? this.values.note : 60; const channel = this.values.channel ? this.values.channel : 0; const velocity = this.values.velocity ? this.values.velocity : 100; diff --git a/src/ZPlayer.ts b/src/ZPlayer.ts index 0e399da..3fccdfb 100644 --- a/src/ZPlayer.ts +++ b/src/ZPlayer.ts @@ -32,6 +32,7 @@ export class Player extends Event { if(this.areWeThereYet()) { const event = this.next() as Pitch|Chord|ZRest; if(event instanceof Pitch) { + // TODO: Quick hack. Select which attributes to use, but some ziffers stuff is needed for chaining key change etc. return new Sound(event.asObject(), this.app).sound(name); } else if(event instanceof Rest) { return Rest.createRestProxy(event.duration, this.app); @@ -46,7 +47,7 @@ export class Player extends Event { if(this.areWeThereYet()) { const event = this.next() as Pitch|Chord|ZRest; if(event instanceof Pitch) { - console.log(event.asObject()); + // TODO: Quick hack. Select which attributes to use, but some ziffers stuff is needed for chaining key change etc. const note = new Note(event.asObject(), this.app); return value ? note.note(value) : note; } else if(event instanceof ZRest) {