LMMS
Loading...
Searching...
No Matches
Microtonal Class Reference

#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 &micro) const
bool operator!= (const Microtonal &micro) 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]

Detailed Description

Tuning settings and microtonal capabilities

Constructor & Destructor Documentation

◆ Microtonal()

Microtonal::Microtonal ( )

Constructor

◆ ~Microtonal()

Microtonal::~Microtonal ( )

Destructor

Member Function Documentation

◆ add2XML()

void Microtonal::add2XML ( XMLwrapper * xml) const

◆ defaults()

void Microtonal::defaults ( )

◆ getfromXML()

void Microtonal::getfromXML ( XMLwrapper * xml)

◆ getnotefreq()

float Microtonal::getnotefreq ( int note,
int keyshift ) const

Calculates the frequency for a given note

◆ getoctavesize()

unsigned char Microtonal::getoctavesize ( ) const

Return the current octave size

◆ linetotunings()

int Microtonal::linetotunings ( unsigned int nline,
const char * line )
private

◆ loadkbm()

int Microtonal::loadkbm ( const char * filename)

load the mapping from .kbm file

◆ loadline()

int Microtonal::loadline ( FILE * file,
char * line )
private

◆ loadscl()

int Microtonal::loadscl ( const char * filename)

load the tunnings from a .scl file

◆ loadXML()

int Microtonal::loadXML ( const char * filename)

◆ operator!=()

bool Microtonal::operator!= ( const Microtonal & micro) const

◆ operator==()

bool Microtonal::operator== ( const Microtonal & micro) const

◆ saveXML()

int Microtonal::saveXML ( const char * filename) const

◆ texttomapping()

void Microtonal::texttomapping ( const char * text)

Load text into the internal mappings

Todo
better description

◆ texttotunings()

int Microtonal::texttotunings ( const char * text)

Load text into the internal tunings

Todo
better description

◆ tuningtoline()

void Microtonal::tuningtoline ( int n,
char * line,
int maxn )

Convert tunning to string

Member Data Documentation

◆ [struct]

struct { ... } Microtonal::octave[MAX_OCTAVE_SIZE]

◆ octavesize

unsigned char Microtonal::octavesize
private

◆ PAfreq

float Microtonal::PAfreq

the frequency of the "A" note

◆ PAnote

unsigned char Microtonal::PAnote

the note of "A" key

◆ Pcomment

unsigned char* Microtonal::Pcomment

Comment about the tuning

◆ Penabled

unsigned char Microtonal::Penabled

0 for 12 key temperate scale, 1 for microtonal

◆ Pfirstkey

unsigned char Microtonal::Pfirstkey

◆ Pglobalfinedetune

unsigned char Microtonal::Pglobalfinedetune

Fine detune to be applied to all notes

◆ Pinvertupdown

unsigned char Microtonal::Pinvertupdown

if the keys are inversed (the pitch is lower to keys from the right direction)

◆ Pinvertupdowncenter

unsigned char Microtonal::Pinvertupdowncenter

the central key of the inversion

◆ Plastkey

unsigned char Microtonal::Plastkey

◆ Pmapping

short int Microtonal::Pmapping[128]

Mapping (keys)

◆ Pmappingenabled

unsigned char Microtonal::Pmappingenabled

Mapping ON/OFF

◆ Pmapsize

unsigned char Microtonal::Pmapsize

Map size

◆ Pmiddlenote

unsigned char Microtonal::Pmiddlenote

The middle note where scale degree 0 is mapped to

◆ Pname

unsigned char* Microtonal::Pname

Name of Microtonal tuning

◆ Pscaleshift

unsigned char Microtonal::Pscaleshift

if the scale is "tuned" to a note, you can tune to other note

◆ [struct]

struct { ... } Microtonal::tmpoctave[MAX_OCTAVE_SIZE]

◆ tuning

float Microtonal::tuning

◆ type

unsigned char Microtonal::type

◆ x1

unsigned int Microtonal::x1

◆ x2

unsigned int Microtonal::x2

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