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

#include <model.h>

Collaboration diagram for Model:
Collaboration graph
[legend]

Public Member Functions

 Model (Aeolus *aeolus, uint16_t *midimap, const char *stops, const char *instr, const char *waves)
 
virtual ~Model ()
 
void set_ifelm (int g, int i, int m)
 
void clr_group (int g)
 
void init ()
 

Private Member Functions

void init_audio ()
 
void init_iface ()
 
void init_ranks (int comm)
 
void proc_rank (int g, int i, int comm)
 
void set_mconf (int i, uint16_t *d)
 
void get_state (uint32_t *bits)
 
void set_state (int bank, int pres)
 
void midi_off (int mask)
 
void retune (float freq, int temp)
 
void recalc (int g, int i)
 
void save ()
 
Rankfind_rank (int g, int i)
 
int read_instr ()
 
int write_instr ()
 
int get_preset (int bank, int pres, uint32_t *bits)
 
void set_preset (int bank, int pres, uint32_t *bits)
 
void ins_preset (int bank, int pres, uint32_t *bits)
 
void del_preset (int bank, int pres)
 
int read_presets ()
 
bool writePresets ()
 

Private Attributes

Aeolus_aeolus
 
uint16_t * _midimap
 
const char * _stops
 
char _instr [1024]
 
const char * _waves
 
bool _ready
 
Asect _asect [NASECT]
 
Keybd _keybd [NKEYBD]
 
Divis _divis [NDIVIS]
 
Group _group [NGROUP]
 
int _nasect
 
int _ndivis
 
int _nkeybd
 
int _ngroup
 
float _fbase
 
int _itemp
 
int _count
 
int _bank
 
int _pres
 
int _client
 
int _portid
 
int _sc_cmode
 
int _sc_group
 
Chconf _chconf [8]
 
Preset_preset [NBANK][NPRES]
 

Constructor & Destructor Documentation

◆ Model()

Model::Model ( Aeolus aeolus,
uint16_t *  midimap,
const char *  stops,
const char *  instr,
const char *  waves 
)

◆ ~Model()

virtual Model::~Model ( )
inlinevirtual

Member Function Documentation

◆ clr_group()

void Model::clr_group ( int  g)

◆ del_preset()

void Model::del_preset ( int  bank,
int  pres 
)
private

◆ find_rank()

Rank * Model::find_rank ( int  g,
int  i 
)
private

◆ get_preset()

int Model::get_preset ( int  bank,
int  pres,
uint32_t *  bits 
)
private

◆ get_state()

void Model::get_state ( uint32_t *  bits)
private

◆ init()

void Model::init ( )

◆ init_audio()

void Model::init_audio ( )
private

◆ init_iface()

void Model::init_iface ( )
private

◆ init_ranks()

void Model::init_ranks ( int  comm)
private

◆ ins_preset()

void Model::ins_preset ( int  bank,
int  pres,
uint32_t *  bits 
)
private

◆ midi_off()

void Model::midi_off ( int  mask)
private

◆ proc_rank()

void Model::proc_rank ( int  g,
int  i,
int  comm 
)
private

◆ read_instr()

int Model::read_instr ( )
private

◆ read_presets()

int Model::read_presets ( )
private

◆ recalc()

void Model::recalc ( int  g,
int  i 
)
private

◆ retune()

void Model::retune ( float  freq,
int  temp 
)
private

◆ save()

void Model::save ( )
private

◆ set_ifelm()

void Model::set_ifelm ( int  g,
int  i,
int  m 
)

◆ set_mconf()

void Model::set_mconf ( int  i,
uint16_t *  d 
)
private

◆ set_preset()

void Model::set_preset ( int  bank,
int  pres,
uint32_t *  bits 
)
private

◆ set_state()

void Model::set_state ( int  bank,
int  pres 
)
private

◆ write_instr()

int Model::write_instr ( )
private

◆ writePresets()

bool Model::writePresets ( )
private

Member Data Documentation

◆ _aeolus

Aeolus* Model::_aeolus
private

◆ _asect

Asect Model::_asect[NASECT]
private

◆ _bank

int Model::_bank
private

◆ _chconf

Chconf Model::_chconf[8]
private

◆ _client

int Model::_client
private

◆ _count

int Model::_count
private

◆ _divis

Divis Model::_divis[NDIVIS]
private

◆ _fbase

float Model::_fbase
private

◆ _group

Group Model::_group[NGROUP]
private

◆ _instr

char Model::_instr[1024]
private

◆ _itemp

int Model::_itemp
private

◆ _keybd

Keybd Model::_keybd[NKEYBD]
private

◆ _midimap

uint16_t* Model::_midimap
private

◆ _nasect

int Model::_nasect
private

◆ _ndivis

int Model::_ndivis
private

◆ _ngroup

int Model::_ngroup
private

◆ _nkeybd

int Model::_nkeybd
private

◆ _portid

int Model::_portid
private

◆ _pres

int Model::_pres
private

◆ _preset

Preset* Model::_preset[NBANK][NPRES]
private

◆ _ready

bool Model::_ready
private

◆ _sc_cmode

int Model::_sc_cmode
private

◆ _sc_group

int Model::_sc_group
private

◆ _stops

const char* Model::_stops
private

◆ _waves

const char* Model::_waves
private

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