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

#include <SlicerT.h>

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

Public Slots

void updateFile (QString file)
void updateSlices ()

Signals

void isPlaying (float current, float start, float end)
Signals inherited from lmms::Model
void dataChanged ()
void dataUnchanged ()
void propertiesChanged ()

Public Member Functions

 SlicerT (InstrumentTrack *instrumentTrack)
void playNote (NotePlayHandle *handle, SampleFrame *workingBuffer) override
void deleteNotePluginData (NotePlayHandle *handle) override
void saveSettings (QDomDocument &document, QDomElement &element) override
void loadSettings (const QDomElement &element) override
void loadFile (const QString &file) override
void findSlices ()
void findBPM ()
QString getSampleName ()
QString nodeName () const override
gui::PluginView * instantiateView (QWidget *parent) override
 Create a view for the model.
std::vector< Note > getMidi ()
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
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_noteThreshold
FloatModel m_fadeOutFrames
IntModel m_originalBPM
ComboBoxModel m_sliceSnap
BoolModel m_enableSync
Sample m_originalSample
std::vector< float > m_slicePoints
InstrumentTrack * m_parentTrack

Friends

class gui::SlicerTView
class gui::SlicerTWaveform

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*>
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

◆ SlicerT()

lmms::SlicerT::SlicerT ( InstrumentTrack * instrumentTrack)

Member Function Documentation

◆ deleteNotePluginData()

void lmms::SlicerT::deleteNotePluginData ( NotePlayHandle * handle)
overridevirtual

Reimplemented from lmms::Instrument.

◆ findBPM()

void lmms::SlicerT::findBPM ( )

◆ findSlices()

void lmms::SlicerT::findSlices ( )

◆ getMidi()

std::vector< Note > lmms::SlicerT::getMidi ( )

◆ getSampleName()

QString lmms::SlicerT::getSampleName ( )
inline

◆ instantiateView()

gui::PluginView * lmms::SlicerT::instantiateView ( QWidget * parent)
overridevirtual

Create a view for the model.

Implements lmms::Plugin.

◆ isPlaying

void lmms::SlicerT::isPlaying ( float current,
float start,
float end )
signal

◆ loadFile()

void lmms::SlicerT::loadFile ( const QString & file)
overridevirtual

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::SlicerT::loadSettings ( const QDomElement & element)
overridevirtual

◆ nodeName()

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

◆ playNote()

void lmms::SlicerT::playNote ( NotePlayHandle * handle,
SampleFrame * workingBuffer )
overridevirtual

Reimplemented from lmms::Instrument.

◆ saveSettings()

void lmms::SlicerT::saveSettings ( QDomDocument & document,
QDomElement & element )
overridevirtual

◆ updateFile

void lmms::SlicerT::updateFile ( QString file)
slot

◆ updateSlices

void lmms::SlicerT::updateSlices ( )
slot

◆ gui::SlicerTView

friend class gui::SlicerTView
friend

◆ gui::SlicerTWaveform

friend class gui::SlicerTWaveform
friend

Member Data Documentation

◆ m_enableSync

BoolModel lmms::SlicerT::m_enableSync
private

◆ m_fadeOutFrames

FloatModel lmms::SlicerT::m_fadeOutFrames
private

◆ m_noteThreshold

FloatModel lmms::SlicerT::m_noteThreshold
private

◆ m_originalBPM

IntModel lmms::SlicerT::m_originalBPM
private

◆ m_originalSample

Sample lmms::SlicerT::m_originalSample
private

◆ m_parentTrack

InstrumentTrack* lmms::SlicerT::m_parentTrack
private

◆ m_slicePoints

std::vector<float> lmms::SlicerT::m_slicePoints
private

◆ m_sliceSnap

ComboBoxModel lmms::SlicerT::m_sliceSnap
private

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