Skip to content

Instantly share code, notes, and snippets.

Avatar

David MacDonald davemacdo

View GitHub Profile
@davemacdo
davemacdo / Dropkick to v3.scpt
Created Apr 13, 2017
Copy-paste columns from Numbers (or Excel) to v3 webform
View Dropkick to v3.scpt
// Input from clipboard formatted in two columns: | Grade | HTML comment |
// Pastes into the v3 form
function run(input, parameters) {
currentApp = Application.currentApplication();
se = Application("System Events");
currentApp.includeStandardAdditions = true;
clip = currentApp.theClipboard();
@davemacdo
davemacdo / even-tuning.ck
Created Jun 4, 2016
Calculate frequencies for even octave divisions in ChucK
View even-tuning.ck
SinOsc s => dac; // could be any unit generator
440.0 => float baseFreq; // starting frequency
5.0 => float divs; // number of even divisions of the octave
1 => int i; // number of steps above base
// Playtest
// baseFreq => s.freq; // play base freq
// 1::second => now;