@@ -770,7 +770,7 @@ function control_draw() {
770
770
marker_pos = 0
771
771
marker_prevpos = 0
772
772
}
773
- if (keyboard_check_pressed (vk_space)) toggle_playing (totalcols) timestoloop = real (loopmax)
773
+ if (keyboard_check_pressed (vk_space)) toggle_playing (totalcols)
774
774
if (keyboard_check_pressed (vk_f1)) {
775
775
if (language != 1 ) open_url (" http://www.youtube.com/playlist?list=PL7EA4F0D271DA6E86" )
776
776
else open_url (" https://www.bilibili.com/video/BV1Mx411a76p" )
@@ -1037,14 +1037,16 @@ function control_draw() {
1037
1037
}
1038
1038
// loop song
1039
1039
if (loop_session = 1 && marker_pos > enda + 1 && (!looptobarend || marker_pos mod (timesignature * 4 ) < 1 )) {
1040
- timestoloop --
1040
+ --timestoloop
1041
1041
starta = loopstart
1042
1042
marker_pos = starta
1043
1043
metronome_played = -1
1044
1044
sb_val[scrollbarh] = starta
1045
- if loopmax != 0 {
1046
- if timestoloop < 0 {
1045
+ if ( loopmax != 0 ) {
1046
+ if ( timestoloop < 0 ) {
1047
1047
playing = 0
1048
+ marker_pos = 0
1049
+ marker_prevpos = 0
1048
1050
timestoloop = real (loopmax)
1049
1051
}
1050
1052
}
@@ -1696,8 +1698,8 @@ function control_draw() {
1696
1698
if (draw_icon (icons.OPEN , xx, yy, " Open song" , 0 , 0 )) {playing = 0 load_song (" " )} xx += 25 + isplayer * 4
1697
1699
if (!isplayer) if (draw_icon (icons.SAVE , xx, yy, " Save song" , 0 , 0 )) {save_song (filename)} if (!isplayer) xx += 25 + 4
1698
1700
draw_separator (xx, yy + 3 ) xx += 4
1699
- if (draw_icon (icons.PLAY + playing, xx, yy, " Play / Pause song" , 0 , 0 )) toggle_playing (totalcols) timestoloop = real (loopmax)
1700
- if (isplayer && !dropmode) if (draw_icon (icons.PLAY + playing, rw / 2 - 12 , rh / 2 + 50 , " Play / Pause song" , 0 , 0 )) toggle_playing (totalcols) timestoloop = real (loopmax)
1701
+ if (draw_icon (icons.PLAY + playing, xx, yy, " Play / Pause song" , 0 , 0 )) toggle_playing (totalcols)
1702
+ if (isplayer && !dropmode) if (draw_icon (icons.PLAY + playing, rw / 2 - 12 , rh / 2 + 50 , " Play / Pause song" , 0 , 0 )) toggle_playing (totalcols)
1701
1703
xx += 25
1702
1704
if (draw_icon (icons.STOP , xx, yy, " Stop song" , 0 , 0 )) {playing = 0 marker_pos = 0 marker_prevpos = 0 timestoloop = real (loopmax)} xx += 25
1703
1705
if (isplayer && !dropmode) if (draw_icon (icons.STOP , rw / 2 - 12 - 100 , rh / 2 + 50 , " Stop song" , 0 , 0 )) {playing = 0 marker_pos = 0 marker_prevpos = 0 timestoloop = real (loopmax)}
@@ -1729,8 +1731,8 @@ function control_draw() {
1729
1731
if (draw_icon (icons.OPEN , xx, yy, " 打开歌曲" , 0 , 0 )) {playing = 0 load_song (" " )} xx += 25 + isplayer * 4
1730
1732
if (!isplayer) if (draw_icon (icons.SAVE , xx, yy, " 保存歌曲" , 0 , 0 )) {save_song (filename)} if (!isplayer) xx += 25 + 4
1731
1733
draw_separator (xx, yy + 3 ) xx += 4
1732
- if (draw_icon (icons.PLAY + playing, xx, yy, " 播放 / 暂停" , 0 , 0 )) toggle_playing (totalcols) timestoloop = real (loopmax)
1733
- if (isplayer && !dropmode) if (draw_icon (icons.PLAY + playing, rw / 2 - 12 , rh / 2 + 50 , " 播放 / 暂停" , 0 , 0 )) toggle_playing (totalcols) timestoloop = real (loopmax)
1734
+ if (draw_icon (icons.PLAY + playing, xx, yy, " 播放 / 暂停" , 0 , 0 )) toggle_playing (totalcols)
1735
+ if (isplayer && !dropmode) if (draw_icon (icons.PLAY + playing, rw / 2 - 12 , rh / 2 + 50 , " 播放 / 暂停" , 0 , 0 )) toggle_playing (totalcols)
1734
1736
xx += 25
1735
1737
if (draw_icon (icons.STOP , xx, yy, " 停止歌曲" , 0 , 0 )) {playing = 0 marker_pos = 0 marker_prevpos = 0 timestoloop = real (loopmax)} xx += 25
1736
1738
if (isplayer && !dropmode) if (draw_icon (icons.STOP , rw / 2 - 12 - 100 , rh / 2 + 50 , " 停止歌曲" , 0 , 0 )) {playing = 0 marker_pos = 0 marker_prevpos = 0 timestoloop = real (loopmax)}
0 commit comments