tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
tracktion::engine::MidiControllerEvent Class Reference

Public Types

enum  ExtraControllerTypes {
  programChangeType , noteVelocities , aftertouchType , pitchWheelType ,
  sysExType , channelPressureType , UnknownType
}
 

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.
 
TimePosition getEditTime (const MidiClip &) const
 
juce::String getLevelDescription (MidiClip *) const
 
int getType () const noexcept
 Controller type, from the list below.
 
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
 

Friends

class MidiList
 

Detailed Description

Definition at line 14 of file tracktion_MidiControllerEvent.h.

Member Enumeration Documentation

◆ ExtraControllerTypes

enum tracktion::engine::MidiControllerEvent::ExtraControllerTypes

Definition at line 48 of file tracktion_MidiControllerEvent.h.

Constructor & Destructor Documentation

◆ MidiControllerEvent()

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

Definition at line 865 of file tracktion_MidiList.cpp.

Member Function Documentation

◆ bankIDToCoarse()

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

Definition at line 62 of file tracktion_MidiControllerEvent.h.

◆ bankIDToFine()

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

Definition at line 63 of file tracktion_MidiControllerEvent.h.

◆ createControllerEvent() [1/3]

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

Definition at line 850 of file tracktion_MidiList.cpp.

◆ createControllerEvent() [2/3]

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

Definition at line 858 of file tracktion_MidiList.cpp.

◆ createControllerEvent() [3/3]

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

Definition at line 843 of file tracktion_MidiList.cpp.

◆ getBeatPosition()

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

Definition at line 34 of file tracktion_MidiControllerEvent.h.

◆ getControllerDefautValue()

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

Definition at line 1026 of file tracktion_MidiList.cpp.

◆ getControllerTypeName()

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

Definition at line 903 of file tracktion_MidiList.cpp.

◆ getControllerValue()

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

Definition at line 25 of file tracktion_MidiControllerEvent.h.

◆ getEditBeats()

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

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

Definition at line 922 of file tracktion_MidiList.cpp.

◆ getEditTime()

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

Definition at line 927 of file tracktion_MidiList.cpp.

◆ getLevelDescription()

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

Definition at line 932 of file tracktion_MidiList.cpp.

◆ getMetadata()

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

Definition at line 30 of file tracktion_MidiControllerEvent.h.

◆ getType()

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

Controller type, from the list below.

Definition at line 45 of file tracktion_MidiControllerEvent.h.

◆ setBeatPosition()

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

Definition at line 997 of file tracktion_MidiList.cpp.

◆ setControllerValue()

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

Definition at line 1017 of file tracktion_MidiList.cpp.

◆ setMetadata()

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

Definition at line 988 of file tracktion_MidiList.cpp.

◆ setType()

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

Definition at line 1008 of file tracktion_MidiList.cpp.

Friends And Related Symbol Documentation

◆ MidiList

friend class MidiList
friend

Definition at line 69 of file tracktion_MidiControllerEvent.h.

Member Data Documentation

◆ state

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

Definition at line 65 of file tracktion_MidiControllerEvent.h.


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