mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
refactor(vm): rename Encode to NewBytecode
This commit is contained in:
parent
01bf409929
commit
9f7bbce761
@ -88,7 +88,7 @@ success:
|
||||
}
|
||||
|
||||
func Synth(patch sointu.Patch, bpm int) (sointu.Synth, error) {
|
||||
bytecode, err := Encode(patch, AllFeatures{}, bpm)
|
||||
bytecode, err := NewBytecode(patch, AllFeatures{}, bpm)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error compiling %v", err)
|
||||
}
|
||||
@ -113,7 +113,7 @@ func (s *GoSynth) Release(voiceIndex int) {
|
||||
}
|
||||
|
||||
func (s *GoSynth) Update(patch sointu.Patch, bpm int) error {
|
||||
bytecode, err := Encode(patch, AllFeatures{}, bpm)
|
||||
bytecode, err := NewBytecode(patch, AllFeatures{}, bpm)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error compiling %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user