mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
Fix bug in song.go: len(s.Patterns) should have been len(s.Tracks).
This commit is contained in:
parent
470ba28592
commit
debeaa181c
@ -42,7 +42,7 @@ func (s *Song) Validate() error {
|
||||
return errors.New("Every pattern should have the same length")
|
||||
}
|
||||
}
|
||||
for i := range s.Tracks[:len(s.Patterns)-1] {
|
||||
for i := range s.Tracks[:len(s.Tracks)-1] {
|
||||
if len(s.Tracks[i].Sequence) != len(s.Tracks[i+1].Sequence) {
|
||||
return errors.New("Every track should have the same sequence length")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user