LMMS
Loading...
Searching...
No Matches
lmms::AutoDetectMidiController Class Reference
Inheritance diagram for lmms::AutoDetectMidiController:
lmms::MidiController lmms::Controller lmms::MidiEventProcessor lmms::Model lmms::JournallingObject lmms::SerializingObject

Public Slots

void reset ()
Public Slots inherited from lmms::MidiController
gui::ControllerDialogcreateDialog (QWidget *_parent) override
void updateName ()
Public Slots inherited from lmms::Controller
virtual gui::ControllerDialogcreateDialog (QWidget *_parent)
virtual void setName (const QString &_new_name)

Public Member Functions

 AutoDetectMidiController (Model *parent)
 ~AutoDetectMidiController () override=default
void processInEvent (const MidiEvent &event, const TimePos &time, f_cnt_t offset=0) override
MidiControllercopyToMidiController (Model *parent)
void useDetected ()
Public Member Functions inherited from lmms::MidiController
 MidiController (Model *_parent)
 ~MidiController () override=default
void processInEvent (const MidiEvent &_me, const TimePos &_time, f_cnt_t offset=0) override
void processOutEvent (const MidiEvent &_me, const TimePos &_time, f_cnt_t offset=0) override
void saveSettings (QDomDocument &_doc, QDomElement &_this) override
void loadSettings (const QDomElement &_this) override
QString nodeName () const override
void subscribeReadablePorts (const MidiPort::Map &_map)
Public Member Functions inherited from lmms::Controller
 Controller (ControllerType _type, Model *_parent, const QString &_display_name)
 ~Controller () override
virtual float currentValue (int _offset)
virtual ValueBuffervalueBuffer ()
bool isSampleExact () const
void setSampleExact (bool _exact)
ControllerType type () const
bool frequentUpdates () const
virtual const QString & name () const
void addConnection (ControllerConnection *)
void removeConnection (ControllerConnection *)
int connectionCount () const
bool hasModel (const Model *m) const
Public Member Functions inherited from lmms::Model
 Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false)
 ~Model () override=default
bool isDefaultConstructed () const
ModelparentModel () const
virtual QString displayName () const
virtual void setDisplayName (const QString &displayName)
virtual QString fullDisplayName () const
Public Member Functions inherited from lmms::JournallingObject
 JournallingObject ()
 ~JournallingObject () override
jo_id_t id () const
void saveJournallingState (const bool newState)
void restoreJournallingState ()
void addJournalCheckPoint ()
QDomElement saveState (QDomDocument &_doc, QDomElement &_parent) override
void restoreState (const QDomElement &_this) override
bool isJournalling () const
void setJournalling (const bool _sr)
bool testAndSetJournalling (const bool newState)
bool isJournallingStateStackEmpty () const
Public Member Functions inherited from lmms::SerializingObject
 SerializingObject ()
virtual ~SerializingObject ()
void setHook (SerializingObjectHook *_hook)
SerializingObjectHookhook ()
Public Member Functions inherited from lmms::MidiEventProcessor
 MidiEventProcessor ()=default
virtual ~MidiEventProcessor ()=default

Private Attributes

int m_detectedMidiChannel
int m_detectedMidiController
QString m_detectedMidiPort

Additional Inherited Members

Public Types inherited from lmms::Controller
enum class  ControllerType { Dummy , Lfo , Midi , Peak }
Signals inherited from lmms::Controller
void valueChanged ()
Signals inherited from lmms::Model
void dataChanged ()
void dataUnchanged ()
void propertiesChanged ()
Static Public Member Functions inherited from lmms::Controller
static Controllercreate (ControllerType _tt, Model *_parent)
static Controllercreate (const QDomElement &_this, Model *_parent)
static float fittedValue (float _val)
static long runningPeriods ()
static unsigned int runningFrames ()
static float runningTime ()
static void triggerFrameCounter ()
static void resetFrameCounter ()
Static Public Attributes inherited from lmms::MidiController
static constexpr int NONE = -1
Protected Member Functions inherited from lmms::MidiController
void updateValueBuffer () override
Protected Member Functions inherited from lmms::Controller
virtual float value (int _offset)
Protected Member Functions inherited from lmms::JournallingObject
void changeID (jo_id_t _id)
Protected Attributes inherited from lmms::MidiController
MidiPort m_midiPort
float m_lastValue
float m_previousValue
Protected Attributes inherited from lmms::Controller
ValueBuffer m_valueBuffer
long m_bufferLastUpdated
float m_currentValue
bool m_sampleExact
int m_connectionCount
QString m_name
ControllerType m_type
Static Protected Attributes inherited from lmms::Controller
static ControllerVector s_controllers
static long s_periods = 0

Constructor & Destructor Documentation

◆ AutoDetectMidiController()

lmms::AutoDetectMidiController::AutoDetectMidiController ( Model * parent)
inline

◆ ~AutoDetectMidiController()

lmms::AutoDetectMidiController::~AutoDetectMidiController ( )
overridedefault

Member Function Documentation

◆ copyToMidiController()

MidiController * lmms::AutoDetectMidiController::copyToMidiController ( Model * parent)
inline

◆ processInEvent()

void lmms::AutoDetectMidiController::processInEvent ( const MidiEvent & event,
const TimePos & time,
f_cnt_t offset = 0 )
inlineoverridevirtual

◆ reset

void lmms::AutoDetectMidiController::reset ( )
inlineslot

◆ useDetected()

void lmms::AutoDetectMidiController::useDetected ( )
inline

Member Data Documentation

◆ m_detectedMidiChannel

int lmms::AutoDetectMidiController::m_detectedMidiChannel
private

◆ m_detectedMidiController

int lmms::AutoDetectMidiController::m_detectedMidiController
private

◆ m_detectedMidiPort

QString lmms::AutoDetectMidiController::m_detectedMidiPort
private

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