Ardour
9.0-pre0-582-g084a23a80d
surfaces/us2400/midi_byte_array.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Ben Loftis <ben@harrisonconsoles.com>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
#ifndef midi_byte_array_h
19
#define midi_byte_array_h
20
21
#include <iostream>
22
#include <vector>
23
24
//#include <midi++/types.h>
25
namespace
MIDI
{
26
typedef
unsigned
char
byte
;
27
}
28
46
class
MidiByteArray
:
public
std::vector<MIDI::byte>
47
{
48
public
:
49
MidiByteArray
() : std::vector<
MIDI
::
byte
>() {}
50
51
MidiByteArray
(
size_t
count,
MIDI::byte
array[] );
52
56
MidiByteArray
(
size_t
count,
MIDI::byte
first, ... );
57
59
void
copy
(
size_t
count,
MIDI::byte
arr[] );
60
};
61
63
MidiByteArray
&
operator <<
(
MidiByteArray
& mba,
const
MIDI::byte
& b );
64
66
MidiByteArray
&
operator <<
(
MidiByteArray
& mba,
const
std::string & );
67
69
MidiByteArray
&
operator <<
(
MidiByteArray
& mba,
const
MidiByteArray
& barr );
70
72
std::ostream &
operator <<
( std::ostream & os,
const
MidiByteArray
& mba );
73
74
#endif
MidiByteArray
Definition:
ctrl-interface/midi_surface/midi_surface/midi_byte_array.h:47
MidiByteArray::copy
void copy(size_t count, MIDI::byte arr[])
copy the given number of bytes from the given array
MidiByteArray::MidiByteArray
MidiByteArray(size_t count, MIDI::byte array[])
MidiByteArray::MidiByteArray
MidiByteArray()
Definition:
surfaces/us2400/midi_byte_array.h:49
MidiByteArray::MidiByteArray
MidiByteArray(size_t count, MIDI::byte first,...)
MIDI
Definition:
midi_region_view.h:50
MIDI::byte
unsigned char byte
Definition:
ctrl-interface/midi_surface/midi_surface/midi_byte_array.h:26
operator<<
MidiByteArray & operator<<(MidiByteArray &mba, const MIDI::byte &b)
append the given byte to the end of the array
libs
surfaces
us2400
midi_byte_array.h
Generated on Wed Dec 25 2024 05:44:34 for Ardour by
1.9.1