Search the Community
Showing results for tags 'note'.
Basically, this API provides a single function: song.play(notes: table or string,shortest: number) Input being either a table or a string. Using a table, each note-duration combination is a string in a table value. The function will iterate through every entry of the table and play all the notes with their specified duration. Using a string, every note-duration combination is seperated by a free space " ". Regarding the special syntax used, this is copied from the header of the song API: Examples: "E5": Plays the note "E5" for the duration specified in the second parameter (default 0.1
Hi, I am new to OC, coming from CC and I want to make my music player in OC... The issue I had with CC was that it was not possible to play multiple notes at the same time, but this was fixed with the information here: http://www.computercraft.info/forums2/index.php?/topic/18995-openperipherals-play-2-or-more-noteblocks-at-the-same-time/ Now the 2 solutions available for CC don't seem to be available in CC so I tried around a bit with events... Didn't work as intended and even got a crashing computer out of it... Here's my code: local component = require("component") local cou