Skip to content

Question: Is Sardine useful for this non-live coding use case? #274

@rvega

Description

@rvega

Hi.

I'm trying to prototype an idea and maybe Sardine will be very useful.

In short: Can I send a running instance of Sardine some "instructions" from a python script instead of from a text editor?? If so, is there a documented API for that?
And the other way around? Can I send messages from sardine to my python scripts, for example when a MIDI event is received by Sardine?

Longer: I have a GUI built with DearPyGui. This GUI calls some plain python classes that generate some rhythmic patterns in
Sardine Pattern Language, Ziffers, or Vortex. It's the same to me right now. Then, I'd somehow send those patterns to different instruments in Sardine (bass drum, snare, etc.) and hear how it sounds.
Also, I'd like to have MIDI input from a HW controller. This MIDI data would be processed by Sardine, to alter the timbre and the rhythmic patterns, and also send messages somehow to the DearPyGui (a message thread, a FIFO, or something along those lines?).

Or maybe it makes more sense to start my python GUI as a separate app altogether and communicate via OSC with sardine??? In this case, is there an "API" or a known trick to communicate whole patterns over OSC??

Any input is appreciated :)

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