mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-20 22:14:35 -04:00
feat(tracker): buttons for loudness weighting and peak oversampling
Closes #186
This commit is contained in:
parent
805b98524c
commit
5fd78d8362
@ -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} }
|
||||
|
Reference in New Issue
Block a user