Use bonk~ to trigger pre-recorded samples?

Chantelle's icon

I'm trying to use bonk~ so that different percussive attacks triggers different short recordings. When I looked in the help, they have it set to trigger different synth sounds. Should I attach it to a "sel" object to send a bang to different grooves?

Chantelle's icon

Although, I think select is way too exact with it's values.

daddymax's icon

the SEL object is exact, so might not be the right object in this case. You could perhaps use > to trigger when a value gets above a set value, or the split object, that will let you select a range of values to cause a trigger? Also - note that the bonk~ object outputs a list, so you will need to unjoin/ unpack this list to get separate values for each slider/ frequency.

Wil's icon

Hi Chantelle, instead of bonk you could check this triggering patch made. It uses the past object to trigger a bang when the volume goes above a certain level, then only re-triggers after the volume goes below that level . There are also different levels of smoothing for faster responses. I originally made it so that I could trigger quiet crescendos from string instruments without re triggering from the same instrument.

You may be able to play around with some of the settings for your needs, also maybe make multiple copies of the patch with each with a gate so that different levels trigger a different one.

Yeah I know its seems like overkill to get a 'dynamic' bang, but this is one way to really get some control of it.

Max Patch
Copy patch and select New From Clipboard in Max.

Chantelle's icon

I had forgotten about the split object and had only remembered just before you replied!

The only thing I'm unsure of now is learn mode and creating a template. I understand that the best is to have a message with "learn 10" and then hit one of the percussive sounds 10 times. How do I do this with more than one sound ("drum")? When I'm done with the first "drum", do I just click "learn 10" again for the second one, then again for the third?

volker böhm's icon

I guess you are talking about the new bonk~ version from here https://github.com/v7b1/bonk_64bit-version/releases?
as stated in the templates subpatch of the help file, you start by sending the message "learn 10". then you play EVERY trigger sound you want bonk~ to recognize 10 times in a row. after that, click "learn 0" to exit learn mode.
from now bonk~ compares any new input sound to the templates that it learned before and outputs the index of the closest one as an integer number (first element in the list out of the middle outlet).

not sure what you mean by "select being to exact".
the synth sounds in the help patch are used as (simulated) input sounds that bonk~ can learn and subsequently recognize.
hth,
vb