Skip to content

Instantly share code, notes, and snippets.

@bjorn-nesby
Last active May 10, 2016 21:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bjorn-nesby/388b90863b11f9ec59cf to your computer and use it in GitHub Desktop.
This set is a demonstration of message routing in xRules
-----------------------------------------------------------
-- Ruleset definition for xRules
-- More info @ http://www.renoise.com/tools/xrules
-----------------------------------------------------------
return {
osc_enabled = false,
manage_voices = false,
description = "This set is a demonstration of message routing in xRules. It will accept any MIDI input and route notes into Renoise (→ Notes) while sending all other messages to the output of your choice (→ Other). Notice how MIDI input is disabled for the rules receiving input - otherwise, they would also process normal MIDI input. \n",
{
osc_pattern = {
pattern_in = "",
pattern_out = "",
},
name = "Input",
actions = {
{
route_message = "Current Ruleset:→ Notes",
},
{
route_message = "Current Ruleset:→ Other",
},
},
conditions = {},
match_any = true,
midi_enabled = true,
},
{
osc_pattern = {
pattern_in = "",
pattern_out = "",
},
name = "→ Notes",
actions = {
{
output_message = "internal_raw",
},
},
conditions = {
{
message_type = {
equal_to = "note_on",
},
},
{
2,
},
{
message_type = {
equal_to = "note_off",
},
},
},
match_any = true,
midi_enabled = false,
},
{
osc_pattern = {
pattern_in = "",
pattern_out = "",
},
name = "→ Other",
actions = {
{
set_port_name = "loopMIDI Port",
},
{
output_message = "external_midi",
},
},
conditions = {
{
message_type = {
not_equal_to = "note_on",
},
},
{
message_type = {
not_equal_to = "note_off",
},
},
},
match_any = true,
midi_enabled = false,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment