This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PixelToast's profile picture

my automatic disk player with redpower

Started by PixelToast, 06 June 2012 - 01:55 PM
PixelToast #1
Posted 06 June 2012 - 03:55 PM
i made an automatic disk player and didnt have to use abunch of computers with disk drives all around it wich would save space but make it harder to program
it is in my sub basement in my warehouse and is remote controlled
i dont have any working remote control code yet but working it is simple:


list={["C418 - 13"]=180,["C418 - cat"]=186,["C418 - blocks"]=347,["C418 - chirp"]=186,["C418 - far"]=172, ["C418 - mall"]=197, ["C418 - mellohi"]=98, ["C418 - stal"]=151, ["C418 - strad"]=191, ["C418 - ward"]=250, ["C418 - 11"]=70}
function play(num)
  rs.setOutput("right",true)
  sleep(0.1)
  rs.setOutput("right",false)
  while not disk.isPresent("bottom") do
	rs.setBundledOutput("left",2^(num-1))
	sleep(0.1)
	rs.setBundledOutput("left",0)
  end
  local timer=os.startTimer(list[disk.getLabel("bottom")])
  disk.playAudio("bottom")
  event=nil
  while not(event=="timer" and (id==timer or dExit)) do
	event,id=os.pullEvent()
  end

  rs.setOutput("right",true)
  sleep(0.1)
  rs.setOutput("right",false)
end

Teraminer #2
Posted 06 June 2012 - 06:58 PM
nice! could you make a video?
PixelToast #3
Posted 07 June 2012 - 06:42 AM
nice! could you make a video?
once i finish my remote player i might make a vid :3
Teraminer #4
Posted 07 June 2012 - 09:18 AM
Yeah!
Backplague #5
Posted 18 June 2012 - 08:10 AM
This is very similar with the automatic music repeater i made a few days ago.
DarkNinja2462 #6
Posted 19 June 2012 - 02:35 PM
I made this like a month or two ago!!
Look at my programs (in my signature), and it was jukebox with redpower 2.
Noodle #7
Posted 20 June 2012 - 10:11 AM
Agreed with above comment, I saw it.
BTW Why do you need this? You could just attach Disk Drives to the sides of the computers.
Teraminer #8
Posted 20 June 2012 - 10:22 AM
This PUTS the discs in the disc drive not only plays them
Noodle #9
Posted 20 June 2012 - 10:28 AM
And?
I get that it loops but you can make a program that does that.
PixelToast #10
Posted 21 June 2012 - 11:47 AM
i made this because i didnt want to have to deal with 3 computers exchanging rednet signals
Deathknight0897 #11
Posted 04 July 2012 - 11:19 AM
so do it through bundled cables there is what 13 songs and you can get 5 disc drives on every pc without blocking the screen so 3 computers all connected assign one as white then other as red and then the other as green then have each run dj when a red stone current is received now make a 4th computer with a randomization that selects between 1 to 3 which corresponds to it sending a signal to either red,white or green also this means you will have a dam good random shuffle.

However nice mechanical Jukebox