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

@ -68,7 +68,7 @@ type bytecodeBuilder struct {
Bytecode
}
func Encode(patch sointu.Patch, featureSet FeatureSet, bpm int) (*Bytecode, error) {
func NewBytecode(patch sointu.Patch, featureSet FeatureSet, bpm int) (*Bytecode, error) {
if patch.NumVoices() > 32 {
return nil, fmt.Errorf("Sointu does not support more than 32 concurrent voices; patch uses %v", patch.NumVoices())
}