-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_generation.bat
60 lines (49 loc) · 2.49 KB
/
example_generation.bat
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
@echo OFF
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ___ ___ _ _____ _ ::
:: | \/ | (_) | __ \ | | ::
:: | . . |_ _ ___ _ ___ | | \/ ___ _ __ ___ _ __ __ _| |_ ___ _ __ ::
:: | |\/| | | | / __| |/ __| | | __ / _ \ '_ \ / _ \ '__/ _` | __/ _ \| '__| ::
:: | | | | |_| \__ \ | (__ | |_\ \ __/ | | | __/ | | (_| | || (_) | | ::
:: \_| |_/\__,_|___/_|\___| \____/\___|_| |_|\___|_| \__,_|\__\___/|_| ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Generate midi, pdf, and Python pkl file by using a probability (style) file,
:: output path, composition name, key, and number of bars to generate for a
:: melody and chord track.
:::::::::::::::::::::::::::::::: CONFIGURATION :::::::::::::::::::::::::::::::::
:: Path to Python installation
set PYTHON_PATH=py -3
:: The name for your composition (included in some of the generated files)
set COMPOSITION_NAME="EXAMPLE"
:: Force the musical key. Can use # and b for sharp and flat. Use lowercase
:: for minor keys and UPPERCASE for major keys
set FORCE_KEY="G"
:: Number of bars for different tracks. If not specified, will default to 8
set MELODY_TRACK_BARS=4
set CHORDS_TRACK_BARS=4
:: Amount of times to repeat the above generated tracks
set REPEAT_TRACKS=1
:: Which bar to start generating at
set START_BAR=1
:: Path to the "Style", you can create your own following the same format as
:: those in the "styles" folder
set STYLE_FILE_PATH="styles\default.json"
:: Path to the main script
set MUSIC_GENERATOR_CLI="mgen_cli.py"
:: -- Different options for file output paths below -- ::
:: Default directory and name (if no argument specified)
set PKL_OUTPUT_PATH=
:: Default name, specific directory
:: NOTE: Don't use relative paths, put \\ at end
set MIDI_OUTPUT_PATH="C:\\Temp\\music_generator\\"
:: Specific directory and filename
:: NOTE: Don't use relative paths
set PDF_OUTPUT_PATH="C:\\Temp\\music_generator\\example"
:::::::::::::::::::::::::::::::::: EXECUTION :::::::::::::::::::::::::::::::::::
%PYTHON_PATH% %MUSIC_GENERATOR_CLI% --style_file_path %STYLE_FILE_PATH%^
--melody_track %MELODY_TRACK_BARS% --chords_track %CHORDS_TRACK_BARS%^
--repeat_tracks %REPEAT_TRACKS% --start_bar %START_BAR%^
--composition_name %COMPOSITION_NAME% --key %FORCE_KEY%^
--generate_midi %MIDI_OUTPUT_PATH% --generate_pdf %PDF_OUTPUT_PATH%^
--generate_pickle %PKL_OUTPUT_PATH%
pause