forked from VikParuchuri/evolve-music2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
39 lines (29 loc) · 1.17 KB
/
settings.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
import os
BASE_DIR = os.path.dirname(__file__)
DATA_DIR = os.path.join(BASE_DIR, "data")
MIDI_DIR = os.path.join(DATA_DIR, "midi")
OGG_DIR = os.path.join(DATA_DIR, "ogg")
SOURCE_MIDI_DIR = os.path.join(MIDI_DIR, "full")
GENERATED_MIDI_PATH = os.path.join(MIDI_DIR, "generated")
SOUNDFONT_PATH = os.path.join(DATA_DIR, "soundfont", "GS144.sf2")
SOURCE_JSON_DESCRIPTION = os.path.join(DATA_DIR, "full.json")
TEMP_DIR = os.path.join(DATA_DIR, "temp")
GENERATED_PATH = os.path.join(DATA_DIR, "generated")
GENERATED_OGG_PATH = os.path.join(GENERATED_PATH, "ogg")
GOOD_DIR = os.path.join(DATA_DIR, "good")
GOOD_MIDI_PATH = os.path.join(GOOD_DIR, "midi")
GOOD_OGG_PATH = os.path.join(GOOD_DIR, "ogg")
VALUE_ROUNDOFF = 5
TICK_ROUNDOFF = 10
MELODY_DECAY = 1
TRANSITION_MATRIX_START = 1
TRANSITION_MATRIX_END = 4
TRACK_LENGTH = 4000
BASE_HARMONY_LENGTH = 30
MUSIC_TIME_LIMIT = 10
TRAIN_FEATURE_PATH = os.path.join(GENERATED_PATH, "train_features.csv")
GOOD_INSTRUMENTS = [1,2,3,4,5,6,7,19,22,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,57,58,63,64,65,66,67,74,76,105,113]
NOTE_STEP = 16
TEMPO_CHOICES = [600000, 50, 1000000]
POOL_MULTIPLIER = 20
LOG_PATH = os.path.join(DATA_DIR, "em.log")