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

Play a ComputerCraft Music in a Multiplayer Server

Started by Hipermahp, 11 December 2016 - 08:00 AM
Hipermahp #1
Posted 11 December 2016 - 09:00 AM
I would like to know if there is way to convert music files on the computer, into a text format so that it could pastebinned (/pastebin) into a computercraft computer on a multiplayer server. So then could play this text using a program from a computer attached to 5 Note Blocks, via cable.
Lupus590 #2
Posted 11 December 2016 - 04:52 PM
not that i know of.
but you could invent a format
KingofGamesYami #3
Posted 11 December 2016 - 06:53 PM
Music disks don't contain files.

They are references to .ogg files included with minecraft. CC is able to ask Minecrart to play them, but does not interact with the actual file AFAIK.
H4X0RZ #4
Posted 11 December 2016 - 06:58 PM
If you are able to use Iron Noteblocks there is this program.

I once used it on the glorious (OG) LuaLand server, but that's history now…
SquidDev #5
Posted 11 December 2016 - 07:01 PM
If you are able to use Iron Noteblocks there is this program.
To expand on this, Note by BombBloke and TheOriginalBit is capable of playing Note Block Studio files. Whilst I don't think NBS can import standard mp3 files, it can handle MIDIs: you can generally find a midi conversion of most popular tunes.
Bomb Bloke #6
Posted 11 December 2016 - 11:06 PM
Assuming you are talking about NBS files, Package can upload / download them (or most any file type, really).
Hipermahp #7
Posted 13 December 2016 - 12:50 AM
I don't have Iron Note Blocks, just regular ones. If it's impossible will try other thing. :/

If you are able to use Iron Noteblocks there is this program.

I once used it on the glorious (OG) LuaLand server, but that's history now…

Do you know any for normal Note Blocks?
H4X0RZ #8
Posted 13 December 2016 - 06:06 AM
I don't have Iron Note Blocks, just regular ones. If it's impossible will try other thing. :/

If you are able to use Iron Noteblocks there is this program.

I once used it on the glorious (OG) LuaLand server, but that's history now…

Do you know any for normal Note Blocks?

It's impossible to make such complex music using just regular noteblocks AFAIK because you can't get as much instruments and keep up with the speed.
CrazedProgrammer #9
Posted 13 December 2016 - 01:14 PM
I don't have Iron Note Blocks, just regular ones. If it's impossible will try other thing. :/

If you are able to use Iron Noteblocks there is this program.

I once used it on the glorious (OG) LuaLand server, but that's history now…

Do you know any for normal Note Blocks?

It's impossible to make such complex music using just regular noteblocks AFAIK because you can't get as much instruments and keep up with the speed.
Yep, it's pretty impossible to play complex music with normal note blocks.
Command computers do have the ability though.

With iron note blocks/command computers the limits are:
- 5 instruments
- f#3-f#5 range
- No attack, sustain, decay
H4X0RZ #10
Posted 13 December 2016 - 04:13 PM
I don't have Iron Note Blocks, just regular ones. If it's impossible will try other thing. :/

If you are able to use Iron Noteblocks there is this program.

I once used it on the glorious (OG) LuaLand server, but that's history now…

Do you know any for normal Note Blocks?

It's impossible to make such complex music using just regular noteblocks AFAIK because you can't get as much instruments and keep up with the speed.
Yep, it's pretty impossible to play complex music with normal note blocks.
Command computers do have the ability though.

With iron note blocks/command computers the limits are:
- 5 instruments
- f#3-f#5 range
- No attack, sustain, decay

So you could build a dummy peripheral which would play sound through commands and then use it with the existing programs?
Bomb Bloke #11
Posted 14 December 2016 - 12:22 AM
I think someone already produced a script that plays via commands (there are a few NBS players around and I'm sure I saw a command-based one somewhere). I've edited the functionality into an unreleased version of Note, and while it works perfectly, there's a bit of a downside in what it does to the server logs…

The "dummy peripheral" thing is do-able, but each player tends to want a specific type of peripheral anyway… there are quite a few different "note blocks" available by now, and they don't all use the same call syntax.