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

#include <channel.h>

Collaboration diagram for Channel:
Collaboration graph
[legend]

Public Member Functions

 Channel (Zerberus *, int idx)
 
void pitchBend (int)
 
void controller (int ctrl, int val)
 
ZInstrumentinstrument () const
 
void setInstrument (ZInstrument *i)
 
Zerberusmsynth () const
 
int sustain () const
 
float gain () const
 
float panLeftGain () const
 
float panRightGain () const
 
int idx () const
 
int getCtrl (int CTRL) const
 
void resetCC ()
 

Private Attributes

Zerberus_msynth
 
ZInstrument_instrument
 
float _gain
 
float _panLeftGain
 
float _panRightGain
 
float _midiVolume
 
char ctrl [128]
 
int _idx
 

Constructor & Destructor Documentation

◆ Channel()

Channel::Channel ( Zerberus ms,
int  idx 
)

Member Function Documentation

◆ controller()

void Channel::controller ( int  ctrl,
int  val 
)

◆ gain()

float Channel::gain ( ) const
inline

◆ getCtrl()

int Channel::getCtrl ( int  CTRL) const

◆ idx()

int Channel::idx ( ) const
inline

◆ instrument()

ZInstrument* Channel::instrument ( ) const
inline

◆ msynth()

Zerberus* Channel::msynth ( ) const
inline

◆ panLeftGain()

float Channel::panLeftGain ( ) const
inline

◆ panRightGain()

float Channel::panRightGain ( ) const
inline

◆ pitchBend()

void Channel::pitchBend ( int  )

◆ resetCC()

void Channel::resetCC ( )

◆ setInstrument()

void Channel::setInstrument ( ZInstrument i)
inline

◆ sustain()

int Channel::sustain ( ) const

Member Data Documentation

◆ _gain

float Channel::_gain
private

◆ _idx

int Channel::_idx
private

◆ _instrument

ZInstrument* Channel::_instrument
private

◆ _midiVolume

float Channel::_midiVolume
private

◆ _msynth

Zerberus* Channel::_msynth
private

◆ _panLeftGain

float Channel::_panLeftGain
private

◆ _panRightGain

float Channel::_panRightGain
private

◆ ctrl

char Channel::ctrl[128]
private

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