x32

package module
v0.0.0-...-ad1a39a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

x32

Messing around with Behringer X32 OSC and Reaper in Golang.

Notes

Track colour/icon hints

Set trigger words and associated colours/icons in the config file. Reaper sends a default "Track " name if you leave the track name empty, but setting the track name in Reaper to whitespace only text will cause the associted scribble pad to be turned black.

Reaper/X32 track mapping

Set track mapping in config file.

Reaper OSC config

You should configure an OSC devide in the Reaper preferences, use the provided OSC config file: TODO

place the file in the reaper OSC config directory (...), and ...

If your network supports it (test and see!), try setting the max packet size to 50000 in the Reaper OSC configuration (TODO pic).

Thoughts

Stuff to do:

  • proxy between x32 and Reaper OSC + Track mapping
    • FX control mapping
    • auto icon/colour on x32<
    • button > /action mapping
    • ...
      • bus sends (volume/pan)
      • detect reconnects and refresh
      • FQ show UI/view button

Documentation

Index

Constants

View Source
const (
	NeutronEqProp = iota
	NeutronEqBell
	NeutronEqBandShelf
	NeutronEqAnalogLowLowShelf
	NeutronEqBaxLowShelf
	NeutronEqVintageLowShelf
	NeutronEqAnalogHighLowShelf
	NeutronEqBaxHighShelf
	NeutronEqVintageHighShelf
	NeutronEqFlatLowPass
	NeutronEqResonantLowPass
	NeutronEqFlatHighPass
	NeutronEqResonantHighPass
	NeutronEqMax float32 = 12.0
)
View Source
const (
	OFF int32 = iota
	RD
	GN
	YE
	BL
	MG
	CY
	WH
	OFFi
	RDi
	GNi
	YEi
	BLi
	MGi
	CYi
	WHi
)

Variables

This section is empty.

Functions

func FloatToInt

func FloatToInt(a interface{}) (int32, error)

func IntToFloat

func IntToFloat(a interface{}) (float32, error)

func ListenAndServeStatus

func ListenAndServeStatus(listenAddr string, s *state) error

func NewExactDispatcher

func NewExactDispatcher() osc.Dispatcher

func NotInt

func NotInt(a interface{}) (int32, error)

Types

type Client

type Client interface {
	Send(osc.Packet) error
}

type ExactDispatcher

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

func (*ExactDispatcher) AddMsgHandler

func (s *ExactDispatcher) AddMsgHandler(addr string, f osc.HandlerFunc) error

func (*ExactDispatcher) Dispatch

func (s *ExactDispatcher) Dispatch(packet osc.Packet)

type Proxy

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

func NewProxy

func NewProxy(config ProxyConfig) (*Proxy, error)

func (*Proxy) ListenAndServe

func (p *Proxy) ListenAndServe() error

type ProxyConfig

type ProxyConfig struct {
	ListenAddress string `yaml:"listenAddress"`
	ReaperAddress string `yaml:"reaperAddress"`
	X32Address    string `yaml:"x32Address"`

	Mapping map[string]string `yaml:"mapping"`

	NameHints map[string]string `yaml:"nameHints"`

	FxMap  map[string]map[string]map[string]int32 `yaml:"fxMap"`
	FxType string                                 `yaml:"fxType"`
}

type UDPClient

type UDPClient struct {
	Conn *net.UDPConn
}

func (*UDPClient) Send

func (c *UDPClient) Send(p osc.Packet) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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