stripnote vs. sustain

Mutex's icon

Hi, I am having a problem with a basic synth patch in which I am using the adsr~ object and controlling the sustain, but when I include the stripnote object to eliminate the double bang issue the note keeps on playing like it is still being held. But without the stripnote everything works perfectly am I missing an object? Thanks

Chris Muir's icon

Without seeing your patch it's hard to give advice. A generalization: stripnote removes the note length so that's probably not what you want when working with adsr~

Mutex's icon

is there another object which can be replaced with stripnote? i've attached a screenshot of the patch

2132.patch.png
png
jvkr's icon

An option could be to use the borax object, that can tell you when the last key is released (number of active notes becomes 0).

Chris Muir's icon

Pictures of a patch are not as good as posting your patch.

I would move stripnote below the keyslider and only use the note outlet to feed the mtof. Don't use stripnote's velo out to feed adsr~

Mutex's icon

I can't fix the issue here is my patch maybe you can get a clear idea.

2136.selector.maxpat
Max Patch
Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Mutex's icon

Thanks a lot Chris! that seems to work but unfortunately the notein object is not working

Chris Muir's icon

Why not? Hang number boxes off of all it's outputs to see what, if anything, it's getting. If you double-click on notein in a locked patch, you get a menu of input ports.