VGSound rendering gamelan data to sound,
with different synthesis variants
VGSound is part of the VGLibrary by Julian Rohrhuber, Alberto de Campo, Rainer Schuetz, 2007/8.
For rendering by synthesis see also VGSynth,
for sample-based playback, see also VGSamp.
// VGSound initialises all sound engines.
// this can take ca. 30-40 seconds, and
// posts much detailed info.
VGSound.startUp;
// no sampler, faster loading
VGSound.startUp(loadSamp: false);
// test that everthing is fine
VGSound.loaded;
// VGSound has a convenvience method to play sounds quickly,
// and debug info for it.
*play (laras, synthDef, event)
VGSound.play;
// play all instruments/sonators for one tuning:
VGSound.play(\slendro);
VGSound.play(\pelog);
VGSound.play(\neutral);
// use specific synthesis variants:
VGSound.play(\pelog, \vgSampDyn); // sampling, retunable
VGSound.play(\pelog, \vgSampFix); // sampling fixed params - e.g. for drums.
VGSound.play(\pelog, \vgAddiAr); // additive synthesis, full resolution
VGSound.play(\pelog, \vgAddiKr); // additive, slightly cheaper envelope
VGSound.play(\pelog, \vgRingz); // ringing filters, no attack modeling
VGSound.play(\pelog, \vgFormlet); // ringing filters with modeled attack - not tuned well yet.
// look up all variants:
VGSound.synthEngines.keys.postcs;
// play a specific instrument
VGSound.play(\slendro, \vgSampDyn, (instKey: \BonangBar));
VGSound.play(\slendro, event: (instKey: \BonangBar));
VGSound.play(\slendro, event: (instKey: \BonangPan));
VGSound.play(\pelog, event: (instKey: \BonangPan));
// play a specific note:
VGSound.play(\pelog, event: (instKey: \BonangPan, noteKey: \56));
// extensive tests
VGSound.eventFor().play; // rest
VGSound.eventFor(()).play; // rest
VGSound.eventFor((instKey: \BonangBar)).play; // rest
// correct
VGSound.playbackSettings[\BonangBar].put(\mute, true);
VGSound.eventFor((instKey: \BonangBar, noteKey: \56)).play;
VGSound.playbackSettings[\BonangBar].put(\mute, false); // rest, because muted
VGSound.eventFor((instKey: \BonangBar, noteKey: \56)).play;
VGSound.playbackSettings[\PekingA].put(\solo, true);
VGSound.eventFor((instKey: \BonangBar, noteKey: \56)).play; // rest because others are soloed
VGSound.playbackSettings[\PekingA].put(\solo, false);
// overwriting VGMixer/playbackSettings value for synthDef
VGSound.eventFor((synthDef: \vgSampDyn, instKey: \BonangBar, noteKey: \56)).play;
VGSound.eventFor((synthDef: \vgAddiKr, instKey: \BonangBar, noteKey: \56)).play;
VGSound.eventFor((amp: 0.2, synthDef: \vgAddiAr, instKey: \BonangBar, noteKey: \56, sustain: 20)).play;
VGSound.eventFor((instKey: \Kendhang, noteKey: \k_tapRight)).play;
VGSound.eventFor((instKey: \Kendhang, noteKey: \k_tak)).play; // still broken
VGSound.eventFor((instKey: \Kendhang, noteKey: \c_dhen)).play; // still broken
// remove direct drums names, or leave them in?
VGSound.eventFor((instKey: \Ciblon, noteKey: \tapRight, amp: 10)).play;
VGSound.eventFor((laras: \neutral, instKey: \Ciblon, noteKey: \tapRight)).play;
VGSound.eventFor((laras: \pelog, instKey: \BonangBar, \noteKey: \56)).play;
VGSound.eventFor((laras: \slendro, instKey: \BonangBar, \noteKey: \56)).play;