+ def gain(self, gain) :
+ self._gain = gain
+ fluid_settings_setnum(self.settings, 'synth.gain', self._gain)
+
+ def inc_gain(self, step = 0.1) :
+ self._gain = self._gain + step
+ if self._gain > 5 :
+ self._gain = 5
+ self.gain(self._gain)
+
+ def dec_gain(self, step = 0.1) :
+ self._gain = self._gain - step
+ if self._gain < 0 :
+ self._gain = 0
+ self.gain(self._gain)
+