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 & HelpSound,  Music Libraries › General sound questions
Page Index Toggle Pages: 1
General sound questions (Read 541 times)
General sound questions
Nov 13th, 2008, 10:20am
 
I have looked at the docs for Ess and Minim sound libraries, and all the sample code I see there starts sounds playing in the setup() function of Processing.

It seems you can play samples this way, but it doesn't seem as though you can work with samples interactively, where you might launch sounds based on timings, counters, mouse clicks, etc.

Is this kind of interaction with sound samples possible in Processing? If so, where might I locate some sample code from which to learn?

Thanks,

George
Re: General sound questions
Reply #1 - Nov 14th, 2008, 2:12pm
 
one way to do that would be to have an audio output runnning all the time. feeding zeros when no sound is playing.

you would then read the audio file on request and feed it into the output.

at least that's how i would do it.

Re: General sound questions
Reply #2 - Nov 18th, 2008, 2:07am
 
I'm doing something similar to that but I am using Sonia instead of Ess. Each square triggers a sample when you click it. Depending on where you hit the square, it will change the rate and panning of the sample.

Heres the link:
http://www.danalmeida.com/instrument/applet/
Page Index Toggle Pages: 1