Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (46 sloc) 2.03 kB
75c468e @gilesbowkett This is a bunch of bullshit that doesn't matter. Inconsequential comm…
authored
1 $clock.bpm = 175
3eedd6f @gilesbowkett Moved a bunch of shit into a folder called other_shit. This is stuff …
authored
2 $mutation = L{|measure| 0 == (measure - 1) % 2}
3 $measures = 4
3f0a2f6 @gilesbowkett Finished hack to make tempo variable in real-time. So you can change …
authored
4
da6cab4 @gilesbowkett Translating from svn, let's see if I got this
authored
5 probabilities = {}
6
7 probabilities[:none] = [0.0] * 16
8 probabilities[:all] = [1.0] * 16
9
4d8c70d @gilesbowkett I'm committing all this strictly for historical purposes. This code s…
authored
10 # hip-hop
11 # probabilities[36] = [1.0, 0.0, 0.5, 0.25, 0.0, 0.6, 0.0, 0.9, 0.9, 0.0, 1.0, 0.0, 0.5, 0.0, 0.3, 0.0]
12 # probabilities[37] = [0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.0, 1.0, 0.0, 0.0, 0.0]
13
14 # d&b
da6cab4 @gilesbowkett Translating from svn, let's see if I got this
authored
15 probabilities[36] = [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0]
16 probabilities[37] = [0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0]
4d8c70d @gilesbowkett I'm committing all this strictly for historical purposes. This code s…
authored
17
18 # both
da6cab4 @gilesbowkett Translating from svn, let's see if I got this
authored
19 probabilities[38] = [0.2, 0.0, 0.3, 0.0, 0.3, 0.1, 0.3, 0.4, 0.0, 0.0, 0.2, 0.0, 0.4, 0.0, 0.0, 0.0]
20 probabilities[39] = [0.3, 0.0, 0.2, 0.6, 0.1, 0.0, 0.4, 0.1, 0.35, 0.15, 0.0, 0.0, 0.2, 0.0, 0.1, 0.0]
21 probabilities[40] = [0.0, 0.0, 0.2, 0.0, 0.4, 0.0, 0.0, 0.0, 0.2, 0.0, 0.3, 0.0, 0.3, 0.1, 0.3, 0.4]
22 probabilities[41] = [0.76, 0.0, 0.23, 0.0, 0.0, 0.0, 0.67, 0.0, 0.15, 0.0, 0.15, 0.0, 0.49, 0.0, 0.15, 0.0]
23 probabilities[42] = [0.75, 0.0, 0.13, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.13, 0.0, 0.23, 0.0, 0.0, 0.35, 0.0]
24 probabilities[43] = [0.9] * 16
25 probabilities[44] = [0.65] * 16
26 probabilities[45] = [0.85, 0.35] * 8
27
4d8c70d @gilesbowkett I'm committing all this strictly for historical purposes. This code s…
authored
28 # 0 DO NOT USE!
29 # 1 distorted Roni Size
30 # 2 Roni Size
31 # 3 idm
32 # 4 Trent Reznor
33 # [2,5][rand(2)] hip-hop
34 # 6 Zed
35 # ((1..6).to_a)[rand(6)] madness
36
da6cab4 @gilesbowkett Translating from svn, let's see if I got this
authored
37 def note(midi_note_number)
38 Note.create(:channel => 2,
39 :number => midi_note_number,
40 :duration => 0.25,
41 :velocity => 100 + rand(27))
42 end
43
44 notes = []
45 (36..45).each do |midi_note_number|
46 notes << Drum.new(:note => note(midi_note_number),
47 :when => L{|beat| false},
75c468e @gilesbowkett This is a bunch of bullshit that doesn't matter. Inconsequential comm…
authored
48 # :number_generator => L{0.8},
49 # :next => L{|queue| queue[queue.size - 1]},
4d8c70d @gilesbowkett I'm committing all this strictly for historical purposes. This code s…
authored
50 :number_generator => L{rand},
75c468e @gilesbowkett This is a bunch of bullshit that doesn't matter. Inconsequential comm…
authored
51 :next => L{|queue| queue[rand(queue.size)]},
da6cab4 @gilesbowkett Translating from svn, let's see if I got this
authored
52 :probabilities => probabilities[midi_note_number] || probabilities[:none])
53 end
54 notes
Something went wrong with that request. Please try again.