TracktionEngine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tracktion::engine::MidiControllerEvent Class Reference

Public Types

enum  ExtraControllerTypes {
  programChangeType = 0x1001 , noteVelocities = 0x1003 , aftertouchType = 0x1004 , pitchWheelType = 0x1005 ,
  sysExType = 0x1006 , channelPressureType = 0x1007 , UnknownType = 0x7fffffff
}
 

Public Member Functions

 MidiControllerEvent (const juce::ValueTree &)
 
 MidiControllerEvent (MidiControllerEvent &&)=default
 
int getControllerValue () const noexcept
 
void setControllerValue (int newValue, juce::UndoManager *)
 
int getMetadata () const noexcept
 
void setMetadata (int metaValue, juce::UndoManager *)
 
BeatPosition getBeatPosition () const noexcept
 
void setBeatPosition (BeatPosition, juce::UndoManager *)
 
BeatPosition getEditBeats (const MidiClip &) const
 This takes into account quantising, groove templates, clip offset, etc. More...
 
TimePosition getEditTime (const MidiClip &) const
 
juce::String getLevelDescription (MidiClip *) const
 
int getType () const noexcept
 Controller type, from the list below. More...
 
void setType (int type, juce::UndoManager *um)
 

Static Public Member Functions

static juce::ValueTree createControllerEvent (BeatPosition, int controllerType, int controllerValue)
 
static juce::ValueTree createControllerEvent (BeatPosition, int controllerType, int controllerValue, int metadata)
 
static juce::ValueTree createControllerEvent (const MidiControllerEvent &, BeatPosition)
 
static int getControllerDefautValue (int type)
 
static juce::String getControllerTypeName (int type) noexcept
 
static int bankIDToCoarse (int id)
 
static int bankIDToFine (int id)
 

Public Attributes

juce::ValueTree state
 

Member Enumeration Documentation

◆ ExtraControllerTypes

Enumerator
programChangeType 
noteVelocities 
aftertouchType 
pitchWheelType 
sysExType 
channelPressureType 
UnknownType 

Constructor & Destructor Documentation

◆ MidiControllerEvent() [1/2]

tracktion::engine::MidiControllerEvent::MidiControllerEvent ( const juce::ValueTree &  )

◆ MidiControllerEvent() [2/2]

tracktion::engine::MidiControllerEvent::MidiControllerEvent ( MidiControllerEvent &&  )
default

Member Function Documentation

◆ createControllerEvent() [1/3]

static juce::ValueTree tracktion::engine::MidiControllerEvent::createControllerEvent ( BeatPosition  ,
int  controllerType,
int  controllerValue 
)
static

◆ createControllerEvent() [2/3]

static juce::ValueTree tracktion::engine::MidiControllerEvent::createControllerEvent ( BeatPosition  ,
int  controllerType,
int  controllerValue,
int  metadata 
)
static

◆ createControllerEvent() [3/3]

static juce::ValueTree tracktion::engine::MidiControllerEvent::createControllerEvent ( const MidiControllerEvent ,
BeatPosition   
)
static

◆ getControllerValue()

int tracktion::engine::MidiControllerEvent::getControllerValue ( ) const
noexcept

◆ setControllerValue()

void tracktion::engine::MidiControllerEvent::setControllerValue ( int  newValue,
juce::UndoManager *   
)

◆ getControllerDefautValue()

static int tracktion::engine::MidiControllerEvent::getControllerDefautValue ( int  type)
static

◆ getMetadata()

int tracktion::engine::MidiControllerEvent::getMetadata ( ) const
noexcept

◆ setMetadata()

void tracktion::engine::MidiControllerEvent::setMetadata ( int  metaValue,
juce::UndoManager *   
)

◆ getBeatPosition()

BeatPosition tracktion::engine::MidiControllerEvent::getBeatPosition ( ) const
noexcept

◆ setBeatPosition()

void tracktion::engine::MidiControllerEvent::setBeatPosition ( BeatPosition  ,
juce::UndoManager *   
)

◆ getEditBeats()

BeatPosition tracktion::engine::MidiControllerEvent::getEditBeats ( const MidiClip ) const

This takes into account quantising, groove templates, clip offset, etc.

◆ getEditTime()

TimePosition tracktion::engine::MidiControllerEvent::getEditTime ( const MidiClip ) const

◆ getLevelDescription()

juce::String tracktion::engine::MidiControllerEvent::getLevelDescription ( MidiClip ) const

◆ getType()

int tracktion::engine::MidiControllerEvent::getType ( ) const
noexcept

Controller type, from the list below.

◆ setType()

void tracktion::engine::MidiControllerEvent::setType ( int  type,
juce::UndoManager *  um 
)

◆ getControllerTypeName()

static juce::String tracktion::engine::MidiControllerEvent::getControllerTypeName ( int  type)
staticnoexcept

◆ bankIDToCoarse()

static int tracktion::engine::MidiControllerEvent::bankIDToCoarse ( int  id)
static

◆ bankIDToFine()

static int tracktion::engine::MidiControllerEvent::bankIDToFine ( int  id)
static

Member Data Documentation

◆ state

juce::ValueTree tracktion::engine::MidiControllerEvent::state

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