View Configgy_main.lua
1 2 3 4 5 6 7 8 9
--[[============================================================================
com.neurogami.Configgy.xrnx/main.lua
============================================================================]]--
 
package.path = os.currentdir() .. "../../UserConfig/?.lua;" .. package.path
 
local menu_name = "Main Menu:Tools:Neurogami Configgy"
 
-- http://forum.renoise.com/index.php/topic/38914-adding-song-notifiers-on-song-load/
View track_send_switch.lua
1 2 3 4 5 6 7 8 9 10
-- /song/track/XXX/send_switch
-- see http://neurogami.com/blog/neurogami-renoise-send-track-scripting-with-osc.html
add_track_action {
pattern = "/send_switch",
description = "Change the receiver of the track's send device.\n" ..
"Requires you follow a naming convention",
 
arguments = { argument("send_index", "number") },
 
handler = function(track_index, send_index)
View osc-server.rb
1 2 3 4 5 6 7 8 9
#!/usr/bin/env ruby
 
require 'osc-ruby'
include OSC
 
listen_on_port = 8000
last_msg = nil
 
warn "If you pass an arg it will be used as the port number instead of #{listen_on_port}"
View OscTeensyLibExample.ino
1 2 3 4 5 6 7 8 9 10
#include "RNXV.h"
#include "settings.h"
#include <OSCMessage.h>
 
int led = 13; // For Teensy 3.1
 
RNXV rnxv = RNXV();
String usbSerialBuffer = "";
 
String cmds1[] = {
View RNXV.cpp
1 2 3 4 5 6 7 8 9 10
// Origanally takne from https://github.com/asaeed/WiFiRobot
// which seems ot have been copied over from https://github.com/sparkfun/WiFly-Shield
// Licensed under the LGPL
// Modifications made by James Britt / Neurogami June 2014 to play nice with a Teensy 3.1 board
 
#include "Arduino.h"
#include "RNXV.h"
 
RNXV::RNXV() {
}
View catch-all-osc-server.rb
1 2 3 4 5 6 7 8 9
#!/usr/bin/env ruby
 
require 'osc-ruby'
include OSC
 
listen_on_port = 8000
last_msg = nil
 
warn "If you pass an arg it will be used as the port number instead of #{listen_on_port}"
View TeensyWiFlyRawOSc.ino
1 2 3 4 5 6 7 8 9 10
// <Arduino.h> is needed so that "settings.h" can refer to the String type.
// It just so happens that "RNXV.h" will load <Arduino.h> so we can skip
// the call here if we load "RNXV.h" first.
// #include <Arduino.h>
#include "RNXV.h"
#include "settings.h"
 
int led = 13; // For Teensy 3.1
 
int ts = 0;
View WiFlySerialSetup.ino
1 2 3 4 5 6 7 8 9 10
/*
An example sketch to show how to configure a WiFly RN XV with a Teensy 3.1.
For this example, the Teensy board was mounted on a breadboard, powered over USB.
Teensy GND and Vin are wired to + and - on the breadboard.
Teensy pins 7 and 8 (RX3 and TX3) are connected to the WiFly's pins 2 and 3 (TXD and RXD).
View make-averages.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
 
# Assumes you have ImageMagick installed
 
class MakeAverages
 
def initialize base_name, ext, grouping, prefix = 'avg_'
@base_name = base_name
@ext = ext
View handler_schedule_loop.lua
1 2 3 4 5 6 7 8 9 10
function clamp_value(value, min_value, max_value)
return math.min(max_value, math.max(value, min_value))
end
 
function handler_schedule_loop(args)
 
local rstart = tonumber(args[1])
local rend = tonumber(args[2])
 
local song = renoise.song
Something went wrong with that request. Please try again.