LMMS
Loading...
Searching...
No Matches
lmms::VestigeInstrument Class Reference

#include <Vestige.h>

Inheritance diagram for lmms::VestigeInstrument:
lmms::Instrument lmms::Plugin lmms::Model lmms::JournallingObject lmms::SerializingObject

Public Member Functions

 VestigeInstrument (InstrumentTrack *_instrument_track)
virtual ~VestigeInstrument ()
virtual void play (SampleFrame *_working_buffer)
virtual void saveSettings (QDomDocument &_doc, QDomElement &_parent)
virtual void loadSettings (const QDomElement &_this)
virtual QString nodeName () const
virtual void loadFile (const QString &_file)
virtual bool handleMidiEvent (const MidiEvent &event, const TimePos &time, f_cnt_t offset=0)
virtual gui::PluginViewinstantiateView (QWidget *_parent)
 Create a view for the model.
Public Member Functions inherited from lmms::Instrument
 Instrument (InstrumentTrack *_instrument_track, const Descriptor *_descriptor, const Descriptor::SubPluginFeatures::Key *key=nullptr, Flags flags=Flag::NoFlags)
 ~Instrument () override=default
virtual bool hasNoteInput () const
virtual void playNote (NotePlayHandle *, SampleFrame *)
virtual void deleteNotePluginData (NotePlayHandle *_note_to_play)
virtual f_cnt_t beatLen (NotePlayHandle *_n) const
virtual float desiredReleaseTimeMs () const
f_cnt_t desiredReleaseFrames () const
sample_rate_t getSampleRate () const
bool isSingleStreamed () const
bool isMidiBased () const
bool isBendable () const
QString fullDisplayName () const override
virtual bool isFromTrack (const Track *_track) const
InstrumentTrackinstrumentTrack () const
Public Member Functions inherited from lmms::Plugin
 Plugin (const Descriptor *descriptor, Model *parent, const Descriptor::SubPluginFeatures::Key *key=nullptr)
 ~Plugin () override=default
QString displayName () const override
 Return display-name out of sub plugin or descriptor.
const PixmapLoaderlogo () const
 Return logo out of sub plugin or descriptor.
Type type () const
 Return plugin type.
const Descriptordescriptor () const
 Return plugin Descriptor.
const Descriptor::SubPluginFeatures::Keykey () const
virtual AutomatableModelchildModel (const QString &modelName)
gui::PluginViewcreateView (QWidget *parent)
 Create a view for the model.
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 void setDisplayName (const QString &displayName)
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 ()

Protected Slots

void setParameter (lmms::Model *action)
void handleConfigChange (QString cls, QString attr, QString value)
void reloadPlugin ()

Private Member Functions

void closePlugin ()

Private Attributes

VstPluginm_plugin
QMutex m_pluginMutex
QString m_pluginDLL
gui::SubWindowm_subWindow
QScrollArea * m_scrollArea
FloatModel ** knobFModel
QObject * p_subWindow
int paramCount

Friends

class gui::VestigeInstrumentView
class gui::ManageVestigeInstrumentView

Additional Inherited Members

Public Types inherited from lmms::Instrument
enum class  Flag { NoFlags = 0x00 , IsSingleStreamed = 0x01 , IsMidiBased = 0x02 , IsNotBendable = 0x04 }
using Flags = lmms::Flags<Flag>
Public Types inherited from lmms::Plugin
enum class  Type {
  Instrument , Effect , ImportFilter , ExportFilter ,
  Tool , Library , Other , Undefined = 255
}
using DescriptorList = QList<Descriptor*>
Signals inherited from lmms::Model
void dataChanged ()
void dataUnchanged ()
void propertiesChanged ()
Static Public Member Functions inherited from lmms::Instrument
static Instrumentinstantiate (const QString &_plugin_name, InstrumentTrack *_instrument_track, const Plugin::Descriptor::SubPluginFeatures::Key *key, bool keyFromDnd=false)
Static Public Member Functions inherited from lmms::Plugin
static PlugininstantiateWithKey (const QString &pluginName, Model *parent, const Descriptor::SubPluginFeatures::Key *key, bool keyFromDnd=false)
static Plugininstantiate (const QString &pluginName, Model *parent, void *data)
Protected Member Functions inherited from lmms::Instrument
void applyFadeIn (SampleFrame *buf, NotePlayHandle *n)
void applyRelease (SampleFrame *buf, const NotePlayHandle *_n)
float computeReleaseTimeMsByFrameCount (f_cnt_t frames) const
Protected Member Functions inherited from lmms::Plugin
void collectErrorForUI (QString errMsg)
Protected Member Functions inherited from lmms::JournallingObject
void changeID (jo_id_t _id)

Constructor & Destructor Documentation

◆ VestigeInstrument()

lmms::VestigeInstrument::VestigeInstrument ( InstrumentTrack * _instrument_track)

◆ ~VestigeInstrument()

lmms::VestigeInstrument::~VestigeInstrument ( )
virtual

Member Function Documentation

◆ closePlugin()

void lmms::VestigeInstrument::closePlugin ( void )
private

◆ handleConfigChange

void lmms::VestigeInstrument::handleConfigChange ( QString cls,
QString attr,
QString value )
protectedslot

◆ handleMidiEvent()

bool lmms::VestigeInstrument::handleMidiEvent ( const MidiEvent & event,
const TimePos & time,
f_cnt_t offset = 0 )
virtual

Reimplemented from lmms::Instrument.

◆ instantiateView()

gui::PluginView * lmms::VestigeInstrument::instantiateView ( QWidget * )
virtual

Create a view for the model.

Implements lmms::Plugin.

◆ loadFile()

void lmms::VestigeInstrument::loadFile ( const QString & file)
virtual

Can be called if a file matching supportedFileTypes should be loaded/processed with the help of this plugin

Reimplemented from lmms::Plugin.

◆ loadSettings()

void lmms::VestigeInstrument::loadSettings ( const QDomElement & _this)
virtual

◆ nodeName()

QString lmms::VestigeInstrument::nodeName ( void ) const
virtual

◆ play()

void lmms::VestigeInstrument::play ( SampleFrame * _working_buffer)
virtual

Reimplemented from lmms::Instrument.

◆ reloadPlugin

void lmms::VestigeInstrument::reloadPlugin ( )
protectedslot

◆ saveSettings()

void lmms::VestigeInstrument::saveSettings ( QDomDocument & _doc,
QDomElement & _parent )
virtual

◆ setParameter

void lmms::VestigeInstrument::setParameter ( lmms::Model * action)
protectedslot

◆ gui::ManageVestigeInstrumentView

friend class gui::ManageVestigeInstrumentView
friend

◆ gui::VestigeInstrumentView

friend class gui::VestigeInstrumentView
friend

Member Data Documentation

◆ knobFModel

FloatModel** lmms::VestigeInstrument::knobFModel
private

◆ m_plugin

VstPlugin* lmms::VestigeInstrument::m_plugin
private

◆ m_pluginDLL

QString lmms::VestigeInstrument::m_pluginDLL
private

◆ m_pluginMutex

QMutex lmms::VestigeInstrument::m_pluginMutex
private

◆ m_scrollArea

QScrollArea* lmms::VestigeInstrument::m_scrollArea
private

◆ m_subWindow

gui::SubWindow* lmms::VestigeInstrument::m_subWindow
private

◆ p_subWindow

QObject* lmms::VestigeInstrument::p_subWindow
private

◆ paramCount

int lmms::VestigeInstrument::paramCount
private

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