Ardour  9.0-pre0-380-gbbdb6b0e63
MidiByteArray Class Reference

#include <midi_byte_array.h>

Inheritance diagram for MidiByteArray:
[legend]

Public Member Functions

 MidiByteArray ()
 
 MidiByteArray (std::vector< MIDI::byte > const &vec)
 
 MidiByteArray (size_t count, MIDI::byte array[])
 
bool compare_n (const MidiByteArray &other, MidiByteArray::size_type len) const
 
 MidiByteArray (size_t count, MIDI::byte first,...)
 
void copy (size_t count, MIDI::byte arr[])
 copy the given number of bytes from the given array More...
 
 MidiByteArray ()
 
 MidiByteArray (size_t count, MIDI::byte array[])
 
bool compare_n (const MidiByteArray &other, MidiByteArray::size_type len) const
 
 MidiByteArray (size_t count, MIDI::byte first,...)
 
void copy (size_t count, MIDI::byte arr[])
 copy the given number of bytes from the given array More...
 
 MidiByteArray ()
 
 MidiByteArray (size_t count, MIDI::byte array[])
 
 MidiByteArray (size_t count, MIDI::byte first,...)
 
void copy (size_t count, MIDI::byte arr[])
 copy the given number of bytes from the given array More...
 
 MidiByteArray ()
 
 MidiByteArray (size_t count, MIDI::byte array[])
 
bool compare_n (const MidiByteArray &other, MidiByteArray::size_type len) const
 
 MidiByteArray (size_t count, MIDI::byte first,...)
 
void copy (size_t count, MIDI::byte arr[])
 copy the given number of bytes from the given array More...
 
 MidiByteArray ()
 
 MidiByteArray (size_t count, MIDI::byte array[])
 
 MidiByteArray (size_t count, MIDI::byte first,...)
 
void copy (size_t count, MIDI::byte arr[])
 copy the given number of bytes from the given array More...
 

Detailed Description

To make building arrays of bytes easier. Thusly:

MidiByteArray mba; mba << 0xf0 << 0x00 << 0xf7;

MidiByteArray buf; buf << mba;

MidiByteArray direct( 3, 0xf0, 0x00, 0xf7 );

cout << mba << endl; cout << buf << endl; cout << direct << endl;

will all result in "f0 00 f7" being output to stdout

Definition at line 46 of file ctrl-interface/midi_surface/midi_surface/midi_byte_array.h.

Constructor & Destructor Documentation

◆ MidiByteArray() [1/16]

MidiByteArray::MidiByteArray ( )
inline

◆ MidiByteArray() [2/16]

MidiByteArray::MidiByteArray ( std::vector< MIDI::byte > const &  vec)

◆ MidiByteArray() [3/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  array[] 
)

◆ MidiByteArray() [4/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  first,
  ... 
)

Accepts a preceding count, and then a list of bytes

◆ MidiByteArray() [5/16]

MidiByteArray::MidiByteArray ( )
inline

Definition at line 49 of file surfaces/launch_control_xl/midi_byte_array.h.

◆ MidiByteArray() [6/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  array[] 
)

◆ MidiByteArray() [7/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  first,
  ... 
)

Accepts a preceding count, and then a list of bytes

◆ MidiByteArray() [8/16]

MidiByteArray::MidiByteArray ( )
inline

Definition at line 50 of file surfaces/mackie/midi_byte_array.h.

◆ MidiByteArray() [9/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  array[] 
)

◆ MidiByteArray() [10/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  first,
  ... 
)

Accepts a preceding count, and then a list of bytes

◆ MidiByteArray() [11/16]

MidiByteArray::MidiByteArray ( )
inline

Definition at line 49 of file surfaces/push2/midi_byte_array.h.

◆ MidiByteArray() [12/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  array[] 
)

◆ MidiByteArray() [13/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  first,
  ... 
)

Accepts a preceding count, and then a list of bytes

◆ MidiByteArray() [14/16]

MidiByteArray::MidiByteArray ( )
inline

Definition at line 49 of file surfaces/us2400/midi_byte_array.h.

◆ MidiByteArray() [15/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  array[] 
)

◆ MidiByteArray() [16/16]

MidiByteArray::MidiByteArray ( size_t  count,
MIDI::byte  first,
  ... 
)

Accepts a preceding count, and then a list of bytes

Member Function Documentation

◆ compare_n() [1/3]

bool MidiByteArray::compare_n ( const MidiByteArray other,
MidiByteArray::size_type  len 
) const

◆ compare_n() [2/3]

bool MidiByteArray::compare_n ( const MidiByteArray other,
MidiByteArray::size_type  len 
) const

◆ compare_n() [3/3]

bool MidiByteArray::compare_n ( const MidiByteArray other,
MidiByteArray::size_type  len 
) const

◆ copy() [1/5]

void MidiByteArray::copy ( size_t  count,
MIDI::byte  arr[] 
)

copy the given number of bytes from the given array

◆ copy() [2/5]

void MidiByteArray::copy ( size_t  count,
MIDI::byte  arr[] 
)

copy the given number of bytes from the given array

◆ copy() [3/5]

void MidiByteArray::copy ( size_t  count,
MIDI::byte  arr[] 
)

copy the given number of bytes from the given array

◆ copy() [4/5]

void MidiByteArray::copy ( size_t  count,
MIDI::byte  arr[] 
)

copy the given number of bytes from the given array

◆ copy() [5/5]

void MidiByteArray::copy ( size_t  count,
MIDI::byte  arr[] 
)

copy the given number of bytes from the given array


The documentation for this class was generated from the following file: