summaryrefslogtreecommitdiff
path: root/libs/midi++2/midi++
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2012-10-08 04:32:12 +0000
committerHans Baier <hansfbaier@googlemail.com>2012-10-08 04:32:12 +0000
commit0bb2227eb875060e30b57c171c497e70d94b3527 (patch)
tree23f93b399a29711311ceaaf9922f08641019523a /libs/midi++2/midi++
parent1a9d9b058c74c6e73da85ee90334a087844a36b2 (diff)
add unit tests to midi++ and assorted bugfixes for midnam_patch.cc
git-svn-id: svn://localhost/ardour2/branches/3.0@13213 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midi++')
-rw-r--r--libs/midi++2/midi++/midnam_patch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h
index f3ff434a9f..a6b2b00985 100644
--- a/libs/midi++2/midi++/midnam_patch.h
+++ b/libs/midi++2/midi++/midnam_patch.h
@@ -1,5 +1,6 @@
/*
- Copyright (C) 2008 Hans Baier
+ Copyright (C) 2012 Paul Davis
+ Author: Hans Baier
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -267,6 +268,7 @@ public:
XMLNode& get_state (void);
int set_state (const XMLTree&, const XMLNode&);
+ /// Note: channel here is 0-based while in the MIDNAM-file it's 1-based
std::string channel_name_set_name_by_channel(uint8_t channel) {
assert(channel <= 15);
return _channel_name_set_assignments[channel];