makenote continuously retriggers

Thomas Meade's icon

Hello,

I am new to Max/MSP and am attempting to create a midi note cannon to use with external synths. I am using a SAH to sample an incoming signal that is triggered from a counter. I would expect that a note gets generated when the new signal is sampled from the counter but the note just continuously triggers. I've played around with the repeat modes a bit but that does not resolve the issue. I can't even figure out what clock the triggers are even following, as changing the BPM in the global transport does not affect the rate.

I've attached an isolated section of my patch here to illustrate the problem.

Thanks for any help!!

--Thomas

trigger_debug.maxpat
Max Patch

Sébastien Gay's icon

By adding [change] before [makenote] ? This way notes are generated only when a new value is coming.

Thomas Meade's icon

Yes! This is exactly what I was looking for. Thanks so much!

In my file, what exactly IS causing the update currently. Changing the BMP in the global transport or the metro object does not seem to affect the rate of triggering.

Again, thanks so much for your attention and knowledge.

best,

--Thomas

Source Audio's icon

In your patch number~ outputs continuously.

metro speed (or BPM) plays no role at all.

here is one trigger example, I removed signal objects.

they are irrelevant for triggering.

It is wrong to use change in this case because that

would not pass repeated same note ...

Sébastien Gay's icon

[Number~]'s output interval can be modified here (but changing it won't solve the problem ;-) ):

Thomas Meade's icon

This is great information. Now that makes sense where the triggering was generated from. Thanks! Using the number~ to convert the signal from the SAH is my main issue. So, I guess I need to reframe my OP to how I can convert a signal from the SAH to a note value without a number~ forcing the update.

Source Audio's icon

You can insert snapshot~ and bang it when you want to produce

a note.