client

package module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client models a connection to a running scsynth server.

func NewClient

func NewClient(local, scsynth string) (*Client, error)

NewClient creates a new sc client.

func (*Client) FreeAll

func (c *Client) FreeAll(ctx context.Context, gids ...int) error

FreeAll frees all nodes from scsynth.

func (*Client) FreeGroup

func (c *Client) FreeGroup(ctx context.Context, gid int) error

FreeGroup frees a group from scsynth.

func (*Client) FreeNode

func (c *Client) FreeNode(ctx context.Context, id int) error

FreeNode frees a node from scsynth.

func (*Client) Play

func (c *Client) Play(ctx context.Context, name string, params []string) error

Play plays a synthdef.

func (*Client) Send

func (c *Client) Send(ctx context.Context, name string) error

Send sends a synthdef to scsynth.

Directories

Path Synopsis
cmd
scc
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL