mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): add new instrument & new track buttons
This commit is contained in:
@ -241,6 +241,14 @@ func (s *Song) FirstTrackVoice(track int) int {
|
||||
return ret
|
||||
}
|
||||
|
||||
func (s *Song) TotalTrackVoices() int {
|
||||
ret := 0
|
||||
for _, t := range s.Tracks {
|
||||
ret += t.NumVoices
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
// TBD: Where shall we put methods that work on pure domain types and have no dependencies
|
||||
// e.g. Validate here
|
||||
func (s *Song) Validate() error {
|
||||
|
Reference in New Issue
Block a user