-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hello everyone, I’m trying to connect Sardine to Pure Data. I was reading the documentation and many things aren’t very clear to me. After a quick look with ChatGPT, I came to the conclusion that this works:
`
out = OSCHandler(ip="127.0.0.1", port=9001, name="pd", ahead_amount=0.0, loop=osc_loop)
bowl.add_handler(out)
clock.tempo = 120
player = out.send_raw
@swim
def sequ2(p=0.5, i=0):
out.send_raw('/note', [ P('C3@penta!1 G1@penta!2', i) , 127, 2, 100] ) #pitch, vel, chan, gate(ms)
again(sequ2, p=0.5, i=i+1)
silence()
`
It works fine, but I’m not sure if this is the correct way to do it. I wouldn’t want to rewrite what’s already been created. Could anyone share an example of how it should look according to the official documentation? Thanks a lot.
