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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/k/a/kamaelia-HEAD/Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Util/MusicTiming.py   kamaelia(Download)
            # Keep running events until the component is supposed to shutdown
            if self.dataReady("event"):
                if self.recv("event") == "Beat":
                    self.updateBeat()
            if self.dataReady("sync"):
                self.recv("sync")
        while 1:
            if self.dataReady("sync"):
                timing = self.recv("sync")
                self.__dict__.update(timing)
                break

src/k/a/kamaelia-HEAD/Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/SineSynth.py   kamaelia(Download)
    def main(self):
        while 1:
            if self.dataReady("event"):
                self.recv("event")
                sample, phase = self.generateSample(self.frequency,

src/k/a/kamaelia-HEAD/Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/RTOutput.py   kamaelia(Download)
                    while not self.io.needWrite() >= self.internalBufferSize:
                        time.sleep(0.001)
                    data = self.recv("inbox")
                    self.io.write(data)
                    # TODO: Maybe correct for the sleeping above here - test me