Skip to content

Commit 5c051bf

Browse files
committed
Replace test pads with virtual keyboard
1 parent 910ad67 commit 5c051bf

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/view/qml/Dialogs/SynthDialog.qml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -558,19 +558,11 @@ Dialog {
558558
}
559559
}
560560

561-
// Test Pads
562-
RowLayout {
561+
// Virtual Keyboard
562+
VirtualKeyboard {
563563
Layout.fillWidth: true
564-
spacing: 5
565-
Repeater {
566-
model: [48, 50, 52, 53, 55, 57, 59, 60] // C3 Scale
567-
Button {
568-
text: ["C", "D", "E", "F", "G", "A", "B", "C"][index]
569-
Layout.fillWidth: true
570-
onPressed: synthController.playNote(modelData, 0.8)
571-
onReleased: synthController.stopNote(modelData)
572-
}
573-
}
564+
onNoteOnRequested: note => synthController.playNote(note, UiService._activeVelocity / 127.0)
565+
onNoteOffRequested: note => synthController.stopNote(note)
574566
}
575567
}
576568
}

0 commit comments

Comments
 (0)