Skip to content

Provide amy.get_synth_config() #566

@dpwe

Description

@dpwe

We now have a C function that diffs the oscs of a current synth against the default osc state to yield a series of events that will restore that config.

We should provide a Python wrapper. It's clumsy to return the whole amy_event blobs, so we should add a function that converts each event to a wire code string (with sprint_event()) before returning.

Then we can add a Python wrapper that handles the prefixing and merging of the strings to make complete wire commands to setup synths, or define user-defined patches. E.g. wire_string = amy.get_synth_config(synth=1, target_patch=1024). Then, in this case, amy.send_raw(wire_string) would set up patch 1024 to reflect the current synth 1 config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions