OpenShot Audio Library | OpenShotAudio  0.6.0
juce::universal_midi_packets::Packet< numWords > Class Template Reference

#include <juce_UMPacket.h>

Public Types

using Contents = std::array< uint32_t, numWords >
 
using const_iterator = typename Contents::const_iterator
 

Public Member Functions

template<size_t w = numWords, std::enable_if_t< w==1, int > = 0>
 Packet (uint32_t a)
 
template<size_t w = numWords, std::enable_if_t< w==2, int > = 0>
 Packet (uint32_t a, uint32_t b)
 
template<size_t w = numWords, std::enable_if_t< w==3, int > = 0>
 Packet (uint32_t a, uint32_t b, uint32_t c)
 
template<size_t w = numWords, std::enable_if_t< w==4, int > = 0>
 Packet (uint32_t a, uint32_t b, uint32_t c, uint32_t d)
 
template<size_t w, std::enable_if_t< w==numWords, int > = 0>
 Packet (const std::array< uint32_t, w > &fullPacket)
 
Packet withMessageType (uint8_t type) const noexcept
 
Packet withGroup (uint8_t group) const noexcept
 
Packet withStatus (uint8_t status) const noexcept
 
Packet withChannel (uint8_t channel) const noexcept
 
uint8_t getMessageType () const noexcept
 
uint8_t getGroup () const noexcept
 
uint8_t getStatus () const noexcept
 
uint8_t getChannel () const noexcept
 
template<size_t index>
Packet withU4 (uint8_t value) const noexcept
 
template<size_t index>
Packet withU8 (uint8_t value) const noexcept
 
template<size_t index>
Packet withU16 (uint16_t value) const noexcept
 
template<size_t index>
Packet withU32 (uint32_t value) const noexcept
 
template<size_t index>
uint8_t getU4 () const noexcept
 
template<size_t index>
uint8_t getU8 () const noexcept
 
template<size_t index>
uint16_t getU16 () const noexcept
 
template<size_t index>
uint32_t getU32 () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
const uint32_t * data () const noexcept
 
const uint32_t & front () const noexcept
 
const uint32_t & back () const noexcept
 
const uint32_t & operator[] (size_t index) const noexcept
 

Detailed Description

template<size_t numWords>
class juce::universal_midi_packets::Packet< numWords >

Holds a single Universal MIDI Packet.

Definition at line 34 of file juce_UMPacket.h.


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