Jump to content




[1.4.7] [CC 1.481] CCNoise - generate custom sounds


20 replies to this topic

#1 TomyLobo

  • Members
  • 42 posts

Posted 01 May 2013 - 09:08 PM

Purpose:
Adds a speaker peripheral that can generate sounds given a formula and also play any minecraft sound.

Download:
0.0.4c (Beta)

Video:
Spoiler

Interface:
Spoiler

Config:
Spoiler

Credits:
- Texture by MrFaul
- build.xml taken from OpenCCSensors
- tiny bits and pieces as well as some concepts from PortablePeripherals by mentlerd

Changelog:
Spoiler

Known issues:
- Sound names cannot end in a digit.
- In SMP, generated sounds might not be unloaded on the client after a computer reboots.
- Other players get jumpy when I run my ghast sound simulator.
- The speaker block has two front sides when dropped to the floor as an item.
- CCNoise does not behave well when the sound is set to 0%. If you connect to a server that has generated sounds loaded, the client crashes.

Source:
The source code is available at https://github.com/TomyLobo/ccnoise under the LGPLv3 (until someone makes a valid case for another license)

#2 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 01 May 2013 - 09:46 PM

cool!

#3 TomyLobo

  • Members
  • 42 posts

Posted 02 May 2013 - 07:02 AM

0.0.4 (Beta)
- Clamped output to -1..1.
- The sawtooth function's output is now 0..1 instead of -1..1.

#4 TomyLobo

  • Members
  • 42 posts

Posted 02 May 2013 - 08:50 AM

0.0.4a (Beta)
- No longer crashing everyone who is out of range or in another dimension when generating a sound.

#5 TomyLobo

  • Members
  • 42 posts

Posted 02 May 2013 - 10:54 AM

CCNoise does not behave well when the sound is set to 0%. If you connect to a server that has generated sounds loaded, the client crashes.

Seriously, Mojang, wtf?

#6 TomyLobo

  • Members
  • 42 posts

Posted 02 May 2013 - 12:14 PM

0.0.4b (Beta)
- Fixed sound playing in the nether.

#7 TomyLobo

  • Members
  • 42 posts

Posted 02 May 2013 - 07:01 PM

0.0.4c (Beta)
- REALLY fixed sound playing in the nether this time.

#8 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 02 May 2013 - 07:12 PM

This is pretty cool. +1.

#9 TecmagDiams

  • Members
  • 11 posts

Posted 02 May 2013 - 09:01 PM

Looks awesome! Would love to see a screenshot of what the speaker looks like, and a CCDesk plugin for it, but I can't wait to try it out and mess around with it!

#10 TomyLobo

  • Members
  • 42 posts

Posted 03 May 2013 - 05:54 AM

CCDesk? the HTTP server thingie?

I made a demonstration video btw:


#11 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 03 May 2013 - 06:37 PM

CCDesk is a CC emulator.

#12 TomyLobo

  • Members
  • 42 posts

Posted 04 May 2013 - 07:24 AM

and people emulate their programs end-to-end in that?

I'm asking because if they don't, I don't see much point in doing a minor detail like sound output in CCDesk.
I'd also need to write sound output from scratch, which seems like a huge waste of time for such a tiny benefit.

Sure, I guess I could make a peripheral that just has the interface and does nothing

#13 TecmagDiams

  • Members
  • 11 posts

Posted 04 May 2013 - 07:59 AM

By no means do I think you need to push to make a CCDesk plugin, but it's just a nice extra to have. I personally enjoy emulators, because if I'm working from a computer that isn't mine, I can still boot up my GoogleDrive and an emulator like CCDesk (because of it's online version) and keep coding things for my server. It's also nice because if I wanted to play around with a peripheral, without actually adding it to my server, I could see how the peripheral works and then add it to my server if I've coded some really fun stuff with it, that I could really put to use.

And yes, people can emulate programs end-to-end. I usually like to use an emulator like CCDesk while working on programs that have little physical effect on my world.

If you get around to adding support for it, or finding someone that would for you, really think about it. If it's not something you have much desire to do, or don't want to put the work in, that's really no issue, it looks like you already have something great going. ^.^

#14 TomyLobo

  • Members
  • 42 posts

Posted 04 May 2013 - 09:04 PM

You can use MagicLauncher to run minecraft from any folder you want. (the path needs to end in .../.minecraft though, but that can be anywhere)

#15 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 09 May 2013 - 04:48 PM

The link is down.

#16 TomyLobo

  • Members
  • 42 posts

Posted 10 May 2013 - 07:45 PM

View Postxuma202, on 09 May 2013 - 04:48 PM, said:

The link is down.
The link is back up

Sorry for not replying earlier. I only just found out that email notifications are off by default.

#17 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 11 May 2013 - 06:38 AM

View PostTomyLobo, on 10 May 2013 - 07:45 PM, said:

View Postxuma202, on 09 May 2013 - 04:48 PM, said:

The link is down.
The link is back up

Sorry for not replying earlier. I only just found out that email notifications are off by default.

No problem, I was able to build it myself but I thought of the others too.

#18 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 06 July 2013 - 09:43 AM

This looks nice!

When ComputerCraft for 1.6 comes out, there will be no need to play Minecraft sounds with this as you can do that with command blocks:
/playsound random.chestopen @p


#19 TomyLobo

  • Members
  • 42 posts

Posted 06 July 2013 - 10:40 AM

View PostZudoHackz, on 06 July 2013 - 09:43 AM, said:

This looks nice!

When ComputerCraft for 1.6 comes out, there will be no need to play Minecraft sounds with this as you can do that with command blocks:
/playsound random.chestopen @p
That's only a tiny part of the functionality of this mod.
The major part is the generation of custom sounds.
But thanks for the info, I wasn't aware of this command :)

#20 Win7yes

  • Members
  • 110 posts

Posted 14 May 2014 - 06:07 PM

Can you update to CC 1.63?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users