INTERFACE 1000,100
VSTVAR 0,1,"VOLUME","",0,1,1
// Maximum modulation, with velocity = 127
VSTVAR 1,2,"MODULATION","",0,15,1
// Decay of the modulation: time that the waveform takes to become pure sinusoid
VSTVAR 2,20,"MODDCY","",1,300,0
// Second decay of the sound envelope
VSTVAR 3,90,"AMPDCY","",3,300,0
// Sustain between decays
VSTVAR 4,.5,"SUSTAIN1","",0,1,1
// Final sustain
VSTVAR 5,.02,"SUSTAIN2","",0,1,1
// Frequency multiplier of the modulator
VSTVAR 6,.4975,"FREQ.MUL","",.48,.52,1
// Release
VSTVAR 7,1,"RELEASE","",0,3,1
VSTVARS 8


//DEBUG 2

//QUALITY 4096, 7, 0, 1, 10


LAYER
// Modulator = <maximum modulation> * <velocity> * <envelope> * <sinusoid>
Modulator = OSCG("skk000S", MCC(601), MCC(606), .1, MCC(602), 0,MCC(607))

// Output = <volume> * GAIN * <modulated sinusoid>
OUT=OSCG("skf00PD", MCC(600), Modulator, .1,.1,MCC(604),MCC(603),MCC(605),MCC(607))
