controller

package
v0.0.0-...-ac268a5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: LGPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	IsStarted() bool
	Start(deviceName string)
	Stop()

	SetNotify(n func(status.St, interface{}, error))

	GetCurrentDevice() string
	ListDevices() [][]string

	GetAmpType() []string
	GetPedalType() map[string][]string
	GetPod() *pod.Pod

	SetAmpActive(id uint32, active bool)
	SetAmpParameterValue(id uint32, pid uint32, value string) error
	SetAmpType(id uint32, name string)
	SetCurrentPresetName(name string)
	SetCabParameterValue(id uint32, pid uint32, value string) error
	SetCabType(id uint32, name string)
	SetDTClass(dtID int, value string) error
	SetDTClass2(ampID uint32, value string) error
	SetDTMode(dtID int, value string) error
	SetDTMode2(ampID uint32, value string) error
	SetDTTopology(dtID int, value string) error
	SetDTTopology2(ampID uint32, value string) error
	SetPedalActive(id uint32, active bool)
	SetPedalBoardItemActive(id uint32, active bool)
	SetPedalBoardItemParameterValue(id uint32, pid uint32, value string) error
	SetPedalBoardItemParameterValueMin(id uint32, pid uint32, value string) error
	SetPedalBoardItemParameterValueMax(id uint32, pid uint32, value string) error
	SetPedalBoardItemPosition(id uint32, pos uint16, posType uint8)
	SetPedalBoardItemType(id uint32, fxType string, fxModel string)
	SetPedalBoardParameterValue(pid uint32, value string) error
	SetPedalParameterValue(id uint32, pid uint32, value string) error
	SetPedalType(id uint32, fxType string, fxModel string)

	QueryAllPresets(async bool)
	QueryAllSets(async bool)
	QueryCurrentPreset(async bool)
	QueryCurrentPresetID(async bool)
	QueryCurrentSetID(async bool)
	QueryPreset(async bool, presetID uint16, setID uint16)
	ReloadPreset()
	SetPreset(presetID uint8, setID uint8)
	SavePreset()
}

func New

func New() Controller

Jump to

Keyboard shortcuts

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