Create midi preset and improve the rest ones

This commit is contained in:
2020-03-15 16:54:12 +01:00
parent b76b120d6f
commit 2573363dca
4 changed files with 64 additions and 14 deletions

View File

@@ -33,8 +33,8 @@ class MidiHelpFunction : Function("midiHelp") {
) body { environment, args ->
val instrument = args[0].value as Int
val bpm = args.getOrNull(1)?.value as Int? ?: 120
val begin = args.getOrNull(2) ?: Value.note(Note(Pitch.C, 0, 4, false))
val end = args.getOrNull(3) ?: Value.note(Note(Pitch.H, 5, 4, false))
val begin = args.getOrNull(2) ?: Value.note(Note(Pitch.C, 1, 4, false))
val end = args.getOrNull(3) ?: Value.note(Note(Pitch.H, 9, 4, false))
val channel = args.getOrNull(4)?.value as Int? ?: 1
if(channel > 16) {