refactor(vm): rename Encode to NewBytecode

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-19 10:32:34 +03:00
parent 01bf409929
commit 9f7bbce761
4 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ func Synth(patch sointu.Patch, bpm int) (*NativeSynth, error) {
if n := patch.NumDelayLines(); n > 64 {
return nil, fmt.Errorf("native bridge has currently a hard limit of 64 delaylines; patch uses %v", n)
}
comPatch, err := vm.Encode(patch, vm.AllFeatures{}, bpm)
comPatch, err := vm.NewBytecode(patch, vm.AllFeatures{}, bpm)
if err != nil {
return nil, fmt.Errorf("error compiling patch: %v", err)
}
@ -120,7 +120,7 @@ func (bridgesynth *NativeSynth) Update(patch sointu.Patch, bpm int) error {
if n := patch.NumDelayLines(); n > 64 {
return fmt.Errorf("native bridge has currently a hard limit of 64 delaylines; patch uses %v", n)
}
comPatch, err := vm.Encode(patch, vm.AllFeatures{}, bpm)
comPatch, err := vm.NewBytecode(patch, vm.AllFeatures{}, bpm)
if err != nil {
return fmt.Errorf("error compiling patch: %v", err)
}