func sendMelodyMessage(client *osc.Client, level int, pitch int, offbeat int, instrument string) { msg := osc.NewMessage("/instrument/" + instrument) msg.Append(int32(level)) msg.Append(int32(pitch)) msg.Append(int32(offbeat)) client.Send(msg) }
func sendMelodyMessage(client *osc.Client, level int, speed int, offbeat int, instrument string) { msg := osc.NewMessage("/instrument/" + instrument) fmt.Println("sending", level, ",", speed, ",", offbeat, "to", instrument) msg.Append(int32(level)) msg.Append(int32(speed)) client.Send(msg) }
func sendDelayMessage(client *osc.Client, value int) { msg := osc.NewMessage("/instrument/delay") msg.Append(int32(value)) //fmt.Println("sending delay", value) client.Send(msg) }
func testMessage(client *osc.Client) { msg := osc.NewMessage("/metro") client.Send(msg) }
func sendMessage(client *osc.Client, level int, offbeat int, instrument string) { fmt.Println("sending:", level, ",", offbeat, "to:", instrument) msg := osc.NewMessage("/instrument/" + instrument) msg.Append(int32(level)) client.Send(msg) }