1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2005 Christian Schoenebeck * |
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
21 |
#ifndef __LS_MIDI_H__ |
#ifndef __LS_MIDI_H__ |
22 |
#define __LS_MIDI_H__ |
#define __LS_MIDI_H__ |
23 |
|
|
24 |
|
#include <string.h> |
25 |
|
|
26 |
namespace LinuxSampler { |
namespace LinuxSampler { |
27 |
|
|
28 |
///////////////////////////////////////////////////////////////// |
///////////////////////////////////////////////////////////////// |
51 |
midi_chan_all = 16 |
midi_chan_all = 16 |
52 |
}; |
}; |
53 |
|
|
54 |
|
/** |
55 |
|
* MIDI program index |
56 |
|
*/ |
57 |
|
struct midi_prog_index_t { |
58 |
|
uint8_t midi_bank_msb; ///< coarse MIDI bank index |
59 |
|
uint8_t midi_bank_lsb; ///< fine MIDI bank index |
60 |
|
uint8_t midi_prog; ///< MIDI program index |
61 |
|
|
62 |
|
bool operator< (const midi_prog_index_t& other) const { |
63 |
|
return memcmp(this, &other, sizeof(midi_prog_index_t)) < 0; |
64 |
|
} |
65 |
|
}; |
66 |
|
|
67 |
} // namsepace LinuxSampler |
} // namsepace LinuxSampler |
68 |
|
|
69 |
#endif // __LS_MIDI_H__ |
#endif // __LS_MIDI_H__ |