Fix Ziffers breaking with no dur key
This commit is contained in:
@ -111,7 +111,9 @@ export class Player extends Event {
|
|||||||
(this.current &&
|
(this.current &&
|
||||||
this.pulseToSecond(this.origin()) >=
|
this.pulseToSecond(this.origin()) >=
|
||||||
this.pulseToSecond(this.lastCallTime) +
|
this.pulseToSecond(this.lastCallTime) +
|
||||||
this.current.duration * 4 * this.pulseToSecond(this.app.api.ppqn()) &&
|
this.current.duration *
|
||||||
|
4 *
|
||||||
|
this.pulseToSecond(this.app.api.ppqn()) &&
|
||||||
this.origin() >= this.waitTime);
|
this.origin() >= this.waitTime);
|
||||||
|
|
||||||
// Increment index of how many times call is skipped
|
// Increment index of how many times call is skipped
|
||||||
@ -143,6 +145,7 @@ export class Player extends Event {
|
|||||||
"octave",
|
"octave",
|
||||||
"parsedScale"
|
"parsedScale"
|
||||||
);
|
);
|
||||||
|
obj.dur = event.duration;
|
||||||
return new SoundEvent(obj, this.app).sound(name);
|
return new SoundEvent(obj, this.app).sound(name);
|
||||||
} else if (event instanceof Chord) {
|
} else if (event instanceof Chord) {
|
||||||
const pitches = event.freqs();
|
const pitches = event.freqs();
|
||||||
|
|||||||
Reference in New Issue
Block a user