Пример #1
0
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)
}
Пример #2
0
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)
}
Пример #3
0
func sendDelayMessage(client *osc.Client, value int) {
	msg := osc.NewMessage("/instrument/delay")
	msg.Append(int32(value))
	//fmt.Println("sending delay", value)
	client.Send(msg)
}
Пример #4
0
func testMessage(client *osc.Client) {
	msg := osc.NewMessage("/metro")
	client.Send(msg)
}
Пример #5
0
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)
}