Skip to content

Instantly share code, notes, and snippets.

View bjorn-nesby's full-sized avatar

bjorn-nesby

  • Berlin, Germany
View GitHub Profile
/*
Demonstrates an issue with certain aiff/wav files, where seeking can result in distorted output.
*/
#define MA_DEBUG_OUTPUT
#define MINIAUDIO_IMPLEMENTATION
#include <miniaudio.h>
#include <stdio.h>
@bjorn-nesby
bjorn-nesby / MIDIToTracks.lua
Created June 1, 2018 13:21
xRules rule: routing MIDI input to specific tracks, based on the note value
-----------------------------------------------------------
-- Ruleset definition for xRules
-- More info @ http://www.renoise.com/tools/xrules
-----------------------------------------------------------
return {
osc_enabled = false,
manage_voices = false,
description = "",
{
["actions"] = {
--[[============================================================================
-- Duplex.Applications.Keyboard.GridLayout.HarmonicWrapped
============================================================================]]--
--[[--
Harmonic layout for the Keyboard application (wrapped version)
See also: @{Duplex.Applications.Keyboard.GridLayout}
--]]
@bjorn-nesby
bjorn-nesby / Euclidean Rhythms.lua
Last active May 16, 2016 16:02
Euclidean Rhythm generator for xStream
--[[===========================================================================
Euclidean Rhythms 2.lua
===========================================================================]]--
return {
arguments = {
{
name = "a_steps",
value = 16,
properties = {
@bjorn-nesby
bjorn-nesby / Mackie Protocol.lua
Last active May 10, 2016 21:09
xRules: Mackie Protocol example
-----------------------------------------------------------
-- Ruleset definition for xRules
-- More info @ http://www.renoise.com/tools/xrules
-----------------------------------------------------------
return {
osc_enabled = false,
manage_voices = false,
description = "An implementation of the Mackie Protocol\n(tested with an iControls running factory settings)",
{
osc_pattern = {
@bjorn-nesby
bjorn-nesby / TouchOSC.lua
Last active May 10, 2016 21:10
Using xRules to take control of an XYPad device in Renoise
-----------------------------------------------------------
-- Ruleset definition for xRules
-- More info @ http://www.renoise.com/tools/xrules
-----------------------------------------------------------
return {
osc_enabled = true,
manage_voices = false,
description = "\"Automapping\" an XY Pad: the function will pass value 1+2 into any \nselected XY Pad - automation can be recorded too (enable edit mode)\n",
{
osc_pattern = {
@bjorn-nesby
bjorn-nesby / Sysex_MMC.lua
Last active May 10, 2016 21:06
Using xRules to enable MMC commands by listening to incoming sysex
-----------------------------------------------------------
-- Ruleset definition for xRules
-- More info @ http://www.renoise.com/tools/xrules
-----------------------------------------------------------
return {
osc_enabled = false,
manage_voices = false,
description = "Enable MMC commands in Renoise by listening to incoming sysex.\nSee also http://www.blitter.com/~russtopia/MIDI/~jglatt/tech/mmc.htm",
{
osc_pattern = {
@bjorn-nesby
bjorn-nesby / Routing Test.lua
Last active May 10, 2016 21:11
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 = {
--[[============================================================================
xSample
============================================================================]]--
--[[
Methods for working with samples
]]
class 'xSample'