selact all and select measure for notes

This commit is contained in:
lunarcleint
2023-08-23 16:14:24 -07:00
parent 67bc6ee9b9
commit 4d6db9c14b
+21
View File
@@ -227,6 +227,17 @@ class Charter extends UIState {
onSelect: _note_subtractsustain
},
null,
{
label: "Select all",
keybind: [CONTROL, A],
onSelect: _note_selectall
},
{
label: "Select maeasure",
keybind: [CONTROL, SHIFT, A],
onSelect: _note_selectmeasure
},
null,
{
label: "(0) Default Note",
keybind: [ZERO]
@@ -1267,6 +1278,16 @@ class Charter extends UIState {
inline function _note_subtractsustain(t)
changeNoteSustain(-1);
function _note_selectall(_) {
selection = [for (note in notesGroup.members) note];
}
function _note_selectmeasure(_) {
selection = [for (note in notesGroup.members)
if (note.step > Conductor.curMeasure*Conductor.getMeasureLength() && note.step < (Conductor.curMeasure+1)*Conductor.getMeasureLength()) note
];
}
#end
function changeNoteSustain(change:Float) {