Skip to content

Instantly share code, notes, and snippets.

View jroo's full-sized avatar

jroo jroo

View GitHub Profile
#!/bin/bash
# bank/pattern generator for the Acid Rain Technology Constellation
# an eight channel gate sequencer that uses euclidean patterns and logic
# random selectors
operators=("AND" "OR" "XOR")
probabilities=("25" "50" "75" "100")
minlength=3
maxlength=16
@jroo
jroo / tt_tricephale.txt
Last active January 25, 2022 22:20
teletype tricéphale: a pentatonic generative sequencer with three playheads for teletype and grid
TRICEPHALE
#1
A WRAP + A 1 0 15
IF G.FDR.EN A: Y A; X 1; $ 5
$ 6
EVERY 64: $ 4
#2
@knandersen
knandersen / morphagene_ableton.py
Last active September 11, 2023 12:43 — forked from ferrihydrite/morphagene_audacity.py
Allows you to use Ableton projects and exports as reels for the Make Noise Morphagene eurorack module. Since a few people have found the script not working or difficulty getting python to work, I have created a web-based tool: https://knandersen.github.io/morphaweb/
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_ableton.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
Instructions in Ableton:
Insert locators as splice markers in your project (Create > Add Locator)
Export Audio/Video with
Sample Rate: 48000 Hz
@tracker1
tracker1 / 01-directory-structure.md
Last active April 15, 2024 13:58
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"