Skip to content

Instantly share code, notes, and snippets.

View vgiles's full-sized avatar

Vincent Giles vgiles

View GitHub Profile
# Little script to convert files from docx to pdf recursively within the directory that the script is run from.
import os
import subprocess
def run_fast_scandir(dir, ext): # dir: str, ext: list
subfolders, files = [], []
for f in os.scandir(dir):
if f.is_dir():
<pre><code>
----------begin_max5_patcher----------
4761.3oc6c0zbiijb8r5eELzI6wcyn99CGgcra3K1GFeX2M7k0Sn.hDRByPB
PSBpQ8rw1+1cAT.TjDEHKHlE.1dPePpE.Hq5kUVYkYVuJwe6S2c+iYuEu69Y
+qy9qyt6t+1mt6txKUbg6p966teczaKVEsq7wtOM9Wyd7mu+y1akG+Vd4k+g
Y340WLYY4kLO1WHn5KltecR5p37xuEx6WLaed8UwUWcST9hWRRe9gswKxs8M
BmNG84YLFo3WD8bt4ml++rep5yX+Zx+5lX6G39mVkEY9v+Tws+6e5SE+3y2F
D+haHhU.AQpp.UTMctFQoDDES3CEV2FktLa8LpK7pgEuB7I3kqKGguHdSRgE
s6Rd9atPpzIRwcEoTsr.Sbrn3WT70AnoCkFsBTL1xDTr.lQSLRRlKDBISgXB
krXjThFtIq+vLSia9G1El4gCyLVAlEnqOF2eFnn.AWrnbFKGoFtw0KYXh.KN
#N canvas 0 23 1440 855 12;
#X obj 135 219 soundfiler;
#X obj 133 131 openpanel;
#X obj 134 37 hradio 20 1 0 4 empty empty LoadSample 0 -8 0 10 -262144
-1 -1 3;
#X obj 134 63 sel 0 1 2 3, f 28;
#X obj 134 87 t b b;
#X obj 133 158 pack s s;
#X msg 212 132 symbol sample1;
#X msg 134 188 read -resize \$1 \$2;
void setup() {
background(0,10,0);
size(800, 250);
}
// global variables
int mousePosX = 1, mousePosY = 1, fillVal = 0, strokeVal = 255, value = 0, fillR = 0, fillG = 0, fillB = 0, aPoop = 0, limit = 200, trig = 1;
float floR, floG, floB, floA, noiseValX, noiseValY;
// drawing animation
s.boot;
s.quit;
s.meter;
(
// defining a kick sound
SynthDef.new(\kick, {
|
freq = 40,
@vgiles
vgiles / oliveiro.scd
Last active May 24, 2019 05:56
oliveiro
s.boot;
(
SynthDef.new(\yay, {
|
freq = 40,
amp = 0.4,
atk = 0.002,
rel = 0.08
|
@vgiles
vgiles / flipper-workshop-18sp3.scd
Created November 28, 2018 23:29
Flipperoo SC 18SP3

/* WELCOME TO VINCE'S COMPUTER ASSISTED COMPOSITION AND IMPROVISATION WORKSHOP 2018 AND WELCOME TO SUPERCOLLIDER! A PROGRAMMING LANGUAGE FOR MUSIC AND DIGITAL SIGNAL PROCESSING.

IN AN EMERGENCY, PLEASE FASTEN SEATBELTS AND NOTE THAT TO STOP ALL SOUND, PRESS CMD + ., or ALT and + (WIN)

Programming can be scary, and indeed, I still find SuperCollider quite scary and am relatively new to it! There are a couple of key concepts to understand:

  1. How code actually works.
  2. How functions work.
@vgiles
vgiles / vignette#1
Created June 16, 2018 07:36
Vignette#1_For_AnyInstrument_Graphic_Score_PROCESSING
// Things to make: staff, clefs, stems, beams, noteheads.
// basic_staff
class basic_staff {
int xStart;
int yStart;
int xEnd;
int TopLeft;
int Gap = 10;
@vgiles
vgiles / GlitchyMcGlitchFace.scd
Created November 25, 2017 07:58
Makin' some glitchy stuff in supercollider

/* I am planning on making an Autechre-style glitchy piece. This will require me to learn patterns, rather than my former use of tasks.

Things to do:

-- Design some nice glitchy synth sounds, with variations that include longer sounds. -- Learn how to define patterns that are repetitious or chaotic or both -- Figure out how to define a form based on patterns -- algorithmically? Formally? Performatively?

*/

@vgiles
vgiles / VG_counterpoint.txt
Created February 15, 2017 05:02
CounterpointA2CM2 VGILES
Cantus Firmus — Writing a simple but well-structured melody
1. All whole notes (semibreves)
2. 8-13 notes long
3. First and last note must be the tonic
4. Second-last note must be the note above the tonic
5. Conjunct (stepwise motion) primarily (leaps for dramatic effect)
6. (Melodic) intervals of M m 2, M m 3, P 4, P 5, m 6, P8
7. Avoid dissonant intervals (Aug/Dim, M6, m7, M7)
8. Leaps > P4 must be exited by step in the opposite direction.