-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (173 loc) · 7.14 KB
/
index.html
File metadata and controls
173 lines (173 loc) · 7.14 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Polyrhythms</title>
<link href="assets/favicon.ico" rel="icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" />
<script src="https://use.fontawesome.com/releases/v6.7.2/js/all.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="background-blur"></div>
<div id="title">
<h1>𝄞</h1>
<h1>Polyrhythms</h1>
<a href="https://cdastangoo.github.io" target="_blank" rel="noopener noreferrer">- Cyrus D.</a>
</div>
<div class="tabs">
<button id="btn-circle-of-fifths" class="active">Circle of Fifths</button>
<button id="btn-polygons">Polygons</button>
<button id="btn-bouncing-balls">Bouncing Balls</button>
<button id="btn-spirals">Spirals</button>
</div>
<div id="canvas-content">
<div class="tab-content active" id="circle-of-fifths">
<h2>Circle of Fifths</h2>
<p>
This module presents polygons and other fun shapes rotating about the circle of fifths.
Explore how different shapes have interesting and unexpected sounds!
</p>
<div class="canvas-container">
<button class="fullscreen-btn icon-btn">
<i class="icon fas fa-maximize"></i>
</button>
<div class="module-start">
<button class="icon-btn">
<i class="icon fas fa-play"></i>
</button>
</div>
</div>
</div>
<div class="tab-content" id="polygons">
<h2>Polygons</h2>
<p>
This module demonstrates the cycles of polyrhythms using regular polygons.
Toggle the shapes to see how different meters stack against each other!
</p>
<div class="canvas-container">
<button class="fullscreen-btn icon-btn">
<i class="icon fas fa-maximize"></i>
</button>
<div class="module-start">
<button class="icon-btn">
<i class="icon fas fa-play"></i>
</button>
</div>
</div>
</div>
<div class="tab-content" id="bouncing-balls">
<h2>Bouncing Balls</h2>
<p>This module demonstrates polyrhythms and their relationship to pendulum periods with bouncing balls.</p>
<div class="canvas-container">
<button class="fullscreen-btn icon-btn">
<i class="icon fas fa-maximize"></i>
</button>
<div class="module-start">
<button class="icon-btn">
<i class="icon fas fa-play"></i>
</button>
</div>
</div>
</div>
<div class="tab-content" id="spirals">
<h2>Spirals</h2>
<p>This module demonstrates polyrhythms with spiraling balls, showcasing some interesting geometry.</p>
<div class="canvas-container">
<button class="fullscreen-btn icon-btn">
<i class="icon fas fa-maximize"></i>
</button>
<div class="module-start">
<button class="icon-btn">
<i class="icon fas fa-play"></i>
</button>
</div>
</div>
</div>
</div>
<div id="canvas-controls">
<div id="control-buttons">
<button class="icon-btn" id="play">
<i class="icon fas fa-play"></i>
</button>
<button class="icon-btn" id="reset">
<i class="icon fas fa-rotate-right"></i>
</button>
<button class="icon-btn" id="mute">
<i class="icon fas fa-volume-high"></i>
</button>
</div>
<div class="dropdown" id="circle-of-fifths-shape-dropdown">
<h3>Shape Type</h3>
<select id="shape-dropdown"></select>
<i class="icon fas fa-caret-down"></i>
</div>
<div class="checkbox-container" id="polygons-checkboxes">
<template id="checkbox-template">
<div class="checkbox-wrapper">
<div class="checkbox checked" id="checkbox-value">
<span>♪</span>
</div>
<p>value</p>
</div>
</template>
</div>
<div class="slider">
<h3>Tempo</h3>
<input type="range" id="tempo-slider" value="120" min="40" max="208" step="2">
<h4>Allegro ( 𝅘𝅥 = 120 )</h4>
</div>
<div class="dropdown" id="instrument-select-dropdown">
<h3>Instrument</h3>
<select id="instrument-dropdown">
<option value="grand-piano">Grand Piano</option>
<option value="bright-piano">Bright Piano</option>
<option value="electric-piano" selected>Electric Piano</option>
<option value="flute">Flute</option>
<option value="synth">Synth</option>
<option value="wubs">Wubs</option>
<option value="strings">Strings</option>
<option value="pluck">Pluck</option>
<option value="xylophone">Xylophone</option>
</select>
<i class="icon fas fa-caret-down"></i>
</div>
<div class="slider">
<h3>Volume</h3>
<input type="range" id="volume-slider" value="50" min="0" max="100" step="1">
<h4>mf</h4>
<h4>( 50 )</h4>
</div>
</div>
<footer>
<h2>About this Site</h2>
<p>
This page was inspired by a series of YouTube videos showcasing various ways of visualizing polyrhythms.
These modules help conceptualize how different rhythms and tones work with or against each other to create unique sounds and visual patterns.
Enjoy!
</p>
<p>Inspo:
<a href="https://drive.google.com/file/d/1fRXv7Mj7thTfyrHTVhkLN4T6jByvK4Yi/view" target="_blank" rel="noopener noreferrer">MuseJazz Font</a>,
this <a href="https://www.youtube.com/watch?v=V0YH8M6C-VM" target="_blank" rel="noopener noreferrer">AlgoMotion video</a>,
this <a href="https://www.youtube.com/shorts/HHxUUUQROW0" target="_blank" rel="noopener noreferrer">Melodic Minds short</a>,
and this <a href="https://danielbark.de/pendulum-music/" target="_blank" rel="noopener noreferrer">Danish project</a>.
</p>
<p>Built with jQuery, p5.js, and Tone.js</p>
<p>
Copyright © <script>document.write(new Date().getFullYear())</script> by Cyrus
[ About the <a href="https://cdastangoo.github.io" target="_blank" rel="noopener noreferrer">Author</a> ]
( View the <a href="https://github.com/cdastangoo/polyrhythms" target="_blank" rel="noopener noreferrer">Source Code</a> )
</p>
</footer>
<!-- scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/15.1.3/Tone.js"></script>
<script src="scripts/instruments.js"></script>
<script src="scripts/modules/circle-of-fifths.js"></script>
<script src="scripts/modules/polygons.js"></script>
<script src="scripts/modules/bouncing-balls.js"></script>
<script src="scripts/modules/spirals.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>