Skip to content

Instantly share code, notes, and snippets.

View Neurogami's full-sized avatar

Neurogami Neurogami

View GitHub Profile
--[[============================================================================
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/
-- /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)
#!/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}"
#include "RNXV.h"
#include "settings.h"
#include <OSCMessage.h>
int led = 13; // For Teensy 3.1
RNXV rnxv = RNXV();
String usbSerialBuffer = "";
String cmds1[] = {
// 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() {
}
#!/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}"
// <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;
/*
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).
#!/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
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