-
Notifications
You must be signed in to change notification settings - Fork 0
/
drowning-dream.py
executable file
·79 lines (60 loc) · 3.02 KB
/
drowning-dream.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env pypy3
from util import arranger
import os
import sys
os.system("clear")
# midi file credit: ?
# samples provided by the London Philharmonia Orchestra
###############################
# Create settings dictionary. #
###############################
settings = arranger.defaults
settings["project_name"] = "drowning-dream"
settings["input_midi"] = "MIDI/drowning-dream.mid"
settings["banned_effects"] = ["-c","phrase", "ponticello", "tenuto", "legato", "detache", "-col-legno-battuto", "tremolo", "phrase", "non-vibrato", "harmonic", "tratto", "very-long_mezzo-forte_arco-normal", "snap","trill", "glissando", "staccato", "sul", "au"]
# "violin", "viola", "cello", "double-bass", "bass-clarinet", "bassoon", "clarinet", "contrabassoon", "english-horn", "flute", "french-horn", "oboe", "saxophone", "trombone", "trumpet", "tuba", "guitar", "mandolin", "banjo"
settings["instruments"] = ["violin", "cello", "double-bass"]
settings["maximize_dynamics"] = False
settings["key_offset"] = 0
settings["reverberance"] = 50
settings["reverb-room-scale"] = 100
settings["reverb-stereo-depth"] = 100
settings["master_tempo"] = 2.5
settings["master_volume"] = 0.8
settings["violin"]["octave"] = 0
settings["violin"]["length_upperlimit"] = 999
settings["violin"]["length_lowerlimit"] = 0
settings["violin"]["velocity_multiplier"] = 1.0
settings["violin"]["volume"] = .5
settings["violin"]["polyphony"] = 1
settings["violin"]["note_length_adjust"] = 1.0
settings["violin"]["pizz-threshold"] = -1
settings["violin"]["midi_channel"] = 2
settings["viola"]["octave"] = 0
settings["viola"]["length_upperlimit"] = 999
settings["viola"]["length_lowerlimit"] = 0
settings["viola"]["velocity_multiplier"] = 1.0
settings["viola"]["volume"] = .5
settings["viola"]["polyphony"] = 1
settings["viola"]["note_length_adjust"] = 1.0
settings["viola"]["pizz-threshold"] = -1
#settings["viola"]["midi_channel"] = 2
settings["cello"]["octave"] = -1
settings["cello"]["length_upperlimit"] = 999
settings["cello"]["length_lowerlimit"] = 0
settings["cello"]["velocity_multiplier"] = 1.0
settings["cello"]["volume"] = .5
settings["cello"]["polyphony"] = 1
settings["cello"]["note_length_adjust"] = 1.0
settings["cello"]["pizz-threshold"] = -1
settings["cello"]["midi_channel"] = 3
settings["double-bass"]["octave"] = -2
settings["double-bass"]["length_upperlimit"] = 999
settings["double-bass"]["length_lowerlimit"] = 0
settings["double-bass"]["velocity_multiplier"] = 1.0
settings["double-bass"]["volume"] = .5
settings["double-bass"]["polyphony"] = 1
settings["double-bass"]["note_length_adjust"] = 1.0
settings["double-bass"]["pizz-threshold"] = -1
settings["double-bass"]["midi_channel"] = 4
arranger.arrange(settings)