Does anyone know how to tame Minim’s memory consumption when recording files? I know that there is a boolean value to indicate wether AudioRecorder uses a memory buffer or writes directly to a file, but both ways seem to result in a rise of memory. Try the code and look at your Activity Monitor. Every time you press a key, memory goes up. Is there any way to get around this and make it stable to be able to record a lot?
I try to load a model with saito .objLoader and want to push it into a GLModel for performance reasons. Sadly I don’t get the vertices connected in the right way. Any ideas what I can do? The model is exported from Photoshop. The screenshots show objloader on the left and glmodel on the right.
import processing.opengl.*;
import codeanticode.glgraphics.*;
import saito.objloader.*;
OBJModel model;
GLModel glmodel;
void setup() {
size(300, 200, GLConstants.GLGRAPHICS);
model = new OBJModel(this, "Model.obj", "relative", POLYGON);
model.enableDebug();
glmodel = new GLModel(this, model.getVertexCount(), POLYGON, GLModel.STATIC);
I’ve been working on a library that makes it easy to use microphone input and transcribe it to text. It uses the technology that Google Chrome uses for its input fields where you can optionally use your voice instead of your keyboard. You can read more about it on the
project page
Please let me know if you have suggestions on how I could improve the design of the library or anything else!
I’m wondering why something like this does not work:
String[] lines = loadStrings("php/encode.php");
When I try this I get no error but the script does not execute. When I pass some arguments I get an error:
The file "php/encode.php?file=bla.wav" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
The sketch is placed on my local webserver, permissions are given. The PHP script is working but I can’t run it via Processing. Does the sketch need to run as an applet in the browser?