Fix genererally retarded and broken note range / diskstream display / etc. related things (correctly display region contents on initial session load).

git-svn-id: svn://localhost/ardour2/branches/3.0@4583 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-15 19:44:27 +00:00
parent ecaf107ed3
commit 166395c96b
16 changed files with 153 additions and 137 deletions

View file

@ -20,11 +20,11 @@
#ifndef __gtk_ardour_midi_util_h__
#define __gtk_ardour_midi_util_h__
inline static void clamp_0_to_127(uint8_t &val)
inline static void clamp_to_0_127(uint8_t &val)
{
if( (127 < val) && (val < 192) ) {
if ((127 < val) && (val < 192)) {
val = 127;
} else if( (192 <= val) && (val < 255) ) {
} else if ((192 <= val) && (val < 255)) {
val = 0;
}
}