Posted 30 March 2016 - 02:36 AM
Hello there, i have a question about finding a specific music disk.
basically i have a music system that uses a a drive for each music disk, since the server i play on has a restriction on turtles.
I want that music system to find specific a specific disk in one of those drives and play it, but i can't figure out how i can get my program to find lets say the music disk cat and play that, but not the other 18 disks.
at the moment all my functions look like this (Using the D20 button api)
And i need to tell it what drive it needs to be playing music from
In this case the music disk "Chirp" is in drive_3.
Any help is greatly appreciated. :)/>
basically i have a music system that uses a a drive for each music disk, since the server i play on has a restriction on turtles.
I want that music system to find specific a specific disk in one of those drives and play it, but i can't figure out how i can get my program to find lets say the music disk cat and play that, but not the other 18 disks.
at the moment all my functions look like this (Using the D20 button api)
function Chirp()
button.flash("Chirp")
print("Loading Chirp")
peripheral.find("drive", disk.stopAudio)
disk.playAudio("drive_3")
end
And i need to tell it what drive it needs to be playing music from
In this case the music disk "Chirp" is in drive_3.
disk.playAudio("drive_3")
Any help is greatly appreciated. :)/>
Edited on 30 March 2016 - 12:37 AM