MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Attributes | Private Attributes | List of all members
Ms::Synthesizer Class Referenceabstract

#include <synthesizer.h>

Inheritance diagram for Ms::Synthesizer:
Inheritance graph
[legend]
Collaboration diagram for Ms::Synthesizer:
Collaboration graph
[legend]

Public Member Functions

 Synthesizer ()
 
virtual ~Synthesizer ()
 
virtual void init (float sr)
 
float sampleRate () const
 
virtual const char * name () const =0
 
virtual void setMasterTuning (double)
 
virtual double masterTuning () const
 
virtual bool loadSoundFonts (const QStringList &)=0
 
virtual bool addSoundFont (const QString &)
 
virtual bool removeSoundFont (const QString &)
 
virtual std::vector< SoundFontInfosoundFontsInfo () const =0
 
virtual void process (unsigned, float *, float *, float *)=0
 
virtual void play (const PlayEvent &)=0
 
virtual const QList< MidiPatch * > & getPatchInfo () const =0
 
virtual SynthesizerGroup state () const =0
 
virtual bool setState (const SynthesizerGroup &)=0
 
virtual void setValue (int, double)
 
virtual double value (int) const
 
void reset ()
 
bool active () const
 
void setActive (bool val=true)
 
virtual void allSoundsOff (int)
 
virtual void allNotesOff (int)
 
virtual SynthesizerGuigui ()
 

Protected Attributes

float _sampleRate
 
SynthesizerGui_gui
 

Private Attributes

bool _active
 

Constructor & Destructor Documentation

◆ Synthesizer()

Ms::Synthesizer::Synthesizer ( )
inline

◆ ~Synthesizer()

virtual Ms::Synthesizer::~Synthesizer ( )
inlinevirtual

Member Function Documentation

◆ active()

bool Ms::Synthesizer::active ( ) const
inline

◆ addSoundFont()

virtual bool Ms::Synthesizer::addSoundFont ( const QString &  )
inlinevirtual

Reimplemented in FluidS::Fluid, and Zerberus.

◆ allNotesOff()

virtual void Ms::Synthesizer::allNotesOff ( int  )
inlinevirtual

Reimplemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ allSoundsOff()

virtual void Ms::Synthesizer::allSoundsOff ( int  )
inlinevirtual

Reimplemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ getPatchInfo()

virtual const QList<MidiPatch*>& Ms::Synthesizer::getPatchInfo ( ) const
pure virtual

Implemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ gui()

virtual SynthesizerGui* Ms::Synthesizer::gui ( )
inlinevirtual

Reimplemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ init()

virtual void Ms::Synthesizer::init ( float  sr)
inlinevirtual

Reimplemented in FluidS::Fluid, and Aeolus.

◆ loadSoundFonts()

virtual bool Ms::Synthesizer::loadSoundFonts ( const QStringList &  )
pure virtual

Implemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ masterTuning()

virtual double Ms::Synthesizer::masterTuning ( ) const
inlinevirtual

Reimplemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ name()

virtual const char* Ms::Synthesizer::name ( ) const
pure virtual

Implemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ play()

virtual void Ms::Synthesizer::play ( const PlayEvent )
pure virtual

Implemented in FluidS::Fluid, Aeolus, and Zerberus.

◆ process()

virtual void Ms::Synthesizer::process ( unsigned  ,
float *  ,
float *  ,
float *   
)
pure virtual

Implemented in FluidS::Fluid, Aeolus, and Zerberus.

◆ removeSoundFont()

virtual bool Ms::Synthesizer::removeSoundFont ( const QString &  )
inlinevirtual

Reimplemented in FluidS::Fluid, and Zerberus.

◆ reset()

void Ms::Synthesizer::reset ( )
inline

◆ sampleRate()

float Ms::Synthesizer::sampleRate ( ) const
inline

◆ setActive()

void Ms::Synthesizer::setActive ( bool  val = true)
inline

◆ setMasterTuning()

virtual void Ms::Synthesizer::setMasterTuning ( double  )
inlinevirtual

Reimplemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ setState()

virtual bool Ms::Synthesizer::setState ( const SynthesizerGroup )
pure virtual

Implemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ setValue()

virtual void Ms::Synthesizer::setValue ( int  ,
double   
)
inlinevirtual

Reimplemented in Aeolus.

◆ soundFontsInfo()

virtual std::vector<SoundFontInfo> Ms::Synthesizer::soundFontsInfo ( ) const
pure virtual

Implemented in FluidS::Fluid, and Zerberus.

◆ state()

virtual SynthesizerGroup Ms::Synthesizer::state ( ) const
pure virtual

Implemented in FluidS::Fluid, Zerberus, and Aeolus.

◆ value()

virtual double Ms::Synthesizer::value ( int  ) const
inlinevirtual

Reimplemented in Aeolus.

Member Data Documentation

◆ _active

bool Ms::Synthesizer::_active
private

◆ _gui

SynthesizerGui* Ms::Synthesizer::_gui
protected

◆ _sampleRate

float Ms::Synthesizer::_sampleRate
protected

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