Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/a/b/AbletonLive9_RemoteScripts-HEAD/QuNeo/SpecialTransportComponent.py   AbletonLive9_RemoteScripts(Download)
from _Framework.InputControlElement import InputControlElement
from MIDI_Map import TEMPO_TOP
from MIDI_Map import TEMPO_BOTTOM
class SpecialTransportComponent(TransportComponent):
    def _tempo_value(self, value):
        if not self._tempo_control != None:
            raise AssertionError
            raise value in range(128) or AssertionError
            fraction = self.is_enabled() and (TEMPO_TOP - TEMPO_BOTTOM) / 127.0
            self.song().tempo = fraction * value + TEMPO_BOTTOM