-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·92 lines (75 loc) · 4.03 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/vue@next"></script>
<script src="https://kit.fontawesome.com/50f9e90ff6.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js@3.0/dist/svg.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.7.75/Tone.js" integrity="sha512-WRNJatjK302xMf1E7cAmjtR+9xbFL68U1+rVV/8zRGRB2laKMlxFy+75AnceYd6QocIUc8LuW/wC26jsmr1K9Q==" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div v-if="!audioIsFetching">
<div class="container my-3">
<div class="row mb-3 justify-content-center text-center">
<track-controls-component
v-for="t in tracks"
:index="t.index"
:key="t.index"
:is-active="t.isActive"
:is-mute="t.isMute"
:instruments="instruments"
:beat-number="t.beatNumber"
@switch-active="switchActive"
@switch-mute="switchMute"
@rotate-cw="rotateCW"
@rotate-ccw="rotateCCW"
@clear-rhythm="clearRhythm"
@changed-beat-number="setBeatNumber"
@changed-instrument="setInstrument">
</track-controls-component>
</div>
<div class="row">
<tempo-component :tempo="tempo" @tempo-change="updateTempo"></tempo-component>
</div>
<div class="row mb-1">
<div class="col-10">
<button id="create" class="rounded btn-block py-4 puffy-button" @click="create">Create Polyrythm</button>
</div>
<div class="col-2">
<button id="stop" class="rounded btn-block py-4 puffy-button" @click="pausePolyrhythm">{{isPaused ? 'Resume' : 'Pause'}}</button>
</div>
</div>
<div class="row">
<circle-component
:active-tracks="activeTracks"
:current-beat-index="currentBeatIndex"
:lcm="lcm"
@toggle-beat="toggleBeat">
</circle-component>
</div>
</div>
</div>
</div>
</body>
<script src="utils.js"></script>
<script src="instruments.js"></script>
<script src="polyrithm.js"></script>
<script src="AppComponent.js"></script>
<script src="components/SwitchComponent.js"></script>
<script src="components/VolumeComponent.js"></script>
<script src="components/InstrumentsComponent.js"></script>
<script src="components/RotateRhythmComponent.js"></script>
<script src="components/BeatNumberComponent.js"></script>
<script src="components/ClearRhythmComponent.js"></script>
<script src="components/TrackControlsComponent.js"></script>
<script src="components/RhythmCircleComponent.js"></script>
<script src="components/TempoComponent.js"></script>
<script>const mountApp = app.mount('#app');</script>
</html>