mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-18 16:49:06 -05:00
draft multicore processing
This commit is contained in:
parent
c583156d1b
commit
7f03664870
5
song.go
5
song.go
@ -293,7 +293,10 @@ func (l Score) LengthInRows() int {
|
||||
|
||||
// Copy makes a deep copy of a Score.
|
||||
func (s *Song) Copy() Song {
|
||||
return Song{BPM: s.BPM, RowsPerBeat: s.RowsPerBeat, Score: s.Score.Copy(), Patch: s.Patch.Copy()}
|
||||
ret := *s
|
||||
ret.Score = s.Score.Copy()
|
||||
ret.Patch = s.Patch.Copy()
|
||||
return ret
|
||||
}
|
||||
|
||||
// Assuming 44100 Hz playback speed, return the number of samples of each row of
|
||||
|
||||
Reference in New Issue
Block a user