def __call__(self, value):
self._mixer.set(self._channel, value)
- def assignController(self, controller, title, channel, min=-12.0, max=6.0):
+ def assignController(self, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]):
controller.assign(title,
self.ParamSetter(self, channel),
self.ParamGetter(self, channel),
Events.Event(self._context, channel),
- min, max, [ 0.0 ])
+ min, max, stops)
class AssignController(Actions.Action):
- def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0):
+ def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]):
Actions.Action.__init__(self, name)
self._mixer = mixer
self._controller = controller
self._channel = channel
self._min = min
self._max = max
+ self._stops = stops
def __call__(self, binding):
self._mixer.assignController(self._controller,
self._title,
self._channel,
self._min,
- self._max)
+ self._max,
+ self._stops)
class MuteChannel(Actions.Action):