|
LMMS
|
#include <Master.h>
Public Member Functions | |
| Master () | |
| ~Master () | |
| int | saveXML (const char *filename) |
| void | add2XML (XMLwrapper *xml) |
| void | defaults () |
| int | loadXML (const char *filename) |
| void | applyparameters (bool lockmutex=true) |
| void | getfromXML (XMLwrapper *xml) |
| int | getalldata (char **data) |
| void | putalldata (char *data, int size) |
| bool | mutexLock (lockset request) |
| void | noteOn (char chan, char note, char velocity) |
| void | noteOff (char chan, char note) |
| void | polyphonicAftertouch (char chan, char note, char velocity) |
| void | setController (char chan, int type, int par) |
| void | setProgram (char chan, unsigned int pgm) |
| void | ShutUp () |
| void | vuUpdate (const float *outl, const float *outr) |
| void | AudioOut (float *outl, float *outr) |
| void | GetAudioOutSamples (size_t nsamples, unsigned samplerate, float *outl, float *outr) |
| void | partonoff (int npart, int what) |
| void | setPvolume (char Pvolume_) |
| void | setPkeyshift (char Pkeyshift_) |
| void | setPsysefxvol (int Ppart, int Pefx, char Pvol) |
| void | setPsysefxsend (int Pefxfrom, int Pefxto, char Pvol) |
| void | vuresetpeaks () |
| vuData | getVuData () |
Static Public Member Functions | |
| static Master & | getInstance () |
| static void | deleteInstance () |
Public Attributes | |
| int | shutup |
| class Part * | part [NUM_MIDI_PARTS] |
| unsigned char | Pvolume |
| unsigned char | Pkeyshift |
| unsigned char | Psysefxvol [NUM_SYS_EFX][NUM_MIDI_PARTS] |
| unsigned char | Psysefxsend [NUM_SYS_EFX][NUM_SYS_EFX] |
| class EffectMgr * | sysefx [NUM_SYS_EFX] |
| class EffectMgr * | insefx [NUM_INS_EFX] |
| Recorder | HDDRecorder |
| short int | Pinsparts [NUM_INS_EFX] |
| float | vuoutpeakpart [NUM_MIDI_PARTS] |
| unsigned char | fakepeakpart [NUM_MIDI_PARTS] |
| Controller | ctl |
| bool | swaplr |
| Microtonal | microtonal |
| Bank | bank |
| class FFTwrapper * | fft |
| std::mutex | mutex |
| std::mutex | vumutex |
Private Attributes | |
| vuData | vu |
| float | volume |
| float | sysefxvol [NUM_SYS_EFX][NUM_MIDI_PARTS] |
| float | sysefxsend [NUM_SYS_EFX][NUM_SYS_EFX] |
| int | keyshift |
| float * | bufl |
| float * | bufr |
| off_t | off |
| size_t | smps |
It sends Midi Messages to Parts, receives samples from parts, process them with system/insertion effects and mix them
| Master::Master | ( | ) |
Constructor TODO make private
| Master::~Master | ( | ) |
Destructor
| void Master::add2XML | ( | XMLwrapper * | xml | ) |
This adds the parameters to the XML data
| void Master::AudioOut | ( | float * | outl, |
| float * | outr ) |
Audio Output
| void Master::defaults | ( | ) |
|
static |
| int Master::getalldata | ( | char ** | data | ) |
get all data to a newly allocated array (used for VST)
| void Master::GetAudioOutSamples | ( | size_t | nsamples, |
| unsigned | samplerate, | ||
| float * | outl, | ||
| float * | outr ) |
Audio Output (for callback mode). This allows the program to be controled by an external program
| void Master::getfromXML | ( | XMLwrapper * | xml | ) |
|
static |
| vuData Master::getVuData | ( | ) |
loads all settings from a XML file
| bool Master::mutexLock | ( | lockset | request | ) |
| void Master::noteOff | ( | char | chan, |
| char | note ) |
| void Master::noteOn | ( | char | chan, |
| char | note, | ||
| char | velocity ) |
| void Master::polyphonicAftertouch | ( | char | chan, |
| char | note, | ||
| char | velocity ) |
put all data from the *data array to zynaddsubfx parameters (used for VST)
Saves all settings to a XML file
| void Master::setPkeyshift | ( | char | Pkeyshift_ | ) |
| void Master::setPvolume | ( | char | Pvolume_ | ) |
| void Master::ShutUp | ( | ) |
| void Master::vuresetpeaks | ( | ) |
| Bank Master::bank |
|
private |
|
private |
| Controller Master::ctl |
| unsigned char Master::fakepeakpart[NUM_MIDI_PARTS] |
| class FFTwrapper* Master::fft |
| Recorder Master::HDDRecorder |
| class EffectMgr* Master::insefx[NUM_INS_EFX] |
|
private |
| Microtonal Master::microtonal |
| std::mutex Master::mutex |
|
private |
| class Part* Master::part[NUM_MIDI_PARTS] |
parts
| short int Master::Pinsparts[NUM_INS_EFX] |
| unsigned char Master::Pkeyshift |
| unsigned char Master::Psysefxsend[NUM_SYS_EFX][NUM_SYS_EFX] |
| unsigned char Master::Psysefxvol[NUM_SYS_EFX][NUM_MIDI_PARTS] |
| unsigned char Master::Pvolume |
| int Master::shutup |
|
private |
| bool Master::swaplr |
| class EffectMgr* Master::sysefx[NUM_SYS_EFX] |
|
private |
|
private |
|
private |
|
private |
| std::mutex Master::vumutex |
| float Master::vuoutpeakpart[NUM_MIDI_PARTS] |