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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/a/u/audiostream-HEAD/examples/puredata/pdpad/main.py   audiostream(Download)
from audiostream.sources.puredata import PatchSource
 
from pylibpd import libpd_float, libpd_bang
 
CHANNELS = 2
    def on_touch_down(self, touch):
        root = self.get_root_window()
        libpd_float('x', min(1.0, float(touch.x / root.width) + .33))
        libpd_float('y', min(1.0, float(touch.y / root.height) + .33))
        libpd_bang('trigger')