-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.py
162 lines (132 loc) · 3.37 KB
/
play.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#!/usr/bin/env python
STEREO_WIDTH = .2
MAG_PAN = -1 * STEREO_WIDTH
HANNABIELL_PAN = 1 * STEREO_WIDTH
MAG_AGE_TYPE = "decay"
HANNABIELL_AGE_TYPE = "rejuvinate"
from sequencer import Sequencer
import logging
logging.basicConfig(filename="play.log",
level=logging.DEBUG,
filemode="w",
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
sequencer = Sequencer()
sequencer.load_sounds("sound/*/*.wav")
# Buses
sequencer.add_bus("bubbles")
sequencer.set_bus_params("bubbles", {
"reverb_room": 0.5,
"reverb_mix": 0.6
})
sequencer.add_bus("long_reverb")
sequencer.set_bus_params("long_reverb", {
"reverb_room": 0.85,
"reverb_mix": 0.75
})
sequencer.add_bus("hannabell_tone_reverb")
sequencer.set_bus_params("long_reverb", {
"reverb_room": 0.5,
"reverb_mix": 1.0
})
# Water
sequencer.add_track(
"rumbling water",
"sound/water/Sound 2 mindre rinn.wav",
{"send": "long_reverb",
"gain": 7.8,
"rate": 1.0,
})
sequencer.add_track(
"bubbles1",
"sound/water/ZOOM0009a 44100 1.wav",
{"send": "bubbles",
"gain": -35.6,
"rate": 0.5,
"pan": -0.8})
sequencer.add_track(
"bubbles2",
"sound/water/ZOOM0009b 44100 1.wav",
{"send": "bubbles",
"gain": -35.6,
"rate": 0.5,
"gain_adjustment": -20,
"pan": 0})
sequencer.add_track(
"bubbles3",
"sound/water/ZOOM0009c 44100 1.wav",
{"send": "bubbles",
"gain": -35.6,
"rate": 0.5,
"pan": 0.8})
sequencer.play(
"sound/water/Sound 2 mindre rinn.wav",
looped=1)
sequencer.play(
"sound/water/ZOOM0009a 44100 1.wav",
looped=1)
sequencer.play(
"sound/water/ZOOM0009b 44100 1.wav",
looped=1)
sequencer.play(
"sound/water/ZOOM0009c 44100 1.wav",
looped=1)
# Mag
sequencer.add_track(
"mag weak",
"sound/mag/mag_weak*.wav",
{"send": "long_reverb",
"gain": 2.1,
"comp_threshold": -36.6,
"age_type": MAG_AGE_TYPE,
"pan": MAG_PAN})
sequencer.add_track(
"mag breath",
"sound/mag/mag_breath1.wav",
{"send": "long_reverb",
"gain": 0,
"comp_threshold": -36.6,
"age_type": MAG_AGE_TYPE,
"pan": MAG_PAN})
sequencer.add_group(
"sound/mag/*.wav",
{"silence_min": 15,
"silence_max": 40})
# Hannabiell
sequencer.add_track(
"hannabiell tone",
"sound/hannabiell/tone*.wav",
{"send": "hannabell_tone_reverb",
"gain": -100,
"comp_threshold": -36.6,
"send_gain": 12.4,
"age_type": HANNABIELL_AGE_TYPE,
"pan": HANNABIELL_PAN})
sequencer.add_track(
"hannabiell breath",
"sound/hannabiell/breath*.wav",
{"send": "long_reverb",
"gain": -10.5,
"comp_threshold": -30.8,
"age_type": HANNABIELL_AGE_TYPE,
"pan": HANNABIELL_PAN})
sequencer.add_track(
"hannabiell fragment",
"sound/hannabiell/fragment*.wav",
{"send": "long_reverb",
"gain": +11.7,
"age_type": HANNABIELL_AGE_TYPE,
"pan": HANNABIELL_PAN})
sequencer.add_track(
"hannabiell squeak",
"sound/hannabiell/squeak*.wav",
{"send": "long_reverb",
"gain": +0.3,
"age_type": HANNABIELL_AGE_TYPE,
"pan": HANNABIELL_PAN})
sequencer.add_group(
"sound/hannabiell/*.wav",
{"silence_min": 15,
"silence_max": 40})
# Run everything
sequencer.try_to_load_params()
sequencer.run_main_loop()