lmms
Cross-platform music production software
Loading...
Searching...
No Matches
lmms::MalletsInstrument Class Reference

#include <Mallets.h>

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

Public Member Functions

 MalletsInstrument (InstrumentTrack *_instrument_track)
 ~MalletsInstrument () override=default
void playNote (NotePlayHandle *_n, SampleFrame *_working_buffer) override
void deleteNotePluginData (NotePlayHandle *_n) override
void saveSettings (QDomDocument &_doc, QDomElement &_parent) override
void loadSettings (const QDomElement &_this) override
QString nodeName () const override
gui::PluginView * instantiateView (QWidget *_parent) override
 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 play (SampleFrame *_working_buffer)
virtual auto midiPatch () const -> std::optional< MidiPatch >
 For applicable instruments: Provides host with current MIDI bank and program.
virtual auto childModel (std::string_view modelName) -> AutomatableModel *
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
virtual bool handleMidiEvent (const MidiEvent &, const TimePos &=TimePos(), f_cnt_t offset=0)
QString fullDisplayName () const override
virtual bool isFromTrack (const Track *_track) const
InstrumentTrack * instrumentTrack () const
Public Member Functions inherited from lmms::Plugin
 Plugin (const Descriptor *descriptor, Model *parent, const Descriptor::SubPluginFeatures::Key *key=nullptr)
 Constructor of a plugin.
 ~Plugin () override=default
QString displayName () const override
 Return display-name out of sub plugin or descriptor.
const PixmapLoader * logo () const
 Return logo out of sub plugin or descriptor.
Type type () const
 Return plugin type.
const Descriptor * descriptor () const
 Return plugin Descriptor.
const Descriptor::SubPluginFeatures::Key & key () const
virtual void loadFile (const QString &file)
gui::PluginView * createView (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
Model * parentModel () 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)
SerializingObjectHook * hook ()

Private Attributes

FloatModel m_hardnessModel
FloatModel m_positionModel
FloatModel m_vibratoGainModel
FloatModel m_vibratoFreqModel
FloatModel m_stickModel
FloatModel m_modulatorModel
FloatModel m_crossfadeModel
FloatModel m_lfoSpeedModel
FloatModel m_lfoDepthModel
FloatModel m_adsrModel
FloatModel m_pressureModel
FloatModel m_motionModel
FloatModel m_vibratoModel
FloatModel m_velocityModel
BoolModel m_strikeModel
ComboBoxModel m_presetsModel
FloatModel m_spreadModel
FloatModel m_randomModel
IntModel m_versionModel
BoolModel m_isOldVersionModel
QVector< sample_t > m_scalers
bool m_filesMissing

Friends

class gui::MalletsInstrumentView

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 Instrument * instantiate (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 Plugin * instantiateWithKey (const QString &pluginName, Model *parent, const Descriptor::SubPluginFeatures::Key *key, bool keyFromDnd=false)
static Plugin * instantiate (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

◆ MalletsInstrument()

lmms::MalletsInstrument::MalletsInstrument ( InstrumentTrack * _instrument_track)

◆ ~MalletsInstrument()

lmms::MalletsInstrument::~MalletsInstrument ( )
overridedefault

Member Function Documentation

◆ deleteNotePluginData()

void lmms::MalletsInstrument::deleteNotePluginData ( NotePlayHandle * _n)
overridevirtual

Reimplemented from lmms::Instrument.

◆ instantiateView()

gui::PluginView * lmms::MalletsInstrument::instantiateView ( QWidget * _parent)
overridevirtual

Create a view for the model.

Implements lmms::Plugin.

◆ loadSettings()

void lmms::MalletsInstrument::loadSettings ( const QDomElement & _this)
overridevirtual

◆ nodeName()

QString lmms::MalletsInstrument::nodeName ( void ) const
overridevirtual

◆ playNote()

void lmms::MalletsInstrument::playNote ( NotePlayHandle * _n,
SampleFrame * _working_buffer )
overridevirtual

Reimplemented from lmms::Instrument.

◆ saveSettings()

void lmms::MalletsInstrument::saveSettings ( QDomDocument & _doc,
QDomElement & _parent )
overridevirtual

◆ gui::MalletsInstrumentView

friend class gui::MalletsInstrumentView
friend

Member Data Documentation

◆ m_adsrModel

FloatModel lmms::MalletsInstrument::m_adsrModel
private

◆ m_crossfadeModel

FloatModel lmms::MalletsInstrument::m_crossfadeModel
private

◆ m_filesMissing

bool lmms::MalletsInstrument::m_filesMissing
private

◆ m_hardnessModel

FloatModel lmms::MalletsInstrument::m_hardnessModel
private

◆ m_isOldVersionModel

BoolModel lmms::MalletsInstrument::m_isOldVersionModel
private

◆ m_lfoDepthModel

FloatModel lmms::MalletsInstrument::m_lfoDepthModel
private

◆ m_lfoSpeedModel

FloatModel lmms::MalletsInstrument::m_lfoSpeedModel
private

◆ m_modulatorModel

FloatModel lmms::MalletsInstrument::m_modulatorModel
private

◆ m_motionModel

FloatModel lmms::MalletsInstrument::m_motionModel
private

◆ m_positionModel

FloatModel lmms::MalletsInstrument::m_positionModel
private

◆ m_presetsModel

ComboBoxModel lmms::MalletsInstrument::m_presetsModel
private

◆ m_pressureModel

FloatModel lmms::MalletsInstrument::m_pressureModel
private

◆ m_randomModel

FloatModel lmms::MalletsInstrument::m_randomModel
private

◆ m_scalers

QVector<sample_t> lmms::MalletsInstrument::m_scalers
private

◆ m_spreadModel

FloatModel lmms::MalletsInstrument::m_spreadModel
private

◆ m_stickModel

FloatModel lmms::MalletsInstrument::m_stickModel
private

◆ m_strikeModel

BoolModel lmms::MalletsInstrument::m_strikeModel
private

◆ m_velocityModel

FloatModel lmms::MalletsInstrument::m_velocityModel
private

◆ m_versionModel

IntModel lmms::MalletsInstrument::m_versionModel
private

◆ m_vibratoFreqModel

FloatModel lmms::MalletsInstrument::m_vibratoFreqModel
private

◆ m_vibratoGainModel

FloatModel lmms::MalletsInstrument::m_vibratoGainModel
private

◆ m_vibratoModel

FloatModel lmms::MalletsInstrument::m_vibratoModel
private

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