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

@ -87,7 +87,7 @@ func (com *Compiler) Song(song *sointu.Song) (map[string]string, error) {
}
features := vm.NecessaryFeaturesFor(song.Patch)
retmap := map[string]string{}
encodedPatch, err := vm.Encode(song.Patch, features, song.BPM)
encodedPatch, err := vm.NewBytecode(song.Patch, features, song.BPM)
if err != nil {
return nil, fmt.Errorf(`could not encode patch: %v`, err)
}