MuseScore  3.4
Music composition and notation
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Ms::Channel Class Reference

#include <instrument.h>

Collaboration diagram for Ms::Channel:
Collaboration graph
[legend]

Public Types

enum  A : char {
  A::HBANK, A::LBANK, A::PROGRAM, A::VOLUME,
  A::PAN, A::CHORUS, A::REVERB, A::INIT_COUNT
}
 
enum  Prop : char {
  Prop::VOLUME, Prop::PAN, Prop::CHORUS, Prop::REVERB,
  Prop::NAME, Prop::DESCR, Prop::PROGRAM, Prop::BANK,
  Prop::COLOR, Prop::SOLOMUTE, Prop::SOLO, Prop::MUTE,
  Prop::SYNTI, Prop::CHANNEL, Prop::USER_BANK_CONTROL
}
 

Public Member Functions

std::vector< MidiCoreEvent > & initList () const
 
QString name () const
 
void setName (const QString &value)
 
QString descr () const
 
void setDescr (const QString &value)
 
QString synti () const
 
void setSynti (const QString &value)
 
int color () const
 
void setColor (int value)
 
char volume () const
 
void setVolume (char value)
 
char pan () const
 
void setPan (char value)
 
char chorus () const
 
void setChorus (char value)
 
char reverb () const
 
void setReverb (char value)
 
int program () const
 
void setProgram (int value)
 
int bank () const
 
void setBank (int value)
 
int channel () const
 
void setChannel (int value)
 
bool soloMute () const
 
void setSoloMute (bool value)
 
bool mute () const
 
void setMute (bool value)
 
bool solo () const
 
void setSolo (bool value)
 
bool userBankController () const
 
void setUserBankController (bool val)
 
 Channel ()
 
void write (XmlWriter &, const Part *part) const
 
void read (XmlReader &, Part *part)
 
void updateInitList () const
 
bool operator== (const Channel &c)
 
void addListener (ChannelListener *l)
 
void removeListener (ChannelListener *l)
 
void switchExpressive (Synthesizer *synth, bool expressive, bool force=false)
 

Public Attributes

QList< NamedEventListmidiActions
 
QList< MidiArticulationarticulation
 

Static Public Attributes

static const char * DEFAULT_NAME = "normal"
 
static constexpr char defaultVolume = 100
 

Private Member Functions

void firePropertyChanged (Channel::Prop prop)
 

Private Attributes

QString _name
 
QString _descr
 
int _color
 
QString _synti
 
char _volume
 
char _pan
 
char _chorus
 
char _reverb
 
int _program
 
int _bank
 
int _channel { 0 }
 
bool _soloMute
 
bool _mute
 
bool _solo
 
bool _userBankController = false
 
bool _switchedToExpressive = false
 
std::vector< MidiCoreEvent_init
 
bool _mustUpdateInit = true
 
Notifier< Channel::Prop_notifier
 

Static Private Attributes

static const int DEFAULT_COLOR = 0x3399ff
 

Member Enumeration Documentation

◆ A

enum Ms::Channel::A : char
strong
Enumerator
HBANK 
LBANK 
PROGRAM 
VOLUME 
PAN 
CHORUS 
REVERB 
INIT_COUNT 

◆ Prop

enum Ms::Channel::Prop : char
strong
Enumerator
VOLUME 
PAN 
CHORUS 
REVERB 
NAME 
DESCR 
PROGRAM 
BANK 
COLOR 
SOLOMUTE 
SOLO 
MUTE 
SYNTI 
CHANNEL 
USER_BANK_CONTROL 

Constructor & Destructor Documentation

◆ Channel()

Channel::Channel ( )

Member Function Documentation

◆ addListener()

void Channel::addListener ( ChannelListener l)

◆ bank()

int Ms::Channel::bank ( ) const
inline

◆ channel()

int Ms::Channel::channel ( ) const
inline

◆ chorus()

char Ms::Channel::chorus ( ) const
inline

◆ color()

int Ms::Channel::color ( ) const
inline

◆ descr()

QString Ms::Channel::descr ( ) const
inline

◆ firePropertyChanged()

