Add conditional to loop back position after it reaches num_of_notes
This commit is contained in:
parent
f18b575f00
commit
0ef5e931b7
|
@ -3,6 +3,9 @@ if position == nil then
|
|||
position = 0
|
||||
end
|
||||
position = position + 1
|
||||
if position > num_of_notes then
|
||||
position = 1
|
||||
end
|
||||
mem.position = position
|
||||
|
||||
if pin.b then
|
||||
|
|
Loading…
Reference in New Issue