mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
ecaf107ed3
commit
166395c96b
16 changed files with 153 additions and 137 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue