mirror of
				https://github.com/vsariola/sointu.git
				synced 2025-10-30 23:45:53 -04:00 
			
		
		
		
	feat(sointu): add SynthService for recompiling the synth when needed
This commit is contained in:
		| @ -6,6 +6,7 @@ import ( | ||||
|  | ||||
| 	"gioui.org/app" | ||||
| 	"gioui.org/unit" | ||||
| 	"github.com/vsariola/sointu/bridge" | ||||
| 	"github.com/vsariola/sointu/oto" | ||||
| 	"github.com/vsariola/sointu/tracker" | ||||
| ) | ||||
| @ -17,12 +18,13 @@ func main() { | ||||
| 		os.Exit(1) | ||||
| 	} | ||||
| 	defer audioContext.Close() | ||||
| 	synthService := bridge.BridgeService{} | ||||
| 	go func() { | ||||
| 		w := app.NewWindow( | ||||
| 			app.Size(unit.Dp(800), unit.Dp(600)), | ||||
| 			app.Title("Sointu Tracker"), | ||||
| 		) | ||||
| 		t := tracker.New(audioContext) | ||||
| 		t := tracker.New(audioContext, synthService) | ||||
| 		defer t.Close() | ||||
| 		if err := t.Run(w); err != nil { | ||||
| 			fmt.Println(err) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user