Skip to content

Commit 6912969

Browse files
committed
start
1 parent ca9fae1 commit 6912969

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

scripts/control_create/control_create.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ asso_midi = 0
220220
asso_sch = 0
221221
w_asso_start = 1
222222
wmenu = 0
223+
loop = 0
223224

224225
// Midi export / import
225226
w_midi_remember = 1

scripts/control_draw/control_draw.gml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ if (playing = 1 || forward<>0) {
493493
if (playing = 1) marker_pos += (tempo / room_speed)
494494
if (forward != 0) {
495495
marker_pos += (tempo / room_speed) * (forward - (forward < 0 && playing = 1))
496+
}
497+
//loop song
498+
if (loop = 1 && marker_pos > enda) {
499+
starta = 0
500+
marker_pos = starta
501+
sb_val[scrollbarh] = starta
496502
}
497503
if (marker_pos > enda + totalcols) {
498504
marker_pos = enda + totalcols

0 commit comments

Comments
 (0)