|
LMMS
|
#include <Microtonal.h>
Public Member Functions | |
| Microtonal () | |
| ~Microtonal () | |
| void | defaults () |
| float | getnotefreq (int note, int keyshift) const |
| unsigned char | getoctavesize () const |
| void | tuningtoline (int n, char *line, int maxn) |
| int | loadscl (const char *filename) |
| int | loadkbm (const char *filename) |
| int | texttotunings (const char *text) |
| void | texttomapping (const char *text) |
| void | add2XML (XMLwrapper *xml) const |
| void | getfromXML (XMLwrapper *xml) |
| int | saveXML (const char *filename) const |
| int | loadXML (const char *filename) |
| bool | operator== (const Microtonal µ) const |
| bool | operator!= (const Microtonal µ) const |
Public Attributes | |
| unsigned char | Pinvertupdown |
| unsigned char | Pinvertupdowncenter |
| unsigned char | Penabled |
| unsigned char | PAnote |
| float | PAfreq |
| unsigned char | Pscaleshift |
| unsigned char | Pfirstkey |
| unsigned char | Plastkey |
| unsigned char | Pmiddlenote |
| unsigned char | Pmapsize |
| unsigned char | Pmappingenabled |
| short int | Pmapping [128] |
| unsigned char | Pglobalfinedetune |
| unsigned char * | Pname |
| unsigned char * | Pcomment |
Private Member Functions | |
| int | linetotunings (unsigned int nline, const char *line) |
| int | loadline (FILE *file, char *line) |
Private Attributes | |
| unsigned char | octavesize |
| struct { | |
| unsigned char type | |
| float tuning | |
| unsigned int x1 | |
| unsigned int x2 | |
| } | octave [MAX_OCTAVE_SIZE] |
| struct { | |
| unsigned char type | |
| float tuning | |
| unsigned int x1 | |
| unsigned int x2 | |
| } | tmpoctave [MAX_OCTAVE_SIZE] |
Tuning settings and microtonal capabilities
| Microtonal::Microtonal | ( | ) |
Constructor
| Microtonal::~Microtonal | ( | ) |
Destructor
| void Microtonal::add2XML | ( | XMLwrapper * | xml | ) | const |
| void Microtonal::defaults | ( | ) |
| void Microtonal::getfromXML | ( | XMLwrapper * | xml | ) |
Calculates the frequency for a given note
| unsigned char Microtonal::getoctavesize | ( | ) | const |
Return the current octave size
|
private |
| bool Microtonal::operator!= | ( | const Microtonal & | micro | ) | const |
| bool Microtonal::operator== | ( | const Microtonal & | micro | ) | const |
Load text into the internal mappings
Load text into the internal tunings
| struct { ... } Microtonal::octave[MAX_OCTAVE_SIZE] |
|
private |
| float Microtonal::PAfreq |
the frequency of the "A" note
| unsigned char Microtonal::PAnote |
the note of "A" key
| unsigned char* Microtonal::Pcomment |
Comment about the tuning
| unsigned char Microtonal::Penabled |
0 for 12 key temperate scale, 1 for microtonal
| unsigned char Microtonal::Pfirstkey |
| unsigned char Microtonal::Pglobalfinedetune |
Fine detune to be applied to all notes
| unsigned char Microtonal::Pinvertupdown |
if the keys are inversed (the pitch is lower to keys from the right direction)
| unsigned char Microtonal::Pinvertupdowncenter |
the central key of the inversion
| unsigned char Microtonal::Plastkey |
| short int Microtonal::Pmapping[128] |
Mapping (keys)
| unsigned char Microtonal::Pmappingenabled |
Mapping ON/OFF
| unsigned char Microtonal::Pmapsize |
Map size
| unsigned char Microtonal::Pmiddlenote |
The middle note where scale degree 0 is mapped to
| unsigned char* Microtonal::Pname |
Name of Microtonal tuning
| unsigned char Microtonal::Pscaleshift |
if the scale is "tuned" to a note, you can tune to other note
| struct { ... } Microtonal::tmpoctave[MAX_OCTAVE_SIZE] |
| float Microtonal::tuning |
| unsigned char Microtonal::type |
| unsigned int Microtonal::x1 |
| unsigned int Microtonal::x2 |