Last active
December 27, 2015 03:59
-
-
Save zeffii/7264092 to your computer and use it in GitHub Desktop.
chuck to renoise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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