• ### question about the metronome

Hello, i am a beginner at Puredata and i was assigned an exercise about the use of metronome.
The exercise says: that after every ring, the metronome must have 50% chance of ringing after 500mlsec, 25% chance of ringing after 200 mlsec and 25% chance of ringing after 1000 mlsec. I have made a few possible answers (at least i think) but i have no idea if they are correct. Could someone tell me if it actually does that? Thanks a lot
patch.pd

• Posts 10 | Views 602
• @lyric It just makes a buzzing sound for me..... but it is not an easy first project.
This is I think correct. I will not upload it because you should build it yourself after all.
I think the probabilities are correct...... and note that the volume slider sends values from 0 - 1 (right-click to set its properties).
Make sure you understand it as you build it....... you might have to explain it in class....... and anyway if you don't understand it you will not have learnt anything.
Triple check my thinking for the probabilities...
Right-click each object and select "help" and read it all.
Change the sound generating part as you wish.
Post again in this thread if you still cannot really understand something.
David.

• @lyric Another way would be to use [array random] with a suitably initialized 3 element array.

• First of all, thanks a lot for the answers. Unfortunately, our professor told us that we can only use what we showed in class, which only includes: bangs, metros, triggers, randoms, toggles, number boxes, messages, prints, dac~, osc~, phasor~, mtof, and the different arithmetic operations (+,-,*,/). My main problem is how to restart the process after each ring of the metronome (for example, after the metro rings every 500 mlsec, it keeps ringing at that pace)

• @lyric here's a hint: think about feedback and setting the time of `[metro]`

• @lyric you're close but you should only need 1 `[metro]`...
also you're including a reset of the metro in your random selection

• @seb-harmonik.ar could you please explain about including a reset of the metro in the random selection, thanks

• @lyric Probably something like this....

When the [metro] bangs it then requests a new time value from the top [random 2] 50%
David.

• thanks a lot for your help guys. Based on what you said i think i finally got it (kinda wish our professor had actually shown us the stop object though ). Here is the program
patch02_Sotiropoulos.pd

• you don't actually need the 'stop' message in this case, you can connect the toggle directly to the `[metro]` without the `[select]` or bang
because '1' (or any 'non-zero') and '0' do the same thing as 'start' and 'stop' for `[metro]`

Posts 10 | Views 602
Internal error.

Oops! Looks like something went wrong!