We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpProcessing Implementations › Ruby Processing: Using Minim
Page Index Toggle Pages: 1
Ruby Processing: Using Minim (Read 1999 times)
Ruby Processing: Using Minim
Feb 19th, 2009, 5:12pm
 
Hello, can anyone point me to any resources or anything for using Minim in Ruby-Processing?

I am having trouble creating an instance of Minim.

Code:

minim = Minim.new(self)


Is throwing this stack trace:
Code:

Exception in thread "Animation Thread" datalus_visualizer.rb:35:in `setup': no public constructors for Java::DdfMinim::Minim (TypeError)
from :1
...internal jruby stack elided...
from DatalusVisualizer.setup(:1)
from (unknown).(unknown)(:1)



I was also wondering more about Ashkenas's A Face for Stephen Hawking's ruby-processing sketch. I was wondering how Minim actually does any detection in there. I don't see any AudioIn class for Minim. I'm wondering if this is coming from Angela Audio? I tried finding the angela audio library but I can't find it anywhere either to check out it's source to learn more Smiley
Re: Ruby Processing: Using Minim
Reply #1 - Feb 20th, 2009, 5:20am
 
Sure thing, datalus.

Here's a basic sketch that demonstrates Minim audio analysis for beat detection, amplitude measurement, and fast-fourier transform for pitch analysis. This plus the Minim docs should get you settled nicely.

http://gist.github.com/67310

The error that you were seeing was because the minim class you were looking for hadn't quite been imported into your sketch's scope. (Ruby-Processing isn't smart enough to detect what classes to import). Check out the top of the Gist for the fix.
Re: Ruby Processing: Using Minim
Reply #2 - Feb 28th, 2009, 7:35am
 
thanks a lot Smiley
Page Index Toggle Pages: 1