mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
Fix bug in song.go: the note was pulled from the song data incorrectly.
This commit is contained in:
parent
debeaa181c
commit
f495b0575a
@ -108,7 +108,8 @@ func (s *Song) Render() ([]float32, error) {
|
|||||||
patternRow := row % s.PatternRows()
|
patternRow := row % s.PatternRows()
|
||||||
pattern := row / s.PatternRows()
|
pattern := row / s.PatternRows()
|
||||||
for t := range s.Tracks {
|
for t := range s.Tracks {
|
||||||
note := s.Patterns[pattern][patternRow]
|
patternIndex := s.Tracks[t].Sequence[pattern]
|
||||||
|
note := s.Patterns[patternIndex][patternRow]
|
||||||
if note == 1 { // anything but hold causes an action.
|
if note == 1 { // anything but hold causes an action.
|
||||||
continue // TODO: can hold be actually something else than 1?
|
continue // TODO: can hold be actually something else than 1?
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user