This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
Cycle array of URLs and process with phantom.js (http://www.phantomjs.org/) | |
Adds Array.prototype.forEachWebPage() iterator. | |
EXAMPLE: | |
Save screenshots. Command line: | |
phantomjs phantom_js_url_cycle.js ./screenshots | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === MIDI-Notes to solresol-colours in RubyProcessing. Example for the use of JRmidi, very basic Midi-Implementation for JRuby, especially for use with ruby-processing === | |
# --- ruby-processing see: http://wiki.github.com/jashkenas/ruby-processing / solresol is a universal language, where words can be put out as musical notes, colours or other --- | |
# --- solresol see: http://en.wikipedia.org/wiki/Solresol --- | |
# Notes have to come as MIDI-note-events from MIDI-in, and are so we can hear them redirected to a synth as well | |
# ! ==> adopt your MIDI-ports below !!!! | |
MIDI_PORT_IN = 0 # your MIDI-input where notes will be mapped to coulors | |
MIDI_PORT_OUT = 11 # select this port so, that is redirected to MIDI-in by hardware, with JACK, ableton live or something (ports are numbered from 0 to n, no difference if in or out) | |
MIDI_OUT_SYNTH = 9 # the OS-System's synth, port number may differ on your system |
NewerOlder