MuseScore  3.4
Music composition and notation
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ZInstrument Class Reference

#include <instrument.h>

Collaboration diagram for ZInstrument:
Collaboration graph
[legend]

Public Member Functions

 ZInstrument (Zerberus *)
 
 ~ZInstrument ()
 
int refCount () const
 
void setRefCount (int val)
 
bool load (const QString &)
 
int program () const
 
QString name () const
 
QString path () const
 
const std::list< Zone * > & zones () const
 
std::list< Zone * > & zones ()
 
SamplereadSample (const QString &s, MQZipReader *uz)
 
void addZone (Zone *z)
 
void addRegion (SfzRegion &)
 
int getSetCC (int v)
 

Static Public Attributes

static QByteArray buf
 
static int idx
 

Private Member Functions

bool loadFromFile (const QString &)
 
bool loadSfz (const QString &)
 
bool loadFromDir (const QString &)
 
bool read (const QByteArray &, MQZipReader *, const QString &path)
 

Private Attributes

Zerberuszerberus
 
int _refCount
 
QString _name
 
int _program
 
QString instrumentPath
 
std::list< Zone * > _zones
 
int _setcc [128]
 

Constructor & Destructor Documentation

◆ ZInstrument()

ZInstrument::ZInstrument ( Zerberus z)

◆ ~ZInstrument()

ZInstrument::~ZInstrument ( )

Member Function Documentation

◆ addRegion()

void ZInstrument::addRegion ( SfzRegion r)

◆ addZone()

void ZInstrument::addZone ( Zone z)
inline

◆ getSetCC()

int ZInstrument::getSetCC ( int  v)
inline

◆ load()

bool ZInstrument::load ( const QString &  path)

◆ loadFromDir()

bool ZInstrument::loadFromDir ( const QString &  s)
private

◆ loadFromFile()

bool ZInstrument::loadFromFile ( const QString &  path)
private

◆ loadSfz()

bool ZInstrument::loadSfz ( const QString &  s)
private

◆ name()

QString ZInstrument::name ( ) const
inline

◆ path()

QString ZInstrument::path ( ) const
inline

◆ program()

int ZInstrument::program ( ) const
inline

◆ read()

bool ZInstrument::read ( const QByteArray &  buff,
MQZipReader *  ,
const QString &  path 
)
private

◆ readSample()

Sample * ZInstrument::readSample ( const QString &  s,
MQZipReader *  uz 
)

◆ refCount()

int ZInstrument::refCount ( ) const
inline

◆ setRefCount()

void ZInstrument::setRefCount ( int  val)
inline

◆ zones() [1/2]

const std::list<Zone*>& ZInstrument::zones ( ) const
inline

◆ zones() [2/2]

std::list<Zone*>& ZInstrument::zones ( )
inline

Member Data Documentation

◆ _name

QString ZInstrument::_name
private

◆ _program

int ZInstrument::_program
private

◆ _refCount

int ZInstrument::_refCount
private

◆ _setcc

int ZInstrument::_setcc[128]
private

◆ _zones

std::list<Zone*> ZInstrument::_zones
private

◆ buf

QByteArray ZInstrument::buf
static

◆ idx

int ZInstrument::idx
static

◆ instrumentPath

QString ZInstrument::instrumentPath
private

◆ zerberus

Zerberus* ZInstrument::zerberus
private

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