From 8c68efebe474b36536c32a1469f255074df5ffe0 Mon Sep 17 00:00:00 2001 From: louisjb Date: Wed, 26 Jan 2011 20:23:51 +0000 Subject: [PATCH] Ok try this one git-svn-id: https://svn.code.sf.net/p/pianobooster/code/trunk@151 ba081f5d-443b-49a7-ac4b-446c3f91f371 --- PianoBooster/src/Conductor.cpp | 2 +- PianoBooster/src/MidiEvent.h | 14 +++++++++++--- PianoBooster/src/ReleaseNote.txt | 3 ++- Website/index.html | 8 ++++---- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/PianoBooster/src/Conductor.cpp b/PianoBooster/src/Conductor.cpp index 5284ddb..2cb8d8c 100644 --- a/PianoBooster/src/Conductor.cpp +++ b/PianoBooster/src/Conductor.cpp @@ -540,7 +540,7 @@ void CConductor::turnOnKeyboardLights(bool on) event.noteOnEvent(0, Cfg::keyboardLightsChan, note, 1); else event.noteOffEvent(0, Cfg::keyboardLightsChan, note, 1); - playTrackEvent( event ); + playMidiEvent( event ); // don't use the track settings } } diff --git a/PianoBooster/src/MidiEvent.h b/PianoBooster/src/MidiEvent.h index 2ed83f0..ae1d3b3 100644 --- a/PianoBooster/src/MidiEvent.h +++ b/PianoBooster/src/MidiEvent.h @@ -235,10 +235,18 @@ public: long getDuration(){return m_duration;} - void printDetails() + void printDetails() const { - ppTiming("chan %2d type %2X note %3d", channel(), type(), note() ); - } + if (type() == MIDI_NOTE_ON) { + ppTiming("chan %2d NOTE ON note %3d vel %3d", channel(), note(), velocity() ); + } + else if (type() == MIDI_NOTE_OFF) { + ppTiming("chan %2d NOTE OFF note %3d vel %3d", channel(), note(), velocity() ); + } + else { + ppTiming("chan %2d type %2X data1 %3d data2 %3d", channel(), type(), note(), velocity() ); + } + } private: int m_type; diff --git a/PianoBooster/src/ReleaseNote.txt b/PianoBooster/src/ReleaseNote.txt index 289b0a9..d0bb566 100644 --- a/PianoBooster/src/ReleaseNote.txt +++ b/PianoBooster/src/ReleaseNote.txt @@ -2,8 +2,9 @@ /* -v0.6.5.svn: (29 November 2010) +v0.6.5.svn.2: (26 January 2011) - Added rhythm tapping for beginners +- Added key lights for Yamaha EZ-200, Casio LK 220, LK-300 TV, LK-43 etc. v0.6.4: (28 November 2009) - Added note names for beginners (to be used with a piano key note labels) diff --git a/Website/index.html b/Website/index.html index 0435c71..cec9281 100755 --- a/Website/index.html +++ b/Website/index.html @@ -18,14 +18,14 @@

Download

-

new Sheet Music

+

Sheet Music

FAQ

-

new Wiki Help

+

Wiki Help

-

Users Forum

-

Development Forum

+

Users Forum

+

Development Forum

SourceForge