Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Nov 5, 2023
1 parent 2ad2f8e commit 73140b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ArrayExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
const timepos = api.app.clock.pulses_since_origin;
const ppqn = api.ppqn();
const adjustedDurations = this.map((_, index) => durations[index % durations.length]);
// @ts-ignore
const totalDurationInPulses = adjustedDurations.reduce((acc, duration) => acc + duration * ppqn, 0);
const loopPosition = timepos % totalDurationInPulses;
let cumulativeDuration = 0;
Expand Down

0 comments on commit 73140b0

Please sign in to comment.