Minim Broken in 2.0?

edited November 2013 in Library Questions

I am trying to build a new sketch (in Windows 7 64 bit) that does 'Offline Analysis' such as demonstrated on Damien's site here AND use Processing 2.0.3 to accomplish this, but I am having seriously weird problems.

I have found that while using Processing 1.5.1 I can get the sketch to run if I comment out the parts that deal with the class AudioRecordingStream, a Minim 2.1.0+ feature. If I try to run it in 2.0.3, however, other things don't work, especially what appears to be an enum - 'BufferedAudio.LEFT'.

After discovering this I decided to look at which version of Minim is actually being used in Processing 2.0.3 and according to \processing-2.0.3\modes\java\libraries\minim\version.txt, Minim '3.0 BETA' is being used in spite of no such version being available anywhere on the web outside of processing.

After I discovered the weird version number attached to Minim in 2.0.3 I downloaded Minim 2.0.2 from Damien's site and installed it into my processing 2.0.3 folder and now the new 'Offline Analysis' works (although some of the included samples seem to crash pretty hard).

The changelog for processing doesn't include any reference to changes in Minim after it was first added in Processing 1.0. Thirsty for more, I looked into the github repo and found the commit that changed minim and didn't see much of use there.

TLDR: Minim seems a bit sketchy on 2.0.3 - What's up, what version of Minim is really there and why doesn't my 1.5.1 sketch work?

Answers

  • edited October 2013

    Interesting. I tried in Ubuntu 13.04, Processing 2.0.3, and all examples work (after running this script I wrote).

    But thanks to your post I discovered a bug I should post somewhere, I don't know if it affects you: when a program includes "minim.getLineIn();", the volume of java is set to 0 and any Processing program I run after that produces no sound.

    I noticed by running "Pulse Audio Volume Control", a control panel which allows me to independently set the volume of each application. I noticed java programs had the volume all the way down after running getLineIn().

  • It's not processing 2.0 that's the problem!

  • My problem is that I can't access features from Minim that I think should be there. The problem boils down to me having to require other potential users of my code to download and figure out how to install/upgrade Minim.

    The project I created that spawned this problem can be found here: https://github.com/BenVanCitters/PlayAFile. It's a pretty neat idea - sorting music.

  • That is a neat idea.

Sign In or Register to comment.