fixing human error

This commit is contained in:
2023-11-05 17:31:36 +01:00
parent 280778b2c9
commit 01357122a3
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,6 @@ export const makeArrayExtensions = (api: UserAPI) => {
const valueDurationInPulses = adjustedDurations[i] as any * ppqn; const valueDurationInPulses = adjustedDurations[i] as any * ppqn;
cumulativeDuration += valueDurationInPulses; cumulativeDuration += valueDurationInPulses;
if (loopPosition < cumulativeDuration) { if (loopPosition < cumulativeDuration) {
console.log(`Hit on pulse: ${loopPosition}`);
return this[i]; return this[i];
} }
} }

View File

@ -432,11 +432,12 @@ export class SoundEvent extends AudibleEvent {
}; };
out = (): void => { out = (): void => {
console.log(this.app.clock.time_position.pulse)
const events = objectWithArraysToArrayOfObjects(this.values, [ const events = objectWithArraysToArrayOfObjects(this.values, [
"parsedScale", "parsedScale",
]); ]);
for (const event of events) { for (const event of events) {
superdough(event, this.nudge + this.app.clock.deviation, event.dur); superdough(event, this.nudge - this.app.clock.deviation, event.dur);
} }
}; };
} }