Documentation
¶
Index ¶
- func DbToLinear(db float64) float64
- func FaderFloatToInt(level float64) int16
- func GetMidiInputs() []string
- func GetMidiOutputs() []string
- func InitInterp()
- func InitMcu(fMcu chan interface{}, fObs chan interface{})
- func IntToFaderFloat(faderVal int16) float64
- func LinearToDb(linear float64) float64
- func MapToRange(value, fromMin, fromMax, toMin, toMax float64) float64
- func ShortenText(input string) string
- type McuState
- func (m *McuState) SendLed(num byte, state bool)
- func (m *McuState) SetAssignText(text []rune)
- func (m *McuState) SetChannelText(fader byte, text string, lower bool)
- func (m *McuState) SetFaderLevel(fader byte, level float64)
- func (m *McuState) SetFaderTouched(fader byte, touched bool)
- func (m *McuState) SetMeter(fader byte, value float64)
- func (m *McuState) SetMonitorState(fader byte, state string)
- func (m *McuState) SetMuteState(fader byte, state bool)
- func (m *McuState) SetSelectState(fader byte, state bool)
- func (m *McuState) SetTrackEnabledState(track byte, state bool)
- func (m *McuState) UpdateTouch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DbToLinear ¶
DbToLinear wandelt einen Dezibelwert in einen linearen Faktor um.
func FaderFloatToInt ¶
func InitInterp ¶
func InitInterp()
prepares the interpolation for the mackie fader to obs fader translation
func IntToFaderFloat ¶
func LinearToDb ¶
LinearToDb wandelt einen linearen Faktor in Dezibel um.
func MapToRange ¶
func ShortenText ¶
Types ¶
type McuState ¶
type McuState struct { // TODO: combine FaderLevels []int16 FaderLevelsBuffered []float64 FaderTouch []bool MeterLevels []byte FaderTouchTimeout []time.Time LedStates map[byte]bool VPotLedStates map[byte]byte Text string Assign []rune Debug bool }
func NewMcuState ¶
func NewMcuState() *McuState
func (*McuState) SetAssignText ¶
func (*McuState) SetChannelText ¶
func (*McuState) SetFaderLevel ¶
func (*McuState) SetFaderTouched ¶
func (*McuState) SetMonitorState ¶
func (*McuState) SetMuteState ¶
func (*McuState) SetSelectState ¶ added in v0.2.9
func (*McuState) SetTrackEnabledState ¶ added in v0.3.0
func (*McuState) UpdateTouch ¶ added in v0.3.6
func (m *McuState) UpdateTouch()
Click to show internal directories.
Click to hide internal directories.