feat(sointu, vm): implement pure-Go interpreter for bytecode

The old "native" compiler bridged version is now started with cmd/sointu-nativetrack,
while the new pure-Go bytecode implemented bytecode interpreter is started with
cmd/sointu-track

Thus, you do not need any of the CMake / cgo stuff to run cmd/sointu-track
This commit is contained in:
vsariola
2021-03-02 20:47:17 +02:00
parent a035845b81
commit 6d2b63a5e9
13 changed files with 891 additions and 58 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/vsariola/sointu/oto"
"github.com/vsariola/sointu/tracker/gioui"
"github.com/vsariola/sointu/vm/compiler/bridge"
"github.com/vsariola/sointu/vm"
)
func main() {
@ -16,6 +16,6 @@ func main() {
os.Exit(1)
}
defer audioContext.Close()
synthService := bridge.BridgeService{}
synthService := vm.SynthService{}
gioui.Main(audioContext, synthService)
}