Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function play_note(n)
- print("playing note ", n)
- if n > 15 then
- frnt = n - 15
- bot = n - frnt
- else
- bot = n
- frnt = 0
- end
- rs.setAnalogOutput("bottom", bot)
- rs.setAnalogOutput("front", frnt)
- end
- function main()
- for i=0,30,1 do
- play_note(i)
- sleep(1)
- end
- rs.setAnalogOutput("bottom", 0)
- rs.setAnalogOutput("front", 0)
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement