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

[CC 1.31] Super Note Block - All Note Blocks In One!

Started by islanderon01, 19 March 2012 - 02:15 AM
islanderon01 #1
Posted 19 March 2012 - 03:15 AM
Super Note Block
by ags131

The Super Note Block allows you to access any note block sounds from one block via the peripheral API. It has one block named SuperNoteBlock which can be crafted using a block of dirt (temporary recipe). It has one method called playNote which has two params, the first is the instrument (0-4) and the second is note (1-24).

Example:

The below code plays sound 4 of instrument 0 using a SuperNoteBlock on the left side of the computer.


nb = peripheral.wrap("left")
nb.playNote(0, 4)

Downloads

Client

MC 1.1: http://dl.dropbox.co...-Client-1.1.zip
MC 1.2.3: http://dl.dropbox.co...lient-1.2.3.zip
MC 1.2.5 (fan update by ds84182) http://www.mediafire.com/?lfn50alr1h24fmk
Server
MC 1.1: http://dl.dropbox.co...-Server-1.1.zip

Videos



ATTENTION: I did not make this mod, I just posted a thread for the creator.

New and improved piano program: http://pastebin.com/yfMaEHqu
ags131 #2
Posted 19 March 2012 - 02:47 PM
Need to point out that its for CC 1.31 :D/>/>
EDIT: Works on 1.3 according to Cloudy :)/>/>
Dreamlash #3
Posted 19 March 2012 - 07:19 PM
Name it "Soprano Note Block" that fit more.
Wolvan #4
Posted 19 March 2012 - 07:26 PM
Nice a wonderful piece of work :D/>/> Now I create a noteblock under my store and let it play The store song from LoZ
Xtansia #5
Posted 19 March 2012 - 10:27 PM
I had actually just finished coding something like this, oh well.
But I have 3 suggestions:
1 - The notes of a noteblock are 0 - 24 not 1 - 24,
2 - Recipe could be:
###
#$#
#*#
Where # = Stone, $ = Noteblock, * = Redstone.
3 - Given that CC uses forge now you may aswell use forges texture api.
Wolvan #6
Posted 19 March 2012 - 10:58 PM
Just wanted to ask for some pictures maybe if that would be possible
ags131 #7
Posted 19 March 2012 - 11:55 PM
Dreamlash: Good Idea, It needed a better name :)/>/>
tomass1996:
1. Didnt realize there was 25 notes, Ill get the OP updated…
2. Good Idea :P/>/>
3. Already done on newest 1.1 version, 1.2.3 may be a little slower on updates as I don't actually use 1.2.3
Wolvan: Ill try to get some up ;)/>/>
Its an ugly texture though :D/>/> (On that note I could use a better 16x texture and a 64x/128x Sphax texture :)/>/>

Islanderon, please update the links, they are:
http://dl.dropbox.com/u/10471884/SuperNoteBlock-Client-1.1.zip
http://dl.dropbox.com/u/10471884/SuperNoteBlock-Client-1.2.3.zip
http://dl.dropbox.com/u/10471884/SuperNoteBlock-Server-1.1.zip (Yes its a SMP version! :)/>/> Bukkit port coming soon!)
Xtansia #8
Posted 20 March 2012 - 02:26 AM
See Notes:

Notes: F#3 -> F#5


My texture I had:
coolblockj #9
Posted 20 March 2012 - 03:50 AM
1.2.3 Server Version comming out soon?
ags131 #10
Posted 20 March 2012 - 03:08 PM
1.2.3 Server Version comming out soon?
Possibly, I need to port 1.1 to 1.2.3 again. Since I don't actually use 1.2.3, 1.2.3 updates will be slower.
ags131 #11
Posted 22 March 2012 - 05:15 AM
UPDATE: There IS a Bukkit version of 1.2.3 thanks to Doridian, unfortuonately, I still don't have a 1.1 port and am not sure howto backport it or how to port the 1.1 SMP version to bukkit.
Even though there is a 1.2.3 bukkit port of the 1.1 server, there is NOT a 1.2.3 client that can connect. ONLY the 1.1 client will actually connect to a server.
Anyone wanting to port, contact me via PM in IRC or skype (ags131), I will most likely supply sources to porters :(/>/>
ds84182 #12
Posted 26 March 2012 - 10:50 PM
Can I decompile this mod and make it play all 88 notes on the piano, 0(Of Course) starting with F#3?
ags131 #13
Posted 27 March 2012 - 11:50 PM
Can I decompile this mod and make it play all 88 notes on the piano, 0(Of Course) starting with F#3?

Yea sure, although I may have already said so in skype, sources are available upon request :o/>/>
I'm releasing sources under the MIT license, basically, this means do whatever you want but give credit :o/>/>
ds84182 #14
Posted 28 March 2012 - 12:45 AM
Can I decompile this mod and make it play all 88 notes on the piano, 0(Of Course) starting with F#3?

Yea sure, although I may have already said so in skype, sources are available upon request :o/>/>
I'm releasing sources under the MIT license, basically, this means do whatever you want but give credit :o/>/>
That was before skype.
djblocksaway #15
Posted 31 March 2012 - 04:45 AM
cool this could be used for an IM system e.g when someone sends an IM you can program it to make the all in one noteblock play a tune or make a sound :o/>/>
Wolvan #16
Posted 31 March 2012 - 08:34 AM
Playing tetris loop *_*
FuzzyPurp #17
Posted 01 April 2012 - 06:41 AM
The 1.2.3 version doesnt generate a config file
Ludburghmdm #18
Posted 13 April 2012 - 07:57 AM
Is this gonna get updated? Because i think this is a really good peripheral!
islanderon01 #19
Posted 15 April 2012 - 03:48 AM
The 1.2.3 version doesnt generate a config file

What config file?

Is this gonna get updated? Because i think this is a really good peripheral!

I'll contact ags131 about it when I see him next, haven't seen him in a while though. I think he's forgotten about updating it :)/>/>
xuma202 #20
Posted 15 April 2012 - 12:32 PM
The recipe must be changed because I can't use this with Little Blocks.
Evilbunk #21
Posted 14 May 2012 - 03:12 PM
Nice a wonderful piece of work :P/>/> Now I create a noteblock under my store and let it play The store song from LoZ


u write in binary!!!

I love Programming
I am from Austria
I love to help you guys
I am a brony
FuzzyPurp #22
Posted 17 May 2012 - 07:41 AM
The 1.2.3 version doesnt generate a config file

What config file?
The recipe must be changed because I can't use this with Little Blocks.

That config file..
ags131 #23
Posted 31 May 2012 - 04:45 AM
Quick update on this: I've been away from minecraft for a while, finished a semester of college and now starting another and working almost fulltime. I'm wanting to improve this more, but now that i think about it, I most likely wont have the time since i have classes and work now. If anyone wants to take over let me know, the sources are really simple, I can dig them off my laptop if anyone's interested. If you want a quick reply and not risk me forgetting about this (again) you can contact me on skype (ags131) :)/>/> I ust wish I had time for projects like these…. But being paid for PHP programming is fun :)/>/>
Kane Hart #24
Posted 31 May 2012 - 05:35 AM
Quick update on this: I've been away from minecraft for a while, finished a semester of college and now starting another and working almost fulltime. I'm wanting to improve this more, but now that i think about it, I most likely wont have the time since i have classes and work now. If anyone wants to take over let me know, the sources are really simple, I can dig them off my laptop if anyone's interested. If you want a quick reply and not risk me forgetting about this (again) you can contact me on skype (ags131) :)/>/> I ust wish I had time for projects like these…. But being paid for PHP programming is fun :)/>/>

Sorry to see you go. This is to bad would have loved to see it make it out for 1.2.5 bukkit. But hopfully someone will continune from where you left off.
Cloudy #25
Posted 31 May 2012 - 07:34 AM
I'm interested in taking this over - I can integrate the functionality into my CCSpeaker peripheral perhaps? The only thing that was stopping me doing a similar thing was that I didn't want to step on your toes :)/>/>
ags131 #26
Posted 31 May 2012 - 10:29 PM
Sure, I dont mind. :)/>/> This was mainly a personal project originally as i hated having to setup dozens of noteblocks :)/>/>
I do have a copy of the sources on DropBox, not sure if they are the latest though. i will check once i'm back home. :P/>/>
Heres the link though, shouldn't be much different from what is on my laptop even if I changed stuff. (Config is the only thing i can think of that I dont see in these sources.)
http://db.tt/2KeydmJN

It uses Modloader MP and Forge, although I think MLMP is being phased out now on many mods.
ds84182 #27
Posted 09 June 2012 - 10:40 PM
Here is a 1.2.5 update:
http://www.mediafire...lfn50alr1h24fmk
Bossman201 #28
Posted 09 June 2012 - 11:19 PM
This should really be put into the next update of CC. Created a new thread in 'suggestions' and then realized you all already said that.
Klausar #29
Posted 19 July 2012 - 03:00 PM

How to install this? My Minecraft crashes all the time I try to install it.
ags131 #30
Posted 24 July 2012 - 02:53 PM
Cleaned out my dropbox so the current inks no longer work, I've put all files that I can find for SuperNoteblock in a zip on my DropBox.
Cloudy was interested in taking this over so I'm handing this over to him. I have no idea what version of the sources is in this zip, and not sure which jars are latest, so Im just uploading all.
Linky here: https://dl.dropbox.com/u/10471884/SNB.zip
Cloudy #31
Posted 24 July 2012 - 04:33 PM
Thanks! I'll try and look at this sometime this week when all the 1.4 release stuff is over!
absorr #32
Posted 19 September 2012 - 02:40 AM
Can you make it for Bukkit please? I don't mean to be one of those pushy guys, but I would love to see this ported to Bukkit. In fact, I could do it for you if you want (as a moder my self) but you would have to send me the source code and I don't think you would be comfortable with that.
Klausar #33
Posted 29 September 2012 - 02:21 PM
Can someone update this?
RichardG867 #34
Posted 29 September 2012 - 03:50 PM
I am working on doing so, coincidentally. Just need Dan to fix his issues with latest Forge
Cloudy #35
Posted 29 September 2012 - 04:06 PM
I was going to implement this feature in CCSpeaker when I updated it heh - but feel free to update it so I don't have to :)/>/>
Klausar #36
Posted 30 September 2012 - 08:02 AM
Can't wait to make my piano!