void Ms::Channel::firePropertyChanged ( Channel::Prop  prop)
inlineprivate

◆ initList()

std::vector< MidiCoreEvent > & Channel::initList ( ) const

◆ mute()

bool Ms::Channel::mute ( ) const
inline

◆ name()

QString Ms::Channel::name ( ) const
inline

◆ operator==()

bool Ms::Channel::operator== ( const Channel c)
inline

◆ pan()

char Ms::Channel::pan ( ) const
inline

◆ program()

int Ms::Channel::program ( ) const
inline

◆ read()

void Channel::read ( XmlReader e,
Part part 
)

◆ removeListener()

void Channel::removeListener ( ChannelListener l)

◆ reverb()

char Ms::Channel::reverb ( ) const
inline

◆ setBank()

void Channel::setBank ( int  value)

◆ setChannel()

void Channel::setChannel ( int  value)

◆ setChorus()

void Channel::setChorus ( char  value)

◆ setColor()

void Channel::setColor ( int  value)

◆ setDescr()

void Channel::setDescr ( const QString &  value)

◆ setMute()

void Channel::setMute ( bool  value)

◆ setName()

void Channel::setName ( const QString &  value)

◆ setPan()

void Channel::setPan ( char  value)

◆ setProgram()

void Channel::setProgram ( int  value)

◆ setReverb()

void Channel::setReverb ( char  value)

◆ setSolo()

void Channel::setSolo ( bool  value)

◆ setSoloMute()

void Channel::setSoloMute ( bool  value)

◆ setSynti()

void Channel::setSynti ( const QString &  value)

◆ setUserBankController()

void Channel::setUserBankController ( bool  val)

◆ setVolume()

void Channel::setVolume ( char  value)

◆ solo()

bool Ms::Channel::solo ( ) const
inline

◆ soloMute()

bool Ms::Channel::soloMute ( ) const
inline

◆ switchExpressive()

void Channel::switchExpressive ( Synthesizer synth,
bool  expressive,
bool  force = false 
)

◆ synti()

QString Ms::Channel::synti ( ) const
inline

◆ updateInitList()

void Channel::updateInitList ( ) const

◆ userBankController()

bool Ms::Channel::userBankController ( ) const
inline

◆ volume()

char Ms::Channel::volume ( ) const
inline

◆ write()

void Channel::write ( XmlWriter xml,
const Part part 
) const

Member Data Documentation

◆ _bank

int Ms::Channel::_bank
private

◆ _channel

int Ms::Channel::_channel { 0 }
private

◆ _chorus

char Ms::Channel::_chorus
private

◆ _color

int Ms::Channel::_color
private

◆ _descr

QString Ms::Channel::_descr
private

◆ _init

std::vector<MidiCoreEvent> Ms::Channel::_init
mutableprivate

◆ _mustUpdateInit

bool Ms::Channel::_mustUpdateInit = true
mutableprivate

◆ _mute

bool Ms::Channel::_mute
private

◆ _name

QString Ms::Channel::_name
private

◆ _notifier

Notifier<Channel::Prop> Ms::Channel::_notifier
private

◆ _pan

char Ms::Channel::_pan
private

◆ _program

int Ms::Channel::_program
private

◆ _reverb

char Ms::Channel::_reverb
private

◆ _solo

bool Ms::Channel::_solo
private

◆ _soloMute

bool Ms::Channel::_soloMute
private

◆ _switchedToExpressive

bool Ms::Channel::_switchedToExpressive = false
private

◆ _synti

QString Ms::Channel::_synti
private

◆ _userBankController

bool Ms::Channel::_userBankController = false
private

◆ _volume

char Ms::Channel::_volume
private

◆ articulation

QList<MidiArticulation> Ms::Channel::articulation

◆ DEFAULT_COLOR

const int Ms::Channel::DEFAULT_COLOR = 0x3399ff
staticprivate

◆ DEFAULT_NAME

const char * Channel::DEFAULT_NAME = "normal"
static

◆ defaultVolume

constexpr char Ms::Channel::defaultVolume = 100
static

◆ midiActions

QList<NamedEventList> Ms::Channel::midiActions

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