mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
* implemented editing velocities (http://tracker.ardour.org/view.php?id=2148)
* added MIDI panic button (http://tracker.ardour.org/view.php?id=2118) * bugfix: moving notes above midi 127 or below 0 does not wrap around anymore * bugfix: deadlock on editing notes after playback (http://tracker.ardour.org/view.php?id=2140) due to unbalanced lock acquire/release * bugfix: First note off lost in playback (http://tracker.ardour.org/view.php?id=2132) * bugfix: Last note off lost in saving MIDI files (http://tracker.ardour.org/view.php?id=2132) * bandaid fix for http://tracker.ardour.org/view.php?id=1985 (Cannot reopen session because jack ports are not unregistered on session close) * bandaid fix: replaced conf.CheckPKGExists ('\"slv2 >= 0.6.0\"') by conf.CheckPKGExists ('slv2') in SConstruct, because the former would fail, even if SLV 0.6.0 was installed * added/enabled debugging output for debugging MIDI model (might be removed later) git-svn-id: svn://localhost/ardour2/branches/3.0@3211 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6554200e66
commit
fbfe9a7983
22 changed files with 332 additions and 57 deletions
|
|
@ -54,5 +54,14 @@ inline static uint32_t note_fill_color(uint8_t vel)
|
|||
}
|
||||
}
|
||||
|
||||
inline static void clamp_0_to_127(uint8_t &val)
|
||||
{
|
||||
if( (127 < val) && (val < 192) ) {
|
||||
val = 127;
|
||||
} else if( (192 <= val) && (val < 255) ) {
|
||||
val = 0;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __gtk_ardour_midi_util_h__ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue