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 › Metronome in Processing
Page Index Toggle Pages: 1
Metronome in Processing ? (Read 2028 times)
Metronome in Processing ?
Dec 22nd, 2009, 1:36pm
 
Hi , i want to use a metronome.

Basically to trigger events at the beggining of every 1/4 of a bpm.


Is there any built in function ,or wich library has one ?


thanx !
Re: Metronome in Processing ?
Reply #1 - Dec 23rd, 2009, 6:24am
 
Hi Knobs,

check out the Beads library (beadsproject.net). It has a bunch of audio stuff including clocks. If you're not interested in sound there might be an easier option. I'm just doing some shameless self-promotion.

Cheers,

Ollie
Re: Metronome in Processing ?
Reply #2 - Dec 24th, 2009, 9:22am
 
great im checking it out,

by clocks you mean a metronome ?

thaxn !
Re: Metronome in Processing ?
Reply #3 - Dec 25th, 2009, 9:54pm
 
not really a metronome right ?

anyone please,  is there anywhere a metronome for processing ?

thanx !
Re: Metronome in Processing ?
Reply #4 - Dec 26th, 2009, 12:00am
 
You can take a look at http://www.openprocessing.org/visuals/?visualID=1997
Re: Metronome in Processing ?
Reply #5 - Dec 26th, 2009, 10:18am
 
if you need a tight clock, i.e. precise timing, have a look at this (toxi's reply): http://processing.org/discourse/yabb2/board_Syntax_3Baction_display_3Bnum_1213599231.html
it works quite well for me, i'm building tiny sequencers and trigger Ableton Live using timed threads and themidibus.

Basically it decouples anything which requires precision timing from the draw() loop where your stuff might be triggered 16-17 ms off from where it should...

Re: Metronome in Processing ?
Reply #6 - Dec 26th, 2009, 11:48pm
 
Yeah the Beads Clock object is a metronome, taking its timing off the audio signal, which is ultra-precise. Here's an example...

http://www.beadsproject.net/examples/Lesson7_Music/applet/index.html
Page Index Toggle Pages: 1