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

#include <FreeBoy.h>

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

Public Member Functions

 FreeBoyInstrument (InstrumentTrack *_instrument_track)
 ~FreeBoyInstrument () override=default
void playNote (NotePlayHandle *nph, SampleFrame *workingBuffer) override
void deleteNotePluginData (NotePlayHandle *nph) override
void saveSettings (QDomDocument &_doc, QDomElement &_parent) override
void loadSettings (const QDomElement &_this) override
QString nodeName () const override
float desiredReleaseTimeMs () const override
gui::PluginViewinstantiateView (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 f_cnt_t beatLen (NotePlayHandle *_n) 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
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 void loadFile (const QString &file)
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 ()

Private Attributes

FloatModel m_ch1SweepTimeModel
BoolModel m_ch1SweepDirModel
FloatModel m_ch1SweepRtShiftModel
FloatModel m_ch1WavePatternDutyModel
FloatModel m_ch1VolumeModel
BoolModel m_ch1VolSweepDirModel
FloatModel m_ch1SweepStepLengthModel
FloatModel m_ch2WavePatternDutyModel
FloatModel m_ch2VolumeModel
BoolModel m_ch2VolSweepDirModel
FloatModel m_ch2SweepStepLengthModel
BoolModel m_ch3OnModel
FloatModel m_ch3VolumeModel
FloatModel m_ch4VolumeModel
BoolModel m_ch4VolSweepDirModel
FloatModel m_ch4SweepStepLengthModel
FloatModel m_ch4ShiftClockFreqModel
BoolModel m_ch4ShiftRegWidthModel
FloatModel m_ch4FreqDivRatioModel
FloatModel m_so1VolumeModel
FloatModel m_so2VolumeModel
BoolModel m_ch1So1Model
BoolModel m_ch2So1Model
BoolModel m_ch3So1Model
BoolModel m_ch4So1Model
BoolModel m_ch1So2Model
BoolModel m_ch2So2Model
BoolModel m_ch3So2Model
BoolModel m_ch4So2Model
FloatModel m_trebleModel
FloatModel m_bassModel
graphModel m_graphModel

Friends

class gui::FreeBoyInstrumentView

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

◆ FreeBoyInstrument()

lmms::FreeBoyInstrument::FreeBoyInstrument ( InstrumentTrack * _instrument_track)

◆ ~FreeBoyInstrument()

lmms::FreeBoyInstrument::~FreeBoyInstrument ( )
overridedefault

Member Function Documentation

◆ deleteNotePluginData()

void lmms::FreeBoyInstrument::deleteNotePluginData ( NotePlayHandle * nph)
overridevirtual

Reimplemented from lmms::Instrument.

◆ desiredReleaseTimeMs()

float lmms::FreeBoyInstrument::desiredReleaseTimeMs ( ) const
overridevirtual

Reimplemented from lmms::Instrument.

◆ instantiateView()

gui::PluginView * lmms::FreeBoyInstrument::instantiateView ( QWidget * )
overridevirtual

Create a view for the model.

Implements lmms::Plugin.

◆ loadSettings()

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

◆ nodeName()

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

◆ playNote()

void lmms::FreeBoyInstrument::playNote ( NotePlayHandle * nph,
SampleFrame * workingBuffer )
overridevirtual

Reimplemented from lmms::Instrument.

◆ saveSettings()

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

◆ gui::FreeBoyInstrumentView

friend class gui::FreeBoyInstrumentView
friend

Member Data Documentation

◆ m_bassModel

FloatModel lmms::FreeBoyInstrument::m_bassModel
private

◆ m_ch1So1Model

BoolModel lmms::FreeBoyInstrument::m_ch1So1Model
private

◆ m_ch1So2Model

BoolModel lmms::FreeBoyInstrument::m_ch1So2Model
private

◆ m_ch1SweepDirModel

BoolModel lmms::FreeBoyInstrument::m_ch1SweepDirModel
private

◆ m_ch1SweepRtShiftModel

FloatModel lmms::FreeBoyInstrument::m_ch1SweepRtShiftModel
private

◆ m_ch1SweepStepLengthModel

FloatModel lmms::FreeBoyInstrument::m_ch1SweepStepLengthModel
private

◆ m_ch1SweepTimeModel

FloatModel lmms::FreeBoyInstrument::m_ch1SweepTimeModel
private

◆ m_ch1VolSweepDirModel

BoolModel lmms::FreeBoyInstrument::m_ch1VolSweepDirModel
private

◆ m_ch1VolumeModel

FloatModel lmms::FreeBoyInstrument::m_ch1VolumeModel
private

◆ m_ch1WavePatternDutyModel

FloatModel lmms::FreeBoyInstrument::m_ch1WavePatternDutyModel
private

◆ m_ch2So1Model

BoolModel lmms::FreeBoyInstrument::m_ch2So1Model
private

◆ m_ch2So2Model

BoolModel lmms::FreeBoyInstrument::m_ch2So2Model
private

◆ m_ch2SweepStepLengthModel

FloatModel lmms::FreeBoyInstrument::m_ch2SweepStepLengthModel
private

◆ m_ch2VolSweepDirModel

BoolModel lmms::FreeBoyInstrument::m_ch2VolSweepDirModel
private

◆ m_ch2VolumeModel

FloatModel lmms::FreeBoyInstrument::m_ch2VolumeModel
private

◆ m_ch2WavePatternDutyModel

FloatModel lmms::FreeBoyInstrument::m_ch2WavePatternDutyModel
private

◆ m_ch3OnModel

BoolModel lmms::FreeBoyInstrument::m_ch3OnModel
private

◆ m_ch3So1Model

BoolModel lmms::FreeBoyInstrument::m_ch3So1Model
private

◆ m_ch3So2Model

BoolModel lmms::FreeBoyInstrument::m_ch3So2Model
private

◆ m_ch3VolumeModel

FloatModel lmms::FreeBoyInstrument::m_ch3VolumeModel
private

◆ m_ch4FreqDivRatioModel

FloatModel lmms::FreeBoyInstrument::m_ch4FreqDivRatioModel
private

◆ m_ch4ShiftClockFreqModel

FloatModel lmms::FreeBoyInstrument::m_ch4ShiftClockFreqModel
private

◆ m_ch4ShiftRegWidthModel

BoolModel lmms::FreeBoyInstrument::m_ch4ShiftRegWidthModel
private

◆ m_ch4So1Model

BoolModel lmms::FreeBoyInstrument::m_ch4So1Model
private

◆ m_ch4So2Model

BoolModel lmms::FreeBoyInstrument::m_ch4So2Model
private

◆ m_ch4SweepStepLengthModel

FloatModel lmms::FreeBoyInstrument::m_ch4SweepStepLengthModel
private

◆ m_ch4VolSweepDirModel

BoolModel lmms::FreeBoyInstrument::m_ch4VolSweepDirModel
private

◆ m_ch4VolumeModel

FloatModel lmms::FreeBoyInstrument::m_ch4VolumeModel
private

◆ m_graphModel

graphModel lmms::FreeBoyInstrument::m_graphModel
private

◆ m_so1VolumeModel

FloatModel lmms::FreeBoyInstrument::m_so1VolumeModel
private

◆ m_so2VolumeModel

FloatModel lmms::FreeBoyInstrument::m_so2VolumeModel
private

◆ m_trebleModel

FloatModel lmms::FreeBoyInstrument::m_trebleModel
private

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