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.
IndexProcessing DevelopmentLibraries,  Tool Development › Minim: new audio library for processing
Pages: 1 2 
Minim: new audio library for processing (Read 37221 times)
Re: Minim: new audio library for processing
Reply #15 - May 20th, 2009, 12:55pm
 
Seconding ps. I have the same stuttering problem when triggering a very short sample (a clicking sound for a button) several times too quickly. This only seems to happen in Windows (XP), and it's on a fairly old machine, a 1.6GHz Pentium M. I've tried tinkering with the size of the buffer, but nothing seems to work. Any ideas?
Re: Minim: new audio library for processing
Reply #16 - May 21st, 2009, 9:37am
 
I think I'm also noticing this, but it's not consistent.  Sometimes it does it and sometimes it works just fine.
Re: Minim: new audio library for processing
Reply #17 - May 22nd, 2009, 1:55am
 
dev mentioned it was a known bug without fix in sight in a near future Sad

really hoping for a proper sound lib for processing. all of the ones currently available have some annoying quirk Undecided
Re: Minim: new audio library for processing
Reply #18 - Jun 7th, 2009, 5:31am
 
stunning work and documentation  Shocked
Re: Minim: new audio library for processing
Reply #19 - Jun 7th, 2009, 4:44pm
 
I tried using Ess to play my samples, and it does much better with the stuttering. I created an array of several AudioChannels with my sample and rotate between them for playback so they can overlap, and get no stutter on the machine that gave me problems.
Re: Minim: new audio library for processing
Reply #20 - Jun 18th, 2009, 7:49am
 
Ok, this one took me several hours to figure out so I thought I would share.  After uninstalling Vista SP2, reinstalling Java, reinstalling video drivers, and reviewing my code, I figured out my issue. Vista has the ability (not sure why) to disable it's audio driver (or something) when you unplug your headphones or the audio out.  Angry  This kills Minim if you don't have a Try statement around your audio trigger, leaving your program confused and unable to progress.  I don't blame Minim (I blame Vista and myself), but perhaps some catch coding can be included in the next minim release so that it just continues on without issue.
Re: Minim: new audio library for processing
Reply #21 - Jun 23rd, 2009, 12:11am
 
sometimes it works , but sometimes no.... ??
Re: Minim: new audio library for processing
Reply #22 - Jun 23rd, 2009, 5:31am
 
Who are you asking and what are your referring?  Does Minim work?  Yes, works pretty good.  I use it.
Re: Minim: new audio library for processing
Reply #23 - Jun 26th, 2009, 3:21pm
 
Jeffg, awesome. I wrapped my trigger in a try and while it still occasionally exhibits the problem, it's much better than my Ess code.
Re: Minim: new audio library for processing
Reply #24 - Jun 26th, 2009, 6:27pm
 
Icecreamsocialist
One other thing I learned... do you also use controlP5 in combo with your sound?  Sometimes the button of a control may not release (this happens when the focus is pulled from the button before release), causing it to be pressed a second time when focus is returned (creating a second repeating sound).  I've found in these situations, a bang can be used along with .setTriggerEvent(Bang.RELEASE);
Re: Minim: new audio library for processing
Reply #25 - Jul 9th, 2009, 10:48am
 
And I take back what I said before. It's still a problem.

No I don't use controlP5. In fact, I don't use any outside libraries. I should probably gradually strip out code and see if there's a point at which it works. This is pretty tiresome.
Re: Minim: new audio library for processing
Reply #26 - Aug 4th, 2009, 2:11pm
 
I ran into an issue with metadata track numbers. itunes sometimes includes the total track numbers for an album in a track's metadata, as in "track 1 of 10" instead of just "track 1". Because of this, AudioMetaData.track() returns something like "1/10", causing a NumberFormatException. I haven't found a way around this.
Re: Minim: new audio library for processing
Reply #27 - Jun 8th, 2010, 2:31am
 
first of all, let me say thanks for the great library.  i'm using it in my first project with processing and so far, so good.

except of course one problem!  :)

i'm having a problem closing my files.  i have 80 sound files in total and i'm playing around 20 at once, selected via an external interface.  but when i trigger the stop() function, also via the external interface, i get the following error:

Exception in thread "Animation Thread" java.lang.NullPointerException at ddf.mimin.javasound.JSBaseAudioRecordingStream.close(JSBaseAudioRecordingStream.
java:362) ... etc


i have all my AudioPlayer objects listed in the stop() function (player1.close(), player2.close, player3.close(), and so on...) and i call the stop() function from within a conditional statement in draw().  so effectively i try to close all my AudioPlayer objects in the stop function regardless of whether or not they're being used.

i don't think the problem is that i'm trying to close objects that are not playing, as i did a bit of debugging that indicated this isn't the problem.  does anyone have any suggestions or can point me to some resources that could help me?  i hope i've explained myself clearly...
Pages: 1 2