src/XSynth.cpp
/****************************************************************
 ** class XSynth
 **
 ** create a fluidsynth instance and load sondfont
 */
class XSynth
create a fluidsynth instance and load sondfont
class XSynth create a fluidsynth instance and load sondfont
XSynth::XSynth() {
    sf_id = -1;
    adriver = NULL;
    mdriver = NULL;
    synth = NULL;
    settings = NULL;
    for(int i = 0; i < 16; i++) {
        channel_instrument[i] = i;
    }
    reverb_on = 0;
    reverb_level = 0.7;
    reverb_width = 10.0;
    reverb_damp = 0.4;
    reverb_roomsize = 0.6;
    chorus_on = 0;
    chorus_type = 0;
    chorus_depth = 3.0;
    chorus_speed = 0.3;
    chorus_level = 3.0;
    chorus_voices = 3;
}
XSynth :: XSynth ( ) { sf_id = -1 ; adriver = NULL ; mdriver = NULL ; synth = NULL ; settings = NULL ; for ( int i = 0 ; i < 16 ; i ++ ) { channel_instrument [ i ] = i ; } reverb_on = 0 ; reverb_level = 0.7 ; reverb_width = 10.0 ; reverb_damp = 0.4 ; reverb_roomsize = 0.6 ; chorus_on = 0 ; chorus_type = 0 ; chorus_depth = 3.0 ; chorus_speed = 0.3 ; chorus_level = 3.0 ; chorus_voices = 3 ; }
class XSynth
 create a fluidsynth instance and load sondfont
class XSynth create a fluidsynth instance and load sondfont