import FoxDot as fd import numpy as np fd.Clock.bpm = 90 fd.Root.default.set("C") fd.SynthDefs fd.l1 >> fd.saw([0, -2, 5, 4, 3, 4, 2, 1, 3, 2, 1], dur=[fd.rest(2), 1, 1, 2, 1, 1, 2, 2, 2, 1, 1]) fd.l2 >> fd.fuzz([0, -2, 5, 4, 3, 4, 2, 1, 3, 2, 1], dur=[fd.rest(2), 1, 1, 2, 1, 1, 2, 2, 2, 1, 1], amp=0.2, oct=6) fd.b1 >> fd.bass( [-4, 0, 1, 0, 0, -4, 0, -4, -5, -3, -2.5, -2, -5, -2, -5.5] + [-6, -4, -3.5, -3, -3, -3, 0, -3, -7, -7, -7, -3.5, -3.5, 0, -3.5], dur=[ 1, 0.5, 0.5, 1, 0.33, 0.17, fd.rest(0.33), 0.17, 1, 0.5, 0.5, 1, 0.33, 0.17, 0.5 ], amp=0.6, oct=6) fd.p1 >> fd.orient([(-7 - 4, 0, 2, 5), (-7 - 5, -1, 1, 4), (-7 - 3, -3, 0.5, 3)] + [(-7 - 6, -4, -2, 0, 2), (-7 - 4, -4, -2, 0, 1), (-7 - 7, -3, -1.5, 1, 3), (-7 - 4.5, -4.5, -1.5, 0, 2)], dur=[4, 2, 2, 2, 2, 2, 2],
fd.SynthDefs fd.r1 >> fd.dirt([0, 3, 1.5, 3, 4, 1.5, 0, 0, 0, 1.5, 0, -1.5, 1.5, 0, 0], dur=[ fd.rest(1), 0.5, 0.5, 1, 0.5, 0.5, fd.rest(0.5), 3.5, fd.rest(2), 0.5, 0.5, 0.5, 0.5, fd.rest(0.5), 3.5 ], oct=7, amp=0.7) fd.r2 >> fd.fuzz([0, 3, 1.5, 3, 4, 1.5, 0, 0, 0, 1.5, 0, -1.5, 1.5, 0, 0], dur=[ fd.rest(1), 0.5, 0.5, 1, 0.5, 0.5, fd.rest(0.5), 3.5, fd.rest(2), 0.5, 0.5, 0.5, 0.5, fd.rest(0.5), 3.5 ], oct=5, amp=1.0) fd.b1 >> fd.sawbass([ -4, 0, 0, 1.5, 0, 4, 3, -1.5, -1, 0, 0, -1.5, 0, 1.5, -1.5, 0, -1.5, -3, -3.5 ], dur=[ 1, fd.rest(2.5), 0.5, 0.5, 0.5, 0.5, 1.5, 0.5, 0.5, 1, fd.rest(2.5), 0.5, 0.5, 0.5, 0.5, 1, 0.5, 0.5, 0.5 ], oct=5)