generatorTypeToInt function
Implementation
int generatorTypeToInt(GeneratorType t) {
switch (t){
case GeneratorType.startAddressOffset: return 0;
case GeneratorType.endAddressOffset: return 1;
case GeneratorType.startLoopAddressOffset: return 2;
case GeneratorType.endLoopAddressOffset: return 3;
case GeneratorType.startAddressCoarseOffset: return 4;
case GeneratorType.modulationLfoToPitch: return 5;
case GeneratorType.vibratoLfoToPitch: return 6;
case GeneratorType.modulationEnvelopeToPitch: return 7;
case GeneratorType.initialFilterCutoffFrequency: return 8;
case GeneratorType.initialFilterQ: return 9;
case GeneratorType.modulationLfoToFilterCutoffFrequency: return 10;
case GeneratorType.modulationEnvelopeToFilterCutoffFrequency: return 11;
case GeneratorType.endAddressCoarseOffset: return 12;
case GeneratorType.modulationLfoToVolume: return 13;
case GeneratorType.unused1: return 14;
case GeneratorType.chorusEffectsSend: return 15;
case GeneratorType.reverbEffectsSend: return 16;
case GeneratorType.pan: return 17;
case GeneratorType.unused2: return 18;
case GeneratorType.unused3: return 19;
case GeneratorType.unused4: return 20;
case GeneratorType.delayModulationLfo: return 21;
case GeneratorType.frequencyModulationLfo: return 22;
case GeneratorType.delayVibratoLfo: return 23;
case GeneratorType.frequencyVibratoLfo: return 24;
case GeneratorType.delayModulationEnvelope: return 25;
case GeneratorType.attackModulationEnvelope: return 26;
case GeneratorType.holdModulationEnvelope: return 27;
case GeneratorType.decayModulationEnvelope: return 28;
case GeneratorType.sustainModulationEnvelope: return 29;
case GeneratorType.releaseModulationEnvelope: return 30;
case GeneratorType.keyNumberToModulationEnvelopeHold: return 31;
case GeneratorType.keyNumberToModulationEnvelopeDecay: return 32;
case GeneratorType.delayVolumeEnvelope: return 33;
case GeneratorType.attackVolumeEnvelope: return 34;
case GeneratorType.holdVolumeEnvelope: return 35;
case GeneratorType.decayVolumeEnvelope: return 36;
case GeneratorType.sustainVolumeEnvelope: return 37;
case GeneratorType.releaseVolumeEnvelope: return 38;
case GeneratorType.keyNumberToVolumeEnvelopeHold: return 39;
case GeneratorType.keyNumberToVolumeEnvelopeDecay: return 40;
case GeneratorType.instrument: return 41;
case GeneratorType.reserved1: return 42;
case GeneratorType.keyRange: return 43;
case GeneratorType.velocityRange: return 44;
case GeneratorType.startLoopAddressCoarseOffset: return 45;
case GeneratorType.keyNumber: return 46;
case GeneratorType.velocity: return 47;
case GeneratorType.initialAttenuation: return 48;
case GeneratorType.reserved2: return 49;
case GeneratorType.endLoopAddressCoarseOffset: return 50;
case GeneratorType.coarseTune: return 51;
case GeneratorType.fineTune: return 52;
case GeneratorType.sampleID: return 53;
case GeneratorType.sampleModes: return 54;
case GeneratorType.reserved3: return 55;
case GeneratorType.scaleTuning: return 56;
case GeneratorType.exclusiveClass: return 57;
case GeneratorType.overridingRootKey: return 58;
case GeneratorType.unused5: return 59;
case GeneratorType.unusedEnd: return 60;
}
}