We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone, I have discovered processing because I am a student and I am trying to figure a way to have soundforms turn into beautiful art works for a project I am on.
I came across John Locke (http://gracefulspoon.com/blog/2009/04/02/visualizing-sound-in-processing/#more-395) and it is the perfect example of what I am trying to achieve.
I just need to know how to have a song or file and create those sorts of works using processing. I really appreciate any help, as deadline is approaching and I really am interested in this side of Soundwave art.
many thanks Paul
Answers
Look for minim examples bundled with Processing. It's a start point...
Thanks I will do but in the meantime, I still want to be able to get the soundwaves just like he did.. his source code is there but doesn't seem to work for me
Please be more specific. "Doesn't work" doesn't help us, could be one of 100 things. Post the error it gives you.
(I'm guessing you're missing a library or the code is old)
Also, more descriptive subject lines please.
ok, there were comments on that page that the code had been mangled by the blog with less thans treated as starts of html tags and quotes replaced by smart quotes etc.
i've tidied it up so that it compiles now, but i don't have dxf or the fonts or the music files so i've not run this
you'll need the minim and dxf libraries. the two fonts that he mentions (or similar) and a couple of suitable mp3s.
dxf libraries, what are they or how can I get them to add to minim? Also, I'm just wondering how the images are produced, I seem to have loads and loads of files in my sketch folder which I'm constantly having to delete. Thanks, I will try that code out shortly and let you know how I get on.
again, please be more precise.
dxf appears to be creating high quality vector output, you don't really need it if all you're interested in is the onscreen display. and it will only happen if you press 'r' and then only to one file called output.dxf.
i can't see anything else creating files
I'm not at home to try the one you posted, but yeah I seem to have lots of files in my sketches folder which don't really need to be there, they were probably created when I first started to test out Minim and different codes.
Ok I got this error: java.lang.NullPointerException at java.io.DataInputStream.readInt(DataInputStream.java:387) at processing.core.PFont.(PFont.java:339) at processing.core.PApplet.loadFont(PApplet.java:6594) at sketch_141114a.setup(sketch_141114a.java:47) 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(InvocationEvent.java:302) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) java.lang.RuntimeException: java.lang.RuntimeException: Could not load font HelveticaNeueLT-Bold-18.vlw. Make sure that the font has been copied to the data folder of your sketch. 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(Thread.java:745) Caused by: java.lang.RuntimeException: Could not load font HelveticaNeueLT-Bold-18.vlw. Make sure that the font has been copied to the data folder of your sketch. at processing.core.PApplet.die(PApplet.java:4058) at processing.core.PApplet.die(PApplet.java:4067) at processing.core.PApplet.loadFont(PApplet.java:6597) at sketch_141114a.setup(sketch_141114a.java:47) 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(InvocationEvent.java:302) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Could not run the sketch (Target VM failed to initialize).
If I download the font, how to I make it a .vlw file or can I just insert the font as Sketch>Add File ?