Page 1 of 2

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

Posted: 04 Jun 2019 14:55
by MusikMan74
Again, title says it all...

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

Posted: 04 Jun 2019 21:14
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)))"

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

Posted: 04 Jun 2019 21:20
by kjetil
Shorter version:

Code: Select all

ALT_L SHIFT_L X: ra.evalScheme "(begin (ra:undo-notes) (ra:delete-all-notes-in-track))"

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

Posted: 05 Jun 2019 10:06
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.

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

Posted: 05 Jun 2019 10:22
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)))"

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

Posted: 05 Jun 2019 10:28
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'...

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

Posted: 05 Jun 2019 10:44
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.

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

Posted: 05 Jun 2019 10:53
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?

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

Posted: 05 Jun 2019 11:00
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.

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

Posted: 05 Jun 2019 16:58
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.