Syllabus 20091006 Bernhard

From XPUB & Lens-Based wiki

kanon.sh

#!/bin/bash

sox -c1 -r8000 -n sweep_up.wav synth 1 sine %3 vol 0.7 fade t 0 0.7 0.3
sox -c1 -r8000 -n sweep_up_2.wav synth 2 sine %6 vol 0.7 fade t 0 1.7 0.3
sox -c1 -r8000 -n sweep_up_3.wav synth 3 sine %9 vol 0.7 fade t 0 2.7 0.3
sleep 0.2
/bin/bash -c "~/MDMA/Technical\ Tuesdays/loop.py&"
echo "1"
sleep 9
/bin/bash -c "~/MDMA/Technical\ Tuesdays/loop.py&"
echo "2"
sox -c1 -r8000 -n sweep_up.wav synth 1 sine %2 vol 0.7 fade l 0 0.7 0.3
sox -c1 -r8000 -n sweep_up_2.wav synth 2 sine %5 vol 0.7 fade l 0 1.7 0.3
sox -c1 -r8000 -n sweep_up_3.wav synth 3 sine %7 vol 0.7 fade l 0 2.7 0.3
sleep 6
/bin/bash -c "~/MDMA/Technical\ Tuesdays/loop.py&"
echo "3"
sox -c1 -r8000 -n sweep_up.wav synth 1 sine %2 vol 0.7 fade l 0 0.7 0.3
sox -c1 -r8000 -n sweep_up_2.wav synth 2 sine %4 vol 0.7 fade l 0 1.7 0.3
sox -c1 -r8000 -n sweep_up_3.wav synth 3 sine %6 vol 0.7 fade l 0 2.7 0.3
sleep 3
/bin/bash -c "~/MDMA/Technical\ Tuesdays/loop.py&"
echo "4"


loop.py

#!/usr/bin/env python

from os import system
from time import sleep

for i in range(4):
    for j in range(4):
        system("play sweep_up_2.wav")
    for j in range(4):
        system("play sweep_up_3.wav")
    for j in range(3):
        system("play white.wav")