Skip to content

Instantly share code, notes, and snippets.

@arirusso
arirusso / midi_notes_to_yaml.rb
Created April 30, 2011 23:00
generate MIDI note names/numbers in YAML format
# generate MIDI note names/numbers in YAML format
octaves = (0..10)
range = (0..127)
naturals = [
{ :name => "C", :val => 0 },
{ :name => "D", :val => 2 },
{ :name => "E", :val => 4 },
{ :name => "F", :val => 5 },
@arirusso
arirusso / nord_modular_osx.md
Last active March 10, 2023 21:22
Use the original Nord Modular Editor with OSX

Use the original Nord Modular Editor with OSX

Required

  • Homebrew

Compatibility

Confirmed working with

@arirusso
arirusso / branches.md
Last active January 22, 2023 08:36
Build & Upload Mutable Instruments Branches Firmware

Build & Upload Mutable Instruments Branches Software

This is what I used to build Branches using OSX 10.11.4

This is the AVR interface I'm using

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4

Notes on Building & Uploading Twigs Alt Firmware

This is what I've used to build and upload Twigs using OSX 10.11.4

This is the AVR interface I'm using

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4
@arirusso
arirusso / img_convert.rb
Created September 30, 2011 16:44
convert html img tags to rails image_tag calls
#!/usr/bin/env ruby
require "nokogiri"
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls
#
# example usage:
# ruby convert.rb ~/my_rails_app/app/views
#
# ***be careful and backup before using this***
#
@arirusso
arirusso / video-example.rb
Created March 27, 2012 23:54
ruby-processing: video processing example
#!/usr/bin/env ruby
# this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with the video library
# use "rp5 unpack library" at a command line to install the video library, among others
# tested with Ruby 1.9.2
# video file: http://bit.ly/H5yBjK
class VideoTest < Processing::App
@arirusso
arirusso / video-capture-example.rb
Created March 28, 2012 00:36
ruby-processing: video capture processing example
#!/usr/bin/env ruby
# this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with video capture
# use "rp5 unpack library" at a command line to install the video library, among others
# tested with Ruby 1.9.2 on OSX with built in web cam
class VideoCaptureTest < Processing::App
@arirusso
arirusso / peaks.md
Last active May 4, 2016 23:44
Build Mutable Instruments Peaks software

Build Mutable Instruments Peaks software

This is what I used to build Peaks using OSX 10.11.4

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
@arirusso
arirusso / wav2mp3.sh
Created February 17, 2016 03:16
Convert directory of wav files to mp3 in OSX using lame
for i in *.wav; do lame -b 320 -h "${i}" "${i}.mp3"; done
@arirusso
arirusso / webkitSpeechRecognition
Created January 4, 2014 01:52
Hello world for Web Speech API in a browser. Speak into the microphone and the recognized words will be printed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JavaScript Web Speech API Example</title>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
var final_transcript = '';