Add conditional to loop back position after it reaches num_of_notes

This commit is contained in:
Ceda EI 2019-01-30 23:18:06 +05:30
parent f18b575f00
commit 0ef5e931b7
1 changed files with 3 additions and 0 deletions

View File

@ -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