diff options
author | David Robillard <d@drobilla.net> | 2006-05-26 22:30:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-05-26 22:30:54 +0000 |
commit | 0c1b9afc634d098ac6029acb3508d25823d0fc14 (patch) | |
tree | 0e09b9b277b0e8c62a24e57de2039119586343bf /libs/midi++2/midi++/channel.h | |
parent | 5bc0351635d49a5e7d7fdf129df842a247ffad99 (diff) |
- Documentation fixes
- Fixed boolean return values in libmidi++ to return bool instead of int
git-svn-id: svn://localhost/trunk/ardour2midi@538 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midi++/channel.h')
-rw-r--r-- | libs/midi++2/midi++/channel.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/midi++2/midi++/channel.h b/libs/midi++2/midi++/channel.h index 1efde3cb93..f534f7e6da 100644 --- a/libs/midi++2/midi++/channel.h +++ b/libs/midi++2/midi++/channel.h @@ -73,37 +73,37 @@ class Channel : public sigc::trackable { controller_val[n%128] = val; } - int channel_msg (byte id, byte val1, byte val2); + bool channel_msg (byte id, byte val1, byte val2); - int all_notes_off () { + bool all_notes_off () { return channel_msg (MIDI::controller, 123, 0); } - int control (byte id, byte value) { + bool control (byte id, byte value) { return channel_msg (MIDI::controller, id, value); } - int note_on (byte note, byte velocity) { + bool note_on (byte note, byte velocity) { return channel_msg (MIDI::on, note, velocity); } - int note_off (byte note, byte velocity) { + bool note_off (byte note, byte velocity) { return channel_msg (MIDI::off, note, velocity); } - int aftertouch (byte value) { + bool aftertouch (byte value) { return channel_msg (MIDI::chanpress, value, 0); } - int poly_aftertouch (byte note, byte value) { + bool poly_aftertouch (byte note, byte value) { return channel_msg (MIDI::polypress, note, value); } - int program_change (byte value) { + bool program_change (byte value) { return channel_msg (MIDI::program, value, 0); } - int pitchbend (byte msb, byte lsb) { + bool pitchbend (byte msb, byte lsb) { return channel_msg (MIDI::pitchbend, lsb, msb); } |