VGTuning a class for keeing the tuning of gamelan sounds,

an retuning them while playing . 


VGTuning is part of the vgg library by Julian Rohrhuber, Alberto de Campo, Rainer Schuetz, 2007/8.

 

For rendering to sound see VGSound,

rendering by synthesis see VGSynth,

for sample-based playback, see VGSamp, 

and for network output e.g. to PureData, see VGPD - (needs rework atm).



// VGTuning assumes there is a folder next to the 'vgg' folder called 'vgg_synthData', 

// which contains some info files, and a collection of samples from the KUG gamelan.

// These info files are: 


// a  list of all the sonator names to be used

VGTuning.sonatorListFilename; // "sonatorNames_gamKUG.txt";


// analysis data for all the sonators containing data for partial synthesis,

// done by Franz Zotter

VGTuning.synthDataFilename; // "synthData_gamKUG.txt";


// optionally, a file with amplitude compensation ('ampComp') 

// and perceived root frequency data for all sonators. 

// this file is usually made by listening and writing up the results.

VGTuning.balanceFilename; // "balanceData_gamKUG.txt";


// Because the samples taken from the KUG gamelan are not complete, some substitutions

// have to be made. To make these transparent, they are done in a special function:


VGTuning.synthDataFixFunc;


// this function is automatically loaded from a path when VGTuning initialises.

VGTuning.synthDataFixFuncFilename;


// initialising VGTuning  requires the server to be booted: 

s.boot; 

VGTuning.init; 

// this creates spaces prepared for two preloaded tunings; 

// these keep notename and rawname (a file ID) for all the sonators in the gamelan.

VGTuning.tunings;

VGTuning.tunings[\neutral][\Kendhang];

VGTuning.pelog;

VGTuning.slendro[\PekingA].keys

VGTuning.pelog[\Kenong];



// VGTuning prepares a large nuber of control busses for all the partials of every note 

// of every instrument. These are only used for pelog and slendro instruments; 

// neutral instruments are assumed not to be retuned.

VGTuning.mulTrees;


// continue with VGTuningGui and VGSound.