mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-03 17:18:20 -04:00
fix(tracker): when creating a new track, a pattern full of noteoffs was created
Creating such patterns is unnecessary and was a relic of the past. We can leave the order completely uninitialized and let the user fill it as needed. Related to #54.
This commit is contained in:
parent
f9225d70a9
commit
adc12dde4f
@ -192,7 +192,7 @@ func (m *Model) AddTrack(after bool) {
|
|||||||
copy(newTracks[m.cursor.Track+1:], m.song.Score.Tracks[m.cursor.Track:])
|
copy(newTracks[m.cursor.Track+1:], m.song.Score.Tracks[m.cursor.Track:])
|
||||||
newTracks[m.cursor.Track] = sointu.Track{
|
newTracks[m.cursor.Track] = sointu.Track{
|
||||||
NumVoices: 1,
|
NumVoices: 1,
|
||||||
Patterns: [][]byte{make([]byte, m.song.Score.RowsPerPattern)},
|
Patterns: [][]byte{},
|
||||||
}
|
}
|
||||||
m.song.Score.Tracks = newTracks
|
m.song.Score.Tracks = newTracks
|
||||||
m.clampPositions()
|
m.clampPositions()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user