-
Notifications
You must be signed in to change notification settings - Fork 423
/
RUN_DEMO.sh
67 lines (58 loc) · 1.62 KB
/
RUN_DEMO.sh
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
#!/bin/bash
python maybe_download_mags.py
cd server
python server.py &
WEB_SERVER=$!
cd ..
midi_clock\
--output_ports="magenta_clock" \
--qpm=120 \
--channel=0 \
--clock_control_number=1 \
--log=INFO &
MIDI_CLOCK=$!
magenta_midi \
--input_ports="magenta_drums_in,magenta_clock" \
--output_ports="magenta_out" \
--bundle_files=./drum_kit_rnn.mag\
--qpm=120 \
--allow_overlap=true \
--playback_channel=9 \
--enable_metronome=false \
--passthrough=false \
--clock_control_number=1 \
--min_listen_ticks_control_number=3 \
--max_listen_ticks_control_number=4 \
--response_ticks_control_number=5 \
--temperature_control_number=6 \
--generator_select_control_number=8 \
--loop_control_number=10 \
--panic_control_number=11 \
--mutate_control_number=12 \
--log=INFO &
MAGENTA_DRUMS=$!
magenta_midi \
--input_ports="magenta_piano_in,magenta_clock" \
--output_ports="magenta_out" \
--bundle_files=./attention_rnn.mag,./pianoroll_rnn_nade.mag,./performance.mag \
--qpm=120 \
--allow_overlap=true \
--playback_channel=0 \
--enable_metronome=false \
--passthrough=false \
--generator_select_control_number=0 \
--clock_control_number=1 \
--min_listen_ticks_control_number=3 \
--max_listen_ticks_control_number=4 \
--response_ticks_control_number=5 \
--temperature_control_number=6 \
--generator_select_control_number=8 \
--loop_control_number=10 \
--panic_control_number=11 \
--mutate_control_number=12 \
--log=INFO &
MAGENTA_PIANO=$!
trap "kill ${WEB_SERVER} ${MIDI_CLOCK} ${MAGENTA_PIANO} ${MAGENTA_DRUMS}; exit 1" INT
sleep 20
open -a "Google Chrome" "http://localhost:8080"
wait