mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-25 18:00:37 -04:00
There is a new "sync" opcode that saves the top-most signal every 256 samples to the new "syncBuffer" output. Additionally, you can enable saving the current fractional row as sync[0], avoiding calculating the beat in the shader, but also calculating the beat correctly when the beat is modulated.
24 lines
529 B
Go
24 lines
529 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/vsariola/sointu/oto"
|
|
"github.com/vsariola/sointu/tracker/gioui"
|
|
"github.com/vsariola/sointu/vm/compiler/bridge"
|
|
)
|
|
|
|
func main() {
|
|
audioContext, err := oto.NewContext()
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
os.Exit(1)
|
|
}
|
|
defer audioContext.Close()
|
|
synthService := bridge.BridgeService{}
|
|
// TODO: native track does not support syncing at the moment (which is why
|
|
// we pass nil), as the native bridge does not support sync data
|
|
gioui.Main(audioContext, synthService, nil)
|
|
}
|