From a4bf64eb72d145366874a85444e27e67a8df2349 Mon Sep 17 00:00:00 2001 From: rekado Date: Fri, 25 Jan 2013 18:29:11 +0800 Subject: cosmetic changes --- src/mdaPiano.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/mdaPiano.cpp') diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index ae463f4..1b153c8 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -79,8 +79,7 @@ unsigned mdaPiano::find_free_voice(unsigned char key, unsigned char velocity) { } -void mdaPiano::setVolume(float value) -{ +void mdaPiano::setVolume(float value) { for (uint32_t v=0; vset_volume(value); } @@ -165,8 +164,7 @@ void mdaPiano::handle_midi(uint32_t size, unsigned char* data) { // TODO: load keymapping from a file -void mdaPiano::load_kgrp(KGRP *kgrp) -{ +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; @@ -185,8 +183,7 @@ void mdaPiano::load_kgrp(KGRP *kgrp) } -void mdaPiano::load_sample(Sample *s, const char* name) -{ +void mdaPiano::load_sample(Sample *s, const char* name) { FILE *f; long num, size; char filepath[STRING_BUF]; @@ -227,4 +224,5 @@ void mdaPiano::load_sample(Sample *s, const char* name) return; } + static int _ = mdaPiano::register_class(p_uri); -- cgit v1.2.3