makenote constantly creating sustains and hung notes

noiseandrones's icon

Hi there,

I am using a metro to trigger makenote, but it is creating constant sustains.

How do I prevent this?

What I'd like to do is sync the note duration to the metro, so we get a note only for the interval between bangs.

Source Audio's icon

if you run metro, then you know the duration.
make note few ms shorter to avoid overlap

noiseandrones's icon

So that's the thing - despite setting a shorter duration time, I'm still getting overhangs.

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

noiseandrones's icon

This is basically an adapted patch from elsewhere, but the basic idea is:

1. Scale is created with random choice.
2. Each note event is allocated to a different MIDI output, using a probability distribution.
3. This then feeds virtual instruments.

Even using the AU DLS Synth - I'm getting loads of overlapping notes, which renders it unusable for my applications (cool as the effect is!)

noiseandrones's icon

I would have thought that 'flush' would take care of the issue, but alas, it seems not.

tyler mazaika's icon

In [p outputs] you have a [pak] where you want a [pack], and this is right after [flush].

noiseandrones's icon

It's *always* something like this, isn't it? :) Thank you so, so much!

Source Audio's icon

had a lool at that "output" subpatch
you use such complication to switch 3 destinations ?

single gate object does the same

maybe that many objects grab your attention from the flow of controls

Roman Thilenius's icon

[quote]It's *always* something like this, isn't it? :) Thank you so, so much![/quote]

it is only something like that when you exluded this possibility already because it cant be this again today.

my absolute "favorite" remains to type [-5] instead of [- 5] and then the code doesnt work at all despite it is looking absolutely right.

Source Audio's icon

yes, this kind of typos can make it difficult to trace.
but here it is conceptual problem, makenote objects
shoud be placed after the router or gate, not before .