|
lmms
Cross-platform music production software
|
#include <OpulenZ.h>
Public Member Functions | |
| OpulenzInstrument (InstrumentTrack *_instrument_track) | |
| ~OpulenzInstrument () override | |
| QString | nodeName () const override |
| gui::PluginView * | instantiateView (QWidget *_parent) override |
| Create a view for the model. | |
| bool | handleMidiEvent (const MidiEvent &event, const TimePos &time, f_cnt_t offset=0) override |
| void | play (SampleFrame *_working_buffer) override |
| void | saveSettings (QDomDocument &_doc, QDomElement &_this) override |
| void | loadSettings (const QDomElement &_this) override |
| void | loadPatch (const unsigned char inst[14]) |
| void | tuneEqual (int center, float Hz) |
| void | loadFile (const QString &file) override |
| 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 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 |
| 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 |
| 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 Slots | |
| void | updatePatch () |
| void | reloadEmulator () |
| void | loadGMPatch () |
Private Member Functions | |
| int | popVoice () |
| int | pushVoice (int v) |
| int | Hz2fnum (float Hz) |
| void | setVoiceVelocity (int voice, int vel) |
Private Attributes | |
| Copl * | theEmulator |
| QString | storedname |
| f_cnt_t | frameCount |
| short * | renderbuffer |
| int | voiceNote [OPL2_VOICES] |
| int | voiceLRU [OPL2_VOICES] |
| int | velocities [128] |
| int | fnums [128] |
| int | pitchbend |
| int | pitchBendRange |
| int | RPNcoarse |
| int | RPNfine |
Static Private Attributes | |
| static QMutex | emulatorMutex |
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) |
| lmms::OpulenzInstrument::OpulenzInstrument | ( | InstrumentTrack * | _instrument_track | ) |
|
override |
|
overridevirtual |
Reimplemented from lmms::Instrument.
|
private |
|
overridevirtual |
Create a view for the model.
Implements lmms::Plugin.
|
overridevirtual |
Can be called if a file matching supportedFileTypes should be loaded/processed with the help of this plugin
Reimplemented from lmms::Plugin.
|
privateslot |
| void lmms::OpulenzInstrument::loadPatch | ( | const unsigned char | inst[14] | ) |
|
overridevirtual |
Implements lmms::SerializingObject.
|
overridevirtual |
Implements lmms::SerializingObject.
|
overridevirtual |
Reimplemented from lmms::Instrument.
|
private |
|
private |
|
privateslot |
|
overridevirtual |
Implements lmms::SerializingObject.
|
private |
| void lmms::OpulenzInstrument::tuneEqual | ( | int | center, |
| float | Hz ) |
|
privateslot |
|
staticprivate |
| FloatModel lmms::OpulenzInstrument::feedback_mdl |
| BoolModel lmms::OpulenzInstrument::fm_mdl |
|
private |
|
private |
| IntModel lmms::OpulenzInstrument::m_patchModel |
| FloatModel lmms::OpulenzInstrument::op1_a_mdl |
| FloatModel lmms::OpulenzInstrument::op1_d_mdl |
| BoolModel lmms::OpulenzInstrument::op1_ksr_mdl |
| FloatModel lmms::OpulenzInstrument::op1_lvl_mdl |
| FloatModel lmms::OpulenzInstrument::op1_mul_mdl |
| BoolModel lmms::OpulenzInstrument::op1_perc_mdl |
| FloatModel lmms::OpulenzInstrument::op1_r_mdl |
| FloatModel lmms::OpulenzInstrument::op1_s_mdl |
| FloatModel lmms::OpulenzInstrument::op1_scale_mdl |
| BoolModel lmms::OpulenzInstrument::op1_trem_mdl |
| BoolModel lmms::OpulenzInstrument::op1_vib_mdl |
| BoolModel lmms::OpulenzInstrument::op1_w0_mdl |
| BoolModel lmms::OpulenzInstrument::op1_w1_mdl |
| BoolModel lmms::OpulenzInstrument::op1_w2_mdl |
| BoolModel lmms::OpulenzInstrument::op1_w3_mdl |
| IntModel lmms::OpulenzInstrument::op1_waveform_mdl |
| FloatModel lmms::OpulenzInstrument::op2_a_mdl |
| FloatModel lmms::OpulenzInstrument::op2_d_mdl |
| BoolModel lmms::OpulenzInstrument::op2_ksr_mdl |
| FloatModel lmms::OpulenzInstrument::op2_lvl_mdl |
| FloatModel lmms::OpulenzInstrument::op2_mul_mdl |
| BoolModel lmms::OpulenzInstrument::op2_perc_mdl |
| FloatModel lmms::OpulenzInstrument::op2_r_mdl |
| FloatModel lmms::OpulenzInstrument::op2_s_mdl |
| FloatModel lmms::OpulenzInstrument::op2_scale_mdl |
| BoolModel lmms::OpulenzInstrument::op2_trem_mdl |
| BoolModel lmms::OpulenzInstrument::op2_vib_mdl |
| BoolModel lmms::OpulenzInstrument::op2_w0_mdl |
| BoolModel lmms::OpulenzInstrument::op2_w1_mdl |
| BoolModel lmms::OpulenzInstrument::op2_w2_mdl |
| BoolModel lmms::OpulenzInstrument::op2_w3_mdl |
| IntModel lmms::OpulenzInstrument::op2_waveform_mdl |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| BoolModel lmms::OpulenzInstrument::trem_depth_mdl |
|
private |
| BoolModel lmms::OpulenzInstrument::vib_depth_mdl |
|
private |
|
private |