Skip to content

Instantly share code, notes, and snippets.

@zeffii
Last active December 27, 2015 03:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/7264092 to your computer and use it in GitHub Desktop.
Save zeffii/7264092 to your computer and use it in GitHub Desktop.
chuck to renoise
import time
from pythonosc import osc_message_builder
from pythonosc import udp_client
tick_duration = 0.565
ip = "127.0.0.1"
port = 6449
client = udp_client.UDPClient(ip, port)
osc_msg = osc_message_builder.OscMessageBuilder
instrument = -1
track = 0
note_val = 60
velocity = 90
note_out_list = [instrument, track, note_val, velocity]
for j in range(8):
msg = osc_msg(address = "/renoise/trigger/note_on")
for i in note_out_list:
msg.add_arg(i)
print(note_out_list)
msg = msg.build()
client.send(msg)
time.sleep(tick_duration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment