Is there a keyboard shortcut to delete ALL notes in the current block track?

MusikMan74
Posts: 34
Joined: 06 Jan 2018 23:03

Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by MusikMan74 »

Again, title says it all...
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

Left Alt + x deletes everything, notes/fx/etc., but there isn't a function to only delete the notes. You can add it like this though:

Code: Select all

ALT_L SHIFT_L X: ra.evalScheme "(begin (ra:undo-notes) (while (> (ra:get-num-notes) 0) (ra:delete-note 0)))"
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

Shorter version:

Code: Select all

ALT_L SHIFT_L X: ra.evalScheme "(begin (ra:undo-notes) (ra:delete-all-notes-in-track))"
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

It's a bit strange that the function ra:deleteNotesInTrack didn't make undo, so I've now fixed this in the program. So I would recommend this instead:

Code: Select all

ALT_L SHIFT_L X: ra.deleteNotesInTrack
Until the next release, undo won't be created when pressing ALT_L SHIFT_L X though, so maybe you want to wait using this simple version until next release.
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

Oh no! The deleteAllNotesInTrack function is unstable. Don't use it before next release.

Use the original one for now:

Code: Select all

ALT_L SHIFT_L X: ra.evalScheme "(begin (ra:undo-notes) (while (> (ra:get-num-notes) 0) (ra:delete-note 0)))"
MusikMan74
Posts: 34
Joined: 06 Jan 2018 23:03

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by MusikMan74 »

Thanks for the thorough responses.

Still being a Radium "newbie", I didn't realize my question would have been interpreted as track notes (only) vs. notes/fx/etc not realizing that anything other than notes could be in a track :D

At the risk of sounding nitpicky, I would humbly suggest to add a way to delete all notes/fx/etc from a track (i.e. Editor Edit -> Track-> Clear) without touching the clipboard- as I understand it, your initial response was "Left Alt + x deletes everything", which is I understand to be 'Clipboard -> Track Cut'...
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

Ah, yeah, I wasn't sure what you really asked for, so I took your question literally. :D

There is a really quick keyboard shortcut for this already. Namely to delete and insert track in one operation:
Left Alt + R + I
('I' is the letter I, not the number 1)

You lose the instrument assignment for the track though.
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

I'm surprised it's important not to copy into clipboard though. Do you often keep a track in clipboard while doing other operations?
MusikMan74
Posts: 34
Joined: 06 Jan 2018 23:03

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by MusikMan74 »

kjetil wrote: 05 Jun 2019 10:53 I'm surprised it's important not to copy into clipboard though. Do you often keep a track in clipboard while doing other operations?
Being a software developer myself, it's just a nitpick- the user may want to clear a track without expecting to overwrite whatever was previously on the clipboard (could have been text that was copied 10 min earlier)... The Alt+X solution you gave is not perfect but adequate.
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: Is there a keyboard shortcut to delete ALL notes in the current block track?

Post by kjetil »

I guess it could be confusing not finding that function, at least. I've added a ra.clearTrack function now, and bound it to Left Alt + Delete, plus added it to the main menus and the main editor popup menu.
Post Reply