toProto method
Implementation
presets_pb.PresetParameters toProto() {
return presets_pb.PresetParameters(
ampGain: (ampGain * 1000).round(),
ampChannel: (ampChannel * 1000).round(),
bass: (bass * 1000).round(),
middle: (middle * 1000).round(),
treble: (treble * 1000).round(),
contour: (contour * 1000).round(),
volume: (volume * 1000).round(),
noiseGateThreshold: (noiseGateThreshold * 1000).round(),
noiseGateHysteresis: (noiseGateHysteresis * 1000).round(),
noiseGateAttack: (noiseGateAttack * 1000).round(),
noiseGateHold: (noiseGateHold * 1000).round(),
noiseGateRelease: (noiseGateRelease * 1000).round(),
noiseGateBypass: (noiseGateBypass * 1000).round(),
chorusRate: (chorusRate * 1000).round(),
chorusDepth: (chorusDepth * 1000).round(),
chorusMix: (chorusMix * 1000).round(),
chorusBypass: (chorusBypass * 1000).round(),
wahPosition: (wahPosition * 1000).round(),
wahVocal: (wahVocal * 1000).round(),
wahBypass: (wahBypass * 1000).round(),
);
}