Next / Previous / Contents / TCC Help System / NM Tech homepage

19.1. ParamSlider.get(): Retrieve the current parameter value

This method returns the parameter value in the range [0,MAX_PARAM. The actual parameter value lives in the self.__scaleVar control variable, but it is an 8-bit value, so we must convert it.

huey
# - - -   P a r a m S l i d e r . g e t

    def get ( self ):
        """Return self's parameter value in [0,MAX_PARAM].
        """
        return  self.__scaleVar.get() << 8