Help with 'Delete Muted Notes' device. (PLEASE!)

Pat Pardy's icon

Hi.

I've just ripped only the 'delete muted notes' parts of Dennis DeSantis' 'Selection Filter 2' device with the aim of it being triggered by keyboard shortcut in Live. It works but the very first time a project is loaded containing the device (or the device is loaded) the keyboard shortcut has to be pressed two (or more) times before it works, after that it works every time.

I've attached the device, could somebody have a look at it please and advise or even fix it and post it here for me please? (Once it's fixed I'll uploaded it to maxforlive.com and here)

BTW I'm aware Live 12 now has the ability to select muted notes (& everything else from Selection Filter for that matter) built in but there is no keyboard shortcut available.

Select Muted Notes.amxd
amxd

Cheers! Pat.

Source Audio's icon

you have too many leftovers, unneeded stuff, and missing proper

defined initialisation of that device.

Pat Pardy's icon

Ah ok, thanks for looking at it and letting me know. I’ve been trying to remove as much as possible via trial and error but not sure what else I need to remove or how to define proper initialisation, if you or anyone can help out by editing it it would be appreciated. (Dont really know what I’m doing 😂)

Cheers! P

Source Audio's icon

I am not Live user ...

You should define what you want and follow the path.

If you want to delete muted notes in a clip,

you usually :

1 get selected Clip

2 get muted notes ( all or out of selection)

3 perform what you want to do with them

Source Audio's icon

maybe like this - (only select muted notes)

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

Pat Pardy's icon

Ah man... thank you so much, it's working perfectly as a M4L audio device.

Is this completely rewritten by you or a cleaned up version of 'mine'?

Cheers!

Source Audio's icon

It is nothing else than few lines of code which I copied from your patch.

while being at it, here is version to either select or delete

Sel_Del Muted-Notes.amxd
amxd



Pat Pardy's icon

Thanks man.

I can’t check it out right now but once I have I’ll make a nice little interface for it and put it up on maxforlive.com, do you want to be credited for it?

P.

Source Audio's icon

no credits please

Pat Pardy's icon

OK, cool.

Do you think you could also add a button to re-enable muted notes please?

Cheers! P.

Source Audio's icon

If you scroll through the LOM and post what syntax to use to unmute muted notes, sure.

Pat Pardy's icon

Thanks for the offer but I can't find it I'm afraid.

Source Audio's icon

does it have to be compatible with Live 11 & pre 8.6 max versions ?

Pat Pardy's icon

No, Live 12 and Max 8.6 + is fine.

Source Audio's icon

this is quick hack,

test if it works.

It should be ok in live 11, but max version has to be 8.6

SDU_Muted-Notes.amxd
amxd


Pat Pardy's icon

Works perfectly!