Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Devnote is created by Devon the Novice and has no usage limits at all, edit, rewrite, and destroy this all you want, some credit would be nice, but is not required and report the bugs. by bugs I mean me screwing up with a name or something]]--
- note = nil
- function wrap(side)
- local wrapped = false
- if side ~= nil then
- note = peripheral.wrap(side)
- wrapped = true
- else
- for _,side in pairs(rs.getSides()) do
- if peripheral.isPresent(side) and peripheral.getType(side) == "note" then
- note = peripheral.wrap(side)
- wrapped = true
- end
- end
- end
- return wrapped
- end
- function piano(nPitch)
- note.playNote(0,nPitch)
- end
- function drum(nPitch)
- note.playNote(1,nPitch)
- end
- function snare(nPitch)
- note.playNote(2,nPitch)
- end
- function click(nPitch)
- note.playNote(3,nPitch)
- end
- function bass(nPitch)
- note.playNote(4,nPitch)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement