minim

Adding import button to music player

隐身守侯 提交于 2019-12-13 00:57:32
问题 I'm trying to make it possible to make a functional import button, by this I mean I click the button, the file browser pops up and I can click a song then the player can play it. Just like any other music player. Here is a basic view of my code so far excluding the classes: import ddf.minim.spi.*; import ddf.minim.*; import ddf.minim.signals.*; import ddf.minim.analysis.*; import ddf.minim.effects.*; import ddf.minim.ugens.*; boolean play; boolean repeat; int k; String filename;// Minim minim

Processing minim null pointer

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:34:29
问题 I am using processing with Minim, but I can't figure out how to play files, if the minim loading files are in another class. I used both AudioSnippet and AudioSample and they both give me NullPointerException . Here is a the PlayAudio class. Minim minim; AudioSample sample; AudioSnippet snippet; class PlayAudio { PlayAudio() { minim = new Minim(this); sample = minim.loadSample("Audio/hover1.mp3", 2048); snippet = minim.loadSnippet("Audio/hover1.mp3"); } void playSnippet() { sample.trigger();

Integrate Processing with Minim Libraries in Website

岁酱吖の 提交于 2019-12-08 02:45:52
问题 I have seen similar questions posted before but seems the general answer is that it cannot be done. So, here is my HTML code : <head> … <script type="text/javascript" src="js/processing.js"></script> … </head> <body> … <canvas id="my_prog" data-processing-sources="project/my_prog.pde project/my_class.pde"/></canvas> … </body> And in my sketch I use Minim libraries : import ddf.minim.*; import ddf.minim.spi.*; import ddf.minim.ugens.*; Instead of having my project on my website, there is a

Integrate Processing with Minim Libraries in Website

爱⌒轻易说出口 提交于 2019-12-06 04:13:05
I have seen similar questions posted before but seems the general answer is that it cannot be done. So, here is my HTML code : <head> … <script type="text/javascript" src="js/processing.js"></script> … </head> <body> … <canvas id="my_prog" data-processing-sources="project/my_prog.pde project/my_class.pde"/></canvas> … </body> And in my sketch I use Minim libraries : import ddf.minim.*; import ddf.minim.spi.*; import ddf.minim.ugens.*; Instead of having my project on my website, there is a rectangular shape proportional to the project size, but without image and sound. Moreover, this method

Getting Multiple Audio Inputs in Processing

故事扮演 提交于 2019-11-30 16:02:09
问题 I'm currently writing a Processing sketch that needs to access multiple audio inputs, but Processing only allows access to the default line in. I have tried getting Lines straight from the Java Mixer (accessed within Processing), but I still only get the signal from whichever line is currently set to default on my machine. I've started looking at sending the sound via OSC from SuperCollider, as recommended here. However, since I'm very new to SuperCollider and their documentation and support

Getting Multiple Audio Inputs in Processing

China☆狼群 提交于 2019-11-30 15:54:44
I'm currently writing a Processing sketch that needs to access multiple audio inputs, but Processing only allows access to the default line in. I have tried getting Lines straight from the Java Mixer (accessed within Processing), but I still only get the signal from whichever line is currently set to default on my machine. I've started looking at sending the sound via OSC from SuperCollider, as recommended here . However, since I'm very new to SuperCollider and their documentation and support is more focused on generating sound than on accessing inputs, my next step will probably be to play

Exporting a Processing sketch with audio to JavaScript

狂风中的少年 提交于 2019-11-29 08:56:57
How could I implement sound in my Processing sketch that works when I export the sketch to JavaScript? I've written a sketch in Processing that includes two audio (.wav) loops. These loops are played through the Movie class upon mousePressed() and mouseDragged() . The sketch works in normal/Java mode, but does not load when changed to JavaScript mode. The sketch only works in JavaScript mode when I remove the sound. I've noticed that other sketches that use the Movie class as well as sketch examples of libraries such as Minim fail to load when I export them to JavaScript, so I think it's a

Exporting a Processing sketch with audio to JavaScript

北战南征 提交于 2019-11-28 02:10:24
问题 How could I implement sound in my Processing sketch that works when I export the sketch to JavaScript? I've written a sketch in Processing that includes two audio (.wav) loops. These loops are played through the Movie class upon mousePressed() and mouseDragged() . The sketch works in normal/Java mode, but does not load when changed to JavaScript mode. The sketch only works in JavaScript mode when I remove the sound. I've noticed that other sketches that use the Movie class as well as sketch

PROCESSING: How can I draw only every x frames?

做~自己de王妃 提交于 2019-11-27 19:34:00
问题 I'm experimenting with the following Code: //3D Spectrogram with Microphone Input //Modified by kylejanzen 2011 - https://kylejanzen.wordpress.com //Based on script written by John Locke 2011 - http://gracefulspoon.com //Output .DXF file at any time by pressing "r" on the keyboard import processing.dxf.*; import ddf.minim.analysis.*; import ddf.minim.*; import peasy.*; PeasyCam cam; FFT fftLin; FFT fftLog; Waveform audio3D; Minim minim; AudioInput microphone; boolean record; PFont font; float