feat(sointu): rewrote sequencer to add support for keyjazzing

This commit is contained in:
vsariola
2021-02-11 23:20:13 +02:00
parent b9c8218ca4
commit 10f53bdbf7
5 changed files with 272 additions and 153 deletions

View File

@ -304,6 +304,14 @@ func (s *Song) FirstTrackVoice(track int) int {
return ret
}
func (s *Song) FirstInstrumentVoice(instrument int) int {
ret := 0
for _, i := range s.Patch.Instruments[:instrument] {
ret += i.NumVoices
}
return ret
}
func (s *Song) TotalTrackVoices() int {
ret := 0
for _, t := range s.Tracks {