-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtechnologic.py
More file actions
30 lines (18 loc) · 799 Bytes
/
technologic.py
File metadata and controls
30 lines (18 loc) · 799 Bytes
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
'''
This system will create music based off of y=mx+b equations.
There are two sets of equations:
1) x is time and y is audio sound (higher y = high pitch) (low y = big bass)
2) x is time and y is the duration of the sound in set 1 (may have 1+ equations > piecewise function)
BOTH sets will stop at the duration. Duration in seconds
'''
from genres import genres
from synthesize import synthesizer
def logic(genre = "fast", duration = 90):
spacer = "------------------------------------------------------------------------------------------------"
print "\n%s" % spacer
print "\nGenerating Song Characteristics\n"
print spacer
data = genres(genre, float(duration))
synthesize = synthesizer(genre, data, spacer)
return synthesize
logic("slow", 30)