Skip to content

Instantly share code, notes, and snippets.

@djfroofy
Created August 3, 2011 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djfroofy/1123008 to your computer and use it in GitHub Desktop.
Save djfroofy/1123008 to your computer and use it in GitHub Desktop.
BL comp - Quantum Healing
from comps.core import *
player_rw = rw([0,0,0,0,R(5,0),5,0,5,0,0,0,5,17,5,0,0,12,24,29,24,5,5,0,0,0,0,0,5,17,5,5,0,0])
def mod_player():
next = player_rw.next()
player.noteFactory.amount = next
blakmaparada = Instrument('sf2/string/blakmaparada.sf2')
player = Player(blakmaparada, Adder(OrderedArp([53,55,60,57])), OrderedArp([127,100,120,90]), interval=0.5)
rhodes_rw = rw([0,0,0,0,0,12,0,0,12,24,0,12,0,12,0,0,24,0,12,0,-12,0,0,0,12,0])
def mod_rhodes():
next = rhodes_rw.next()
player2.noteFactory.amount = next
rhodes = rhodes_f()
arp2 = Adder(OrderedArp([53,55,53,55,N,N,60,57,60,57,N,N] + [R(55,53),N,N,R(53,57),N,N] + [N,N,N]))
player2 = Player(rhodes, arp2, OrderedArp([127,90,100,120,100,110,120,70,80]), interval=.25/3)
bass_arp = OrderedArp([
[55,53],[55,53],[55,58],[55,58],[55,60],
[55,62],[55,60],[55,60],[55,62],[55,63],
[55,69],[55,67],[55,65],[55,69],[55,67],[55,65],
[55,60],[55,58],[55,60],[55,65],[55,62],[55,60],
[55,69],[55,67],[55,65],[55,69],[55,67],[55,65],
[55,72],[55,74],[55,79],[55,74],[55,72],
[55,60],[55,58],[55,60],[55,65],[55,62],[55,60],
[55,69],[55,67],[55,65],[55,69],[55,67],[55,65],
])
def mod_bass():
next = bass_arp()
player3.noteFactory.reset(next)
pretes = Instrument('sf2/bass/pretes_thumbs.sf2')
bh = bassharmonic_f()
ka = kickar_f()
bass = Instrument('sf2/synth/moogbazz.sf2')
pdd = ParadiddleDiddle([55,53])
player3 = Player(Layer([bh, pretes, ka]), pdd, OrderedArp([30,20,40,30,110,120, 30,20,30,50,120,40]), interval=0.125/3)
lk = lovekit_f()
lk.controlChange(expression=88, reverb=60, chorus=120)
clubber = Instrument('sf2/drum/clubberkit.sf2')
clubber.controlChange(expression=88, reverb=37, chorus=50, vibrato=80)
dp2 = DoubleParadiddle([58,57])
player4 = Player(lk, dp2, OrderedArp([30,20,40,30,127,110, 120,80,40,50,120,90]), stop=lambda:random.randint(6,8),interval=0.25/3)
def start_bass_mod():
return clock.schedule(mod_bass).startLater(1, 0.25)
def start_player_mod():
return clock.schedule(mod_player).startLater(1, 2)
def start_rhodes_mod():
return clock.schedule(mod_rhodes).startLater(1, 1)
def start():
player4.startPlaying()
clock.callAfterMeasures(8, player3.startPlaying)
clock.callAfterMeasures(12, player.startPlaying)
clock.callAfterMeasures(16, start_bass_mod)
clock.callAfterMeasures(32, player2.startPlaying)
clock.callAfterMeasures(36, start_player_mod)
clock.callAfterMeasures(40, start_rhodes_mod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment