summaryrefslogtreecommitdiff
path: root/src/mdaPiano.cpp
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-26 09:46:38 +0800
committerrekado <rekado@elephly.net>2013-01-26 09:46:38 +0800
commit38c1f69c340c69afe29aaa2f8f18340c348b84dd (patch)
tree747397183fbd7d4032a0c6c821382635d3c9d3f4 /src/mdaPiano.cpp
parentc6261dee67010135173c008dde36d7f2585d4839 (diff)
move keygroup loader to end of file
Diffstat (limited to 'src/mdaPiano.cpp')
-rw-r--r--src/mdaPiano.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index c9e2545..6d0fc67 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -160,26 +160,6 @@ void mdaPiano::handle_midi(uint32_t size, unsigned char* data) {
}
-// TODO: load keymapping from a file
-void mdaPiano::load_kgrp(KGRP *kgrp) {
- kgrp[ 0].root = 36; kgrp[ 0].high = 37; kgrp[ 0].loop = 14774;
- kgrp[ 1].root = 40; kgrp[ 1].high = 41; kgrp[ 1].loop = 16268;
- kgrp[ 2].root = 43; kgrp[ 2].high = 45; kgrp[ 2].loop = 33541;
- kgrp[ 3].root = 48; kgrp[ 3].high = 49; kgrp[ 3].loop = 21156;
- kgrp[ 4].root = 52; kgrp[ 4].high = 53; kgrp[ 4].loop = 17191;
- kgrp[ 5].root = 55; kgrp[ 5].high = 57; kgrp[ 5].loop = 23286;
- kgrp[ 6].root = 60; kgrp[ 6].high = 61; kgrp[ 6].loop = 18002;
- kgrp[ 7].root = 64; kgrp[ 7].high = 65; kgrp[ 7].loop = 19746;
- kgrp[ 8].root = 67; kgrp[ 8].high = 69; kgrp[ 8].loop = 22253;
- kgrp[ 9].root = 72; kgrp[ 9].high = 73; kgrp[ 9].loop = 8852;
- kgrp[10].root = 76; kgrp[10].high = 77; kgrp[10].loop = 9693;
- kgrp[11].root = 79; kgrp[11].high = 81; kgrp[11].loop = 10596;
- kgrp[12].root = 84; kgrp[12].high = 85; kgrp[12].loop = 6011;
- kgrp[13].root = 88; kgrp[13].high = 89; kgrp[13].loop = 3414;
- kgrp[14].root = 93; kgrp[14].high = 999; kgrp[14].loop = 2399;
-}
-
-
void mdaPiano::load_sample(Sample *s, const char* name) {
FILE *f;
long num, size;
@@ -222,4 +202,24 @@ void mdaPiano::load_sample(Sample *s, const char* name) {
}
+// TODO: load keymapping from a file
+void mdaPiano::load_kgrp(KGRP *kgrp) {
+ kgrp[ 0].root = 36; kgrp[ 0].high = 37; kgrp[ 0].loop = 14774;
+ kgrp[ 1].root = 40; kgrp[ 1].high = 41; kgrp[ 1].loop = 16268;
+ kgrp[ 2].root = 43; kgrp[ 2].high = 45; kgrp[ 2].loop = 33541;
+ kgrp[ 3].root = 48; kgrp[ 3].high = 49; kgrp[ 3].loop = 21156;
+ kgrp[ 4].root = 52; kgrp[ 4].high = 53; kgrp[ 4].loop = 17191;
+ kgrp[ 5].root = 55; kgrp[ 5].high = 57; kgrp[ 5].loop = 23286;
+ kgrp[ 6].root = 60; kgrp[ 6].high = 61; kgrp[ 6].loop = 18002;
+ kgrp[ 7].root = 64; kgrp[ 7].high = 65; kgrp[ 7].loop = 19746;
+ kgrp[ 8].root = 67; kgrp[ 8].high = 69; kgrp[ 8].loop = 22253;
+ kgrp[ 9].root = 72; kgrp[ 9].high = 73; kgrp[ 9].loop = 8852;
+ kgrp[10].root = 76; kgrp[10].high = 77; kgrp[10].loop = 9693;
+ kgrp[11].root = 79; kgrp[11].high = 81; kgrp[11].loop = 10596;
+ kgrp[12].root = 84; kgrp[12].high = 85; kgrp[12].loop = 6011;
+ kgrp[13].root = 88; kgrp[13].high = 89; kgrp[13].loop = 3414;
+ kgrp[14].root = 93; kgrp[14].high = 999; kgrp[14].loop = 2399;
+}
+
+
static int _ = mdaPiano::register_class(p_uri);