mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(sointu): rewrote sequencer to add support for keyjazzing
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user