linuxsampler 2.3.1
midi.h
Go to the documentation of this file.
1/***************************************************************************
2 * *
3 * Copyright (C) 2005, 2006, 2014 Christian Schoenebeck *
4 * *
5 * 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 *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
18 * MA 02111-1307 USA *
19 ***************************************************************************/
20
21#ifndef __LS_MIDI_H__
22#define __LS_MIDI_H__
23
24#include <string.h>
25
26namespace LinuxSampler {
27
29 // global type definitions
30
53
66
67 inline bool isValidMidiChan(const midi_chan_t& ch) {
68 return ch >= 0 && ch <= midi_chan_all;
69 }
70
71} // namsepace LinuxSampler
72
73#endif // __LS_MIDI_H__
Wraps as a kind of pointer class some data object shared with other threads, to protect / synchronize...
bool isValidMidiChan(const midi_chan_t &ch)
Definition midi.h:67
midi_chan_t
MIDI channels.
Definition midi.h:34
@ midi_chan_2
Definition midi.h:36
@ midi_chan_16
Definition midi.h:50
@ midi_chan_12
Definition midi.h:46
@ midi_chan_8
Definition midi.h:42
@ midi_chan_14
Definition midi.h:48
@ midi_chan_4
Definition midi.h:38
@ midi_chan_6
Definition midi.h:40
@ midi_chan_10
Definition midi.h:44
@ midi_chan_15
Definition midi.h:49
@ midi_chan_all
Definition midi.h:51
@ midi_chan_9
Definition midi.h:43
@ midi_chan_7
Definition midi.h:41
@ midi_chan_13
Definition midi.h:47
@ midi_chan_3
Definition midi.h:37
@ midi_chan_1
Definition midi.h:35
@ midi_chan_5
Definition midi.h:39
@ midi_chan_11
Definition midi.h:45
MIDI program index.
Definition midi.h:57
uint8_t midi_prog
MIDI program index.
Definition midi.h:60
bool operator<(const midi_prog_index_t &other) const
Definition midi.h:62
uint8_t midi_bank_msb
coarse MIDI bank index
Definition midi.h:58
uint8_t midi_bank_lsb
fine MIDI bank index
Definition midi.h:59