|
There are no translations available.
This article is about some modifications I made to the Minim audio library used within Processing development environment; the result is a stand-alone version of Minim, MinimSA, capable of performing audio related operations (and analysis) without the need of Processing core and portable to any Java project.
REFERENCES
CODE CHANGES
I modified some Minim source files, basically the ones in which PApplet was used in order to carry out file-related operations. Following the noteworthy changes:
// global calls changes PApplet.println() /* into */ System.out.println() // for normal output PApplet.println() /* into */ System.err.println() // for error output app.sketchPath(fileName) /* into */ fileName // removed path // JSMinim changed public JSMinim(PApplet parent) /* into */ public JSMinim() // JSMinim added (moved here from Processing core) public InputStream createInput(String filename) public InputStream createInputRaw(String filename) // Minim changed public Minim(PApplet parent) /* into */ public Minim() public Minim(PApplet parent,MinimServiceProvider msp) /* into */ public Minim(MinimServiceProvider msp) // Minim added (moved here from Processing core) static public final float pow(float a, float b) static public final int max(int a, int b) static public final float max(float a, float b) static public final int max(int a, int b, int c) static public final float max(float a, float b, float c) static public final int constrain(int amt, int low, int high) static public final float constrain(float amt, float low, float high) static public final float map(float value, float istart, float istop, float ostart, float ostop) // BeatDetect removed public void drawGraph(PApplet p)
DOWNLOAD
You can download MinimSA ; this requires the libraries used in Minim, so download "Minim 2.0.1 library only" from CodeLog and substitute minim.jar with minimSA.jar
I'm a big fan of the Eclipse IDE. As soon as possible I will put here a zipped Eclipse project you can import directly via Eclipse Import menu and use in your own project.
|
|
Ultimo aggiornamento Martedì 31 Marzo 2009 19:27 |
Comments
Great stuff as usual...
link to this page on my blog. I am sure my visitors will find that very useful.
you mentioned, I still have doubts, but really thank you for sharing!
air max shoes[/url] it's worth buying!
Talk about [URL=http://www.hotsalewatch.com]discount watches[/URL] .My mum goto buy
[URL=http://www.myceramicwatch.org]ceramic watch[/URL].But I like
[URL=http://www.mydiscounthandb ags.com]discount handbags[/URL] more.
Where do I could buy
[URL=http://www.mydiscountwatch es.org]discount watch[/URL].
Let's go to buy
[URL=http://www.thedesignerwatc hes.org]Designer Watches[/URL].
Find the
[URL=http://www.theledmanufactu rer.org]led manufacturer[/URL] from China.
Do you want to purchase for low price
[URL=http://www.wholesalejewelr ywatches.net]wholesale jewelry[/URL]
that is what I want.
I want to be [URL=http://www.benwon.com]led strip lights[/URL] designer.
My father want to find [URL=http://chinaelectrade.com]China Electronics[/URL] supplier.
[URL=http://www.themarcjacobsha ndbags.org]Marc Jacobs Handbags[/URL] This is the one I want to
buy.