feat(tracker): buttons for loudness weighting and peak oversampling

Closes #186
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-04-27 21:30:10 +03:00
parent 805b98524c
commit 5fd78d8362
7 changed files with 111 additions and 14 deletions

View File

@ -26,6 +26,7 @@ type (
Mute Model
Solo Model
LinkInstrTrack Model
Oversampling Model
)
func (v Bool) Toggle() {
@ -55,6 +56,7 @@ func (m *Model) UniquePatterns() *UniquePatterns { return (*UniquePatterns)(m)
func (m *Model) Mute() *Mute { return (*Mute)(m) }
func (m *Model) Solo() *Solo { return (*Solo)(m) }
func (m *Model) LinkInstrTrack() *LinkInstrTrack { return (*LinkInstrTrack)(m) }
func (m *Model) Oversampling() *Oversampling { return (*Oversampling)(m) }
// Panic methods
@ -136,6 +138,16 @@ func (m *Effect) setValue(val bool) {
}
func (m *Effect) Enabled() bool { return true }
// Oversampling methods
func (m *Oversampling) Bool() Bool { return Bool{m} }
func (m *Oversampling) Value() bool { return m.oversampling }
func (m *Oversampling) setValue(val bool) {
m.oversampling = val
trySend(m.broker.ToDetector, MsgToDetector{HasOversampling: true, Oversampling: val})
}
func (m *Oversampling) Enabled() bool { return true }
// UnitSearching methods
func (m *UnitSearching) Bool() Bool { return Bool{m} }