loading

How to Make LEDs Flash to Music with an Arduino

Picture of How to Make LEDs Flash to Music with an Arduino
This is a guide to make an LED flashing circuit that "beats" to an mp3 file on your computer, which can add an awesome effect to any sound-related device, or even your room (if you extend the concept with LED drivers or plenty of resistors/transistors).

The LED flashing circuit makes use of the Minim audio library and the Arduino program Processing to analyze sound, producing a response based on a snare drum hit, a bass drum hit, and a hi-hat hit from the percussion of the audio file.

 
Remove these adsRemove these ads by Signing Up

Step 1: Parts/Tools Needed

Picture of Parts/Tools Needed
Here is what you'll need to make the LED beat flashing circuit:

Hardware:
1. An Arduino microcontroller board. There are many versions of the Arduino, but I would recommend the Arduino Duemilanove. You can buy one online for around $20.
2. Three LEDs (different colors preferred, so you can see the difference in beats easier - I used a red, yellow, and green LED)
3. Three resistors (depending on your LEDs, the resistor value will be different - check the ratings on the LEDs to see what resistance corresponds to their maximum brightness, without burning them out)
4. A solderless breadboard
5. Some wire, to use as leads from the Arduino to the LEDs/resistors on the breadboard
6. A computer
7. A USB cable (A to B)

Software:
1. Arduino Software Environment
2. Processing Software Environment
3. The "arduino" library for Processing
4. The BeatWrite / BeatListener code from the minim JavaSound library examples

Download links for the software will follow in Step 3.

Step 2: Build the Circuit on the Breadboard

In order to have the Arduino access the LEDs, you have to build a small circuit on a solderless breadboard. The breadboard has two parts: the inner rails (which run width-wise) and the outer rails (which run length-wise). The rails are electrically connected along their lines, so you can connect components without actually soldering them together. Here is how to make our simple circuit:

1. Run a wire from the digital GND port of the Arduino to the negative outer rail of the breadboard, as shown in image 1.
2. Place your three resistors (I used 1kilo-ohm resistors for this example, which matched my LEDs well enough) in an evenly-spaced fashion on the inner rails of the breadboard. Note that on a breadboard, a line runs length-wise, halfway down the middle. This separates the left inner rails from the right inner rails, so you can connect more components. Position the resistors so that they bridge the gap between the inner rails, as shown in image 2.
3. Place the LEDs right next to the right side of the resistors, with the anode (the longer end) in the slot right next to the resistor, and the cathode (the shorter end) into the slot that is offset to the resistors by 1 slot, as shown in image 3 (see image 4 to see the difference between an anode and a cathode).
4. Run wires from the cathode rail of the LEDs to the ground outer rail, as shown in image 5.
5. Run wires from the anode side of the resistors to digital pins 12, 8, and 2 on the Arduino to complete the circuit, as shown in image 6 and 7.

Now that we have our circuit made, it's on to the programming.

Step 3: Program your Arduino

Picture of Program your Arduino
Untitled.png
Untitled 2.png
Programming the Arduino is pretty simple. Through a couple of small programs, your simple LED circuit will be dancing to the beat in no time.

1. Connect the Arduino to your computer with your A to B USB cable (your computer should install its driver automatically) - see image 1.
2. Download the Arduino Software Environment from here and extract it to a folder (no installation required, just keep the folder in a safe place).
3. Download the Processing Software Environment from here and extract it to a folder near your Arduino SE folder.
4. Download the Arduino library for Processing from here, and copy it into your Processing/libraries folder.
5. Run the arduino.exe program in your Arduino SE folder.
6. Go to File -> Examples -> Firmata -> StandardFirmata, and press the Upload button on the Arduino SE (see image 2).
7. Wait a few seconds, until your RX/TX LEDs on your Arduino stop blinking (which means the Firmata firmware is installed).
8. Download and unzip the attached folder of code below (BeatWrite.zip).
9. Copy an .mp3 file into the "data" folder of the unzipped BeatWrite folder.
10. Open Processing (processing.exe), then open the BeatWrite.pde file in the BeatWrite folder.
11. Edit the line of code "song = minim.loadFile("freebird.mp3", 2048);". Instead of using "freebird.mp3", use the filename of your mp3.
12. Hit the Run button on the top-left (see image 3).

Sit back, and enjoy the light show!

Step 4: How it Works / Customizing the Script

The reason this program works is due to the minim JavaSound library. This fancy library comes with Processing, and can do plenty of cool things with analyzing audio signals. In our case, it uses the fast fourier transform of the audio signal from the mp3 to analyze certain frequencies, and lights an LED if certain ranges of frequencies go above the allotted "sensitivity" value. In order to change this sensitivity value, all you need to do is change the "beat.setSensitivity(100);" line of code in the BeatWrite program. Also, as I said before, you can definitely extend this concept to many LEDs on a large scale. This is just a small-scale example of the potential for this great library. Also, if you know more about your mp3 than just generic hi-hat, snare, and bass drum hits, you can use the isRange(int low, int high, int threshold) method to beat the circuit to other patterns in your music. The sky is the limit in terms of audio processing with Minim and BeatDetect.

Many thanks to the Minim team for providing a BeatDetect manual with plenty of examples. This LED tutorial is a hardware extension of this software example.

Step 5: How it Should Look

Here is a video of when I first made the BeatWrite circuit (it looks a little different than the one we're building, but the concept is the same).


Have fun with your new Arduino BeatDetect circuit!
1-40 of 150Next »
jordxn2 years ago
Also had the "the package "cc" does not exist issue. To fix -- In the Processing Editor, select "Sketch" > "Add File", then just select the "Ardunio.jar" file. Should work!

I also got "ArrayIndexOutOfBoundsException" -- To get this fixed;

Changed line 35 from;
arduino = new Arduino(this, Arduino.list()[1], 57600);
To;
arduino = new Arduino(this, Arduino.list()[0], 57600);

And then it works!! :)

Thank you!!

PetrasB jordxn7 months ago

Thank you!

HOW DO YOU GET THE LEDS TO LIGHT UP??????

Wow calm down

JustinS2325 days ago
agohary2 months ago

If someone could help me I would be so unbelievably grateful. I did all the steps, but I get an error that says, "Cannot find a class or type named BeatListener"

Please can someone help me. On one of the pictures ^^^ There are two tabs: BeatWrite and BeatListener. I only have BeatWrite. Can someone please help me!!!

rvazquez6 made it!3 months ago
It worked after editing the Beatwrite code as previous comments have indicated. Thanks everyone!
temp_-1861530349.jpg
naveed.edalati11 months ago

Hi. Does anyone know how I can extend the length of time each LED is on for? I am trying to hook the outputs to a relay module and feed it to a traffic light. The period of each pulse is way too fast at the moment and I am looking to reduce it.

I got this up and running this weekend. Works pretty well with this relay board:

http://www.sainsmart.com/4-channel-5v-relay-module-for-pic-arm-avr-dsp-arduino-msp430-ttl-logic.html

(although sometimes you need to tweak the delays for different music styles). The main changes I made to the code were:

- beat.setSensitivity(800);

- added a delay function

- added a delay(200) within each of the beat detect if statements

- the relay is active low, so I reversed the output logic levels

Here is my full code: http://pastebin.com/fhZYyh6P

Framebuffer error (framebuffer unsupported), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help.

OpenGL error 1280 at bot beginDraw(): invalid enumerant

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1

at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)

at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)

at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)

at javax.media.opengl.Threading.invoke(Threading.java:191)

at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)

at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)

at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)

at processing.core.PApplet.run(PApplet.java:2256)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1

at BeatWrite.setup(BeatWrite.java:56)

at processing.core.PApplet.handleDraw(PApplet.java:2361)

at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)

at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)

at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Could not run the sketch (Target VM failed to initialize).

For more information, read revisions.txt and Help ? Troubleshooting.

AliceF45 months ago

This continues to pop up when I try to run to program. I'm running it on mac. How do I fix it?

Screen Shot 2015-02-02 at 9.36.59 AM.png

you might need to install the Arduino library for Processing.

springy255 months ago

hi!

Can i use laser instead of leds?

yhdesai5 months ago

CAN I ATTACH MICROPHONE FOR INPUT

sabitrustemov6 months ago
Hello, everyone!
I need your help!
When i run the BeatWrite I got this output
BeatWrite show nothing
Who knows what the problem?
IMAG1246.jpg
Chums36 months ago

I'm having a problem on where do i extract the arduino library for processing .
When i run the processing there's an error telling that there's no cc.arduino in your library . Can someone show me on where to extract the arduino library . Step by step . Thanks for those who's willing to help me . Hoping for your replies!

periprohus Chums36 months ago

You can just go to Sketch/Import library/Add library and then search for Arduino, click install, and there you go

mark.mckinnon.37 made it!7 months ago

Worked great for me, thanks for the awesome tutorial! Fun little project that I plan on expanding into future projects. The only comment I have is that I was running into some problems communicating with the arduino initially.

In the Beatwrite code be sure to edit the following line of code:

arduino = new Arduino(this, Arduino.list()[2], 57600);

The number in brackets (2 in this example) is the com port that the arduino is on. I'm running a mac, so it wasn't listed as com 1,2,3 like it is one a windows machine. I simply used trial and error starting at 0 and eventually it worked when I tried 2. After I got that sorted out, it worked great.

I also attempted to play a .m4a audio file and the program crashed. I'm not sure if there's another format that can be used, but I plan on doing further research.

IMG_20141202_221004.jpg

Thank you, this was really helpful and I was able to make it work with your edit.

jeffmodell10 months ago

I got it working but is there any ideas on getting it to play with live streaming audio from either a player or line in

Have you had any luck with this? I'd love to have to do that as well. Maybe use an a microphone to pick up the surrounding audio and have it analyzed by processing? That seems crude, but it's what comes to mind at the moment.

athena.kihara8 months ago

I everybody! I keep getting an error that the serial port is on bluetooth even though we have it on usb...did anybody run into this issue as well?

yes i did, the way I fixed it was by changing the line

arduino = new Arduino(this, Arduino.list()[1], 57600);

on the processing program to 3 so it looks like this

arduino = new Arduino(this, Arduino.list()[3], 57600);

this may be different for you but you can find out by going to arduino program and selecting the menu tools - serial port and then looking to see what number down the list /dev/cu.usbmodem1411 is but when you are counting ignore the /dev/tty. one as these are a different type of port

And if this doesnt work message me

Hope this helps

MacMan

rmoorjani2 years ago
Hey guys, I fixed the "the package "cc" does not exist. you might be missing a library." error! ITS SUPER SIMPLE! Just go to /libraries/arduino/library/ and rename the Arduino.jar to arduino.jar with a lowercase :)

Thanks... But wt abt this?

Framebuffer error (framebuffer unsupported), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help.

OpenGL error 1280 at bot beginDraw(): invalid enumerant

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1

at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)

at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)

at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)

at javax.media.opengl.Threading.invoke(Threading.java:191)

at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)

at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)

at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)

at processing.core.PApplet.run(PApplet.java:2256)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1

at BeatWrite.setup(BeatWrite.java:56)

at processing.core.PApplet.handleDraw(PApplet.java:2361)

at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)

at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)

at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Could not run the sketch (Target VM failed to initialize).

For more information, read revisions.txt and Help ? Troubleshooting.

I have this error and this did not help
bbulldog1 year ago
Help! Hope someone is looking at this. Worked on an error all day. Can't get it. When the file BeatWrite is started, get the error, "import does not name type." Appreciate any help you can give me.

Framebuffer error (framebuffer unsupported), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help.

OpenGL error 1280 at bot beginDraw(): invalid enumerant

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1

at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)

at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)

at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)

at javax.media.opengl.Threading.invoke(Threading.java:191)

at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)

at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)

at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)

at processing.core.PApplet.run(PApplet.java:2256)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1

at BeatWrite.setup(BeatWrite.java:56)

at processing.core.PApplet.handleDraw(PApplet.java:2361)

at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)

at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)

at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Could not run the sketch (Target VM failed to initialize).

For more information, read revisions.txt and Help ? Troubleshooting.

vansh20011 year ago

I need help. My led won't light up.I hear the music in the processing. I checked and made sure they led are working. How do i use processing to connect with arduino

Me too.

For peeps who dis does not work for try useing the simpledigitalfirmata

Framebuffer error (framebuffer unsupported), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help.

OpenGL error 1280 at bot beginDraw(): invalid enumerant

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1

at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)

at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)

at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)

at javax.media.opengl.Threading.invoke(Threading.java:191)

at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)

at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)

at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)

at processing.core.PApplet.run(PApplet.java:2256)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1

at BeatWrite.setup(BeatWrite.java:56)

at processing.core.PApplet.handleDraw(PApplet.java:2361)

at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)

at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)

at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Could not run the sketch (Target VM failed to initialize).

For more information, read revisions.txt and Help ? Troubleshooting.

hyperhitesh10 months ago
Framebuffer error (framebuffer unsupported), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help.
OpenGL error 1280 at bot beginDraw(): invalid enumerant
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)
at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at BeatWrite.setup(BeatWrite.java:56)
at processing.core.PApplet.handleDraw(PApplet.java:2361)
at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.HELP ME PLEASE!!!!!

Hey, would this be possible with a microphone?

Narendrababuk11 months ago

i wnn auduino code for displaying single led light,,,, in led display32*16 nd i hv to display only 4*4 leds in that display only

RaresP11 months ago

Thank you dude for the project it is awesome :)

vansh20011 year ago

I got through all the set up as mentioned but for some resin my led won't light up to the beat. 2 of the them are constantly lit( input 12 and 8). How do i fix this

H2oSecReT1 year ago

i'm encountering another problem again how ti fix this:

==== JavaSound Minim Error ====

==== Don't know the ID3 code WOAF

==== JavaSound Minim Error ====

==== Don't know the ID3 code WOAR

==== JavaSound Minim Error ====

==== Don't know the ID3 code WOAS

==== JavaSound Minim Error ====

==== Don't know the ID3 code APIC

please help sir

the song is already playing but the led are not flashing

H2oSecReT1 year ago

i got an error like this:

java.lang.RuntimeException: java.lang.NullPointerException

at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)

at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)

at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)

at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)

at javax.media.opengl.Threading.invoke(Threading.java:191)

at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)

at processing.opengl.PGL.requestDraw(PGL.java:1149)

at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1604)

at processing.core.PApplet.run(PApplet.java:2176)

at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.NullPointerException

at ddf.minim.javasound.JSMinim.getAudioRecordingStream(Unknown Source)

at ddf.minim.Minim.loadFile(Unknown Source)

at BeatWrite.setup(BeatWrite.java:58)

at processing.core.PApplet.handleDraw(PApplet.java:2280)

at processing.opengl.PGL$PGLListener.display(PGL.java:2601)

at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)

at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)

at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)

at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)

at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)

at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)

at java.awt.EventQueue.access$400(EventQueue.java:81)

at java.awt.EventQueue$2.run(EventQueue.java:627)

at java.awt.EventQueue$2.run(EventQueue.java:625)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

1-40 of 150Next »