Skip to content

Commit

Permalink
Tweaked clip_at_bar call to provide total ticks divided by current ba…
Browse files Browse the repository at this point in the history
…r number times current loop iteration as max_ticks parameter. WIP
  • Loading branch information
pedros committed Jul 15, 2011
1 parent 006e30a commit 66d3e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtd
Expand Up @@ -112,7 +112,7 @@ $opus->tracks_r->[1]->events_r(
# beyond the measure, for looping purposes
map {
$ARGV{clip}
? clip_at_bar($_, $opus->tick_length * $i)
? clip_at_bar($_, ($opus->tick_length / (1 + $opus->current_bar($ARGV{resolution}, $_))) * $i)
: $_
} @$rel_events
} 1 .. $ARGV{loop} ]
Expand Down

0 comments on commit 66d3e5a

Please sign in to comment.