|
LMMS
|
#include <Microtonal.h>
Public Member Functions | |
| Microtonal (const int &gzip_compression) | |
| ~Microtonal () | |
| void | defaults () |
| float | getnotefreq (int note, int keyshift) const |
| unsigned char | getoctavesize () const |
| void | tuningtoline (int n, char *line, int maxn) |
| 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 |
| void | clone (Microtonal &m) |
Static Public Member Functions | |
| static int | loadscl (SclInfo &scl, const char *filename) |
| static int | loadkbm (KbmInfo &kbm, const char *filename) |
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 |
| char | Pname [MICROTONAL_MAX_NAME_LEN] |
| char | Pcomment [MICROTONAL_MAX_NAME_LEN] |
| unsigned char | octavesize |
| OctaveTuning | octave [MAX_OCTAVE_SIZE] |
Static Public Attributes | |
| static const rtosc::Ports | ports |
Private Member Functions | |
| void | apply (void) |
Static Private Member Functions | |
| static int | loadline (FILE *file, char *line) |
| static int | linetotunings (struct OctaveTuning &tune, const char *line) |
Private Attributes | |
| const int & | gzip_compression |
Tuning settings and microtonal capabilities
| Microtonal::~Microtonal | ( | ) |
Destructor
| void Microtonal::add2XML | ( | XMLwrapper & | xml | ) | const |
| void zyncarla::Microtonal::clone | ( | Microtonal & | m | ) |
| 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
|
staticprivate |
load the mapping from .kbm file
|
staticprivate |
load the tunnings from a .scl file
| 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
| OctaveTuning zyncarla::Microtonal::octave[MAX_OCTAVE_SIZE] |
| unsigned char zyncarla::Microtonal::octavesize |
| float zyncarla::Microtonal::PAfreq |
the frequency of the "A" note
| unsigned char zyncarla::Microtonal::PAnote |
the note of "A" key
| char zyncarla::Microtonal::Pcomment[MICROTONAL_MAX_NAME_LEN] |
Comment about the tuning
| unsigned char zyncarla::Microtonal::Penabled |
0 for 12 key temperate scale, 1 for microtonal
| unsigned char zyncarla::Microtonal::Pfirstkey |
| unsigned char zyncarla::Microtonal::Pglobalfinedetune |
Fine detune to be applied to all notes
| unsigned char zyncarla::Microtonal::Pinvertupdown |
if the keys are inversed (the pitch is lower to keys from the right direction)
| unsigned char zyncarla::Microtonal::Pinvertupdowncenter |
the central key of the inversion
| unsigned char zyncarla::Microtonal::Plastkey |
| short int zyncarla::Microtonal::Pmapping[128] |
Mapping (keys)
| unsigned char zyncarla::Microtonal::Pmappingenabled |
Mapping ON/OFF
| unsigned char zyncarla::Microtonal::Pmapsize |
Map size
| unsigned char zyncarla::Microtonal::Pmiddlenote |
The middle note where scale degree 0 is mapped to
| char zyncarla::Microtonal::Pname[MICROTONAL_MAX_NAME_LEN] |
Name of Microtonal tuning
|
static |
TODO Consider how much of this should really exist on the rt side of things. All the rt side needs is a function to map notes at various keyshifts to frequencies, which does not require this many parameters...
A good lookup table should be a good finalization of this
| unsigned char zyncarla::Microtonal::Pscaleshift |
if the scale is "tuned" to a note, you can tune to other note