Skip to content

OSC to Puredata question 😁 #273

@nucklearproject

Description

@nucklearproject

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions