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

[Lua] Adding Songs to Computercraft

Started by timyo24, 11 August 2012 - 03:15 AM
timyo24 #1
Posted 11 August 2012 - 05:15 AM
Is there anyway for me to add songs to a floppy for in game???? If so how can i change an audio file into a file readable by CC?
Cranium #2
Posted 11 August 2012 - 05:21 AM
So far as I know, it can really only be done with editing the modfiles, and that can actually corrupt your game if you don't know what you're doing. You may be able to find another mod that allows you to have more music disks, but it may not be compatible with CC.
Pharap #3
Posted 11 August 2012 - 05:49 AM
Only way to do it at the moment is to rig up a load of noteblocks to the computer and create a system that sends a current to each noteblock according to what command/word it reads (thus songs could be saved as files, essentially turning floppy disks into multi-track CDs.
timyo24 #4
Posted 11 August 2012 - 06:14 AM
Only way to do it at the moment is to rig up a load of noteblocks to the computer and create a system that sends a current to each noteblock according to what command/word it reads (thus songs could be saved as files, essentially turning floppy disks into multi-track CDs.

Ummmmm im new to CC so any idea on how to do that? lmao
Pharap #5
Posted 11 August 2012 - 06:26 AM
Only way to do it at the moment is to rig up a load of noteblocks to the computer and create a system that sends a current to each noteblock according to what command/word it reads (thus songs could be saved as files, essentially turning floppy disks into multi-track CDs.

Ummmmm im new to CC so any idea on how to do that? lmao

Well, it's going to be relatively difficult. How much do you know about programming or music?

For programming it, you'd need to know either the filesystem or IO functions, as well as being able to control the output of a bundled cable. Then you'd have to tune the noteblocks, and figure out a system for translating music notes into numbers/letters so the computer can read them and process them(so it knows what notes to play). On top of the basic programming skills of course.
timyo24 #6
Posted 11 August 2012 - 06:31 AM
Only way to do it at the moment is to rig up a load of noteblocks to the computer and create a system that sends a current to each noteblock according to what command/word it reads (thus songs could be saved as files, essentially turning floppy disks into multi-track CDs.

Ummmmm im new to CC so any idea on how to do that? lmao

Well, it's going to be relatively difficult. How much do you know about programming or music?

For programming it, you'd need to know either the filesystem or IO functions, as well as being able to control the output of a bundled cable. Then you'd have to tune the noteblocks, and figure out a system for translating music notes into numbers/letters so the computer can read them and process them(so it knows what notes to play). On top of the basic programming skills of course.

Nevermind then lol, im relatively new to coding, and im trying out different things, thought this might be a fun task to tackle, but seems way too complicated at my skill level as of now.
Pharap #7
Posted 11 August 2012 - 06:43 AM
Only way to do it at the moment is to rig up a load of noteblocks to the computer and create a system that sends a current to each noteblock according to what command/word it reads (thus songs could be saved as files, essentially turning floppy disks into multi-track CDs.

Ummmmm im new to CC so any idea on how to do that? lmao

Well, it's going to be relatively difficult. How much do you know about programming or music?

For programming it, you'd need to know either the filesystem or IO functions, as well as being able to control the output of a bundled cable. Then you'd have to tune the noteblocks, and figure out a system for translating music notes into numbers/letters so the computer can read them and process them(so it knows what notes to play). On top of the basic programming skills of course.

Nevermind then lol, im relatively new to coding, and im trying out different things, thought this might be a fun task to tackle, but seems way too complicated at my skill level as of now.

I know everyone says it, but start with the password lock on the door.

Also, it helps to know some programming concepts before you jump in. They are called programming languages for a reason, they are essentially like other languages to anyone who doesn't understand them. I recommend checking out the computercraft wiki if you are looking for a specific function. Otherwise, look up some programs/simple code on youtube and see how they are structured and try to learn from that.