feat(tracker): add panic button to quickly disable the sound & show when synth crashes

This commit is contained in:
vsariola
2021-02-10 21:59:29 +02:00
parent 33bf5ebd49
commit 35d2ff6308
3 changed files with 46 additions and 9 deletions

View File

@ -60,6 +60,7 @@ type Tracker struct {
SongLength *NumberInput
SaveSongFileBtn *widget.Clickable
FileMenuBtn *widget.Clickable
PanicBtn *widget.Clickable
FileMenuVisible bool
ParameterSliders []*widget.Float
ParameterList *layout.List
@ -550,6 +551,7 @@ func New(audioContext sointu.AudioContext, synthService sointu.SynthService) *Tr
AddUnitBtn: new(widget.Clickable),
DeleteUnitBtn: new(widget.Clickable),
ClearUnitBtn: new(widget.Clickable),
PanicBtn: new(widget.Clickable),
UnitDragList: &DragList{List: &layout.List{Axis: layout.Vertical}},
setPlaying: make(chan bool),
rowJump: make(chan int),