Skip to content

Instantly share code, notes, and snippets.

#N canvas 1352 283 1114 678 12;
#X declare -path abl_link;
#X declare -path jack_transport;
#X obj 309 14 declare -path abl_link;
#N canvas 668 992 772 801 ableton_tempo 0;
#X msg 148 3 tempo \$1;
#X floatatom 148 59 5 0 0 1 - - - 0;
#X msg 58 43 connect \$1;
#X obj 187 139 t f f;
#X obj 187 164 <;
#!/usr/bin/env python
# Author: David Huss
# Website: http://blog.atoaudiovisual.com
# Usage instructions http://blog.atoav.com/2013/09/restore-broken-deja-dup-backup-hand/
# Modified by Antonio Roberts to preserve folder structure
import Tkinter as tk
from tkFileDialog import *
import sys, os
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image
@hellocatfood
hellocatfood / feedback_loops.pd
Created April 2, 2014 14:05
Feedback loops in Pure Data. Now with masking!
#N canvas 1295 426 450 300 10;
#N canvas 957 82 929 997 feedback 0;
#X obj 360 250 cnv 15 220 180 empty empty empty 20 12 0 14 -228856
-262144 0;
#X obj 67 647 rotateXYZ;
#X obj 67 567 translateXYZ;
#X obj 364 275 grid grid1 100 0 10 100 0 10 0 0.1 0.1 10 10 236 82
;
#N canvas 65 118 450 300 translated 0;
#X obj 119 196 line;
@hellocatfood
hellocatfood / feedback.sh
Last active August 17, 2020 00:51
Do feedback loops on an image with transparenty
#!/bin/bash
# applies a black and white feedback effect to still images.
# usage: ./feedback.sh image.png 18
# this would apply the feedback effect 18 times to the image.png image and output the result as feedback.png
cp $1 feedback.png
loop=0
@hellocatfood
hellocatfood / movie_cut_random.sh
Last active June 25, 2020 20:33
A script to perform a random cut on a video
#!/bin/bash
#A script to perform a random cut on a video
#By Antonio Roberts | www.hellocatfood.com
#Usage: ./movie_cut.sh /path/to/file.mp4
#e.g. ./movie_cut.sh /home/Desktop/videofile.mp4
# change 30 to however many videos you want output
filenumber=$(printf "%05d")
while [ $filenumber -le 30 ]
do
@hellocatfood
hellocatfood / typewriter.sh
Created May 23, 2020 14:01
Create a typewriter text effect using Imagemagick 7
#/bin/bash
# Adapted from here https://imagemagick.org/discourse-server/viewtopic.php?p=163774#p163774
# Requires Imagemagick 7 and a monospace font. Tested on Ubuntu 20.04
FONT= # replace with path to monospace font
POINTS=18
COUNT=0
TEXT= # replace textfile.txt with path to plain text file
#N canvas 62 73 929 984 12;
#X declare -path extra;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array1 10352 float 2 black black;
#X coords 0 1 10352 -1 200 140 1;
#X restore 523 67 graph;
#X obj 207 60 openpanel;
#X obj 207 36 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 207 112 soundfiler;
@hellocatfood
hellocatfood / A_Perfect_Circle.pde
Created July 15, 2019 11:17
Code used for A Perfect Circle
import processing.video.*;
import processing.pdf.*;
Capture video;
PGraphics topLayer;
PGraphics topLayer2;
color trackColor;
float hue = 0;
int xorig=width/2, yorig=height/2;
int xprev=width/2, yprev=height/2;
@hellocatfood
hellocatfood / gist:5520178
Created May 5, 2013 08:45
Do batch conversions using GIMP via the command line. Replace file types on line 2 and 6
gimp -n -i -b - <<EOF
(let* ( (file's (cadr (file-glob "*.tiff" 1))) (filename "") (image 0) (layer 0) )
(while (pair? file's)
(set! image (car (gimp-file-load RUN-NONINTERACTIVE (car file's) (car file's))))
(set! layer (car (gimp-image-merge-visible-layers image CLIP-TO-IMAGE)))
(set! filename (string-append (substring (car file's) 0 (- (string-length (car file's)) 4)) ".xcf"))
(gimp-file-save RUN-NONINTERACTIVE image layer filename filename)
(gimp-image-delete image)
(set! file's (cdr file's))
)