-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.html
36 lines (33 loc) · 1.86 KB
/
env.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/addons/p5.sound.min.js"></script> -->
<script src="p5.js"></script>
<script src="p5.sound.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Josefin Sans">
<script src="env.js"></script>
<link rel="stylesheet" type="text/css" href="env.css">
<meta charset="utf-8" />
</head>
<body>
<div class="center-box">
<div class="text-box">
<h1>Envelope</h1>
<p align="center">Envelopes are useful in recreating more life-like sounds with variable characteristics. <br>They are responsible for sound being short and punchy or long and sustained! </p>
<p align="center">An envelope does this by controlling 4 characteristics - Attack, Decay, Sustain and Release.</p>
<ul>
<li><i><u>Attack</u></i> - Controls how quickly sound goes from zero to full volume when triggered </p></li>
<li><i><u>Decay and Sustain</u></i> - Control how quickly sound goes from full volume to sustained volume after the attack</p></li>
<li><i><u>Release</u></i> - Controls how quickly sound goes from any level to zero when triggered</p></li>
</ul>
<p align="center">Click on the buttons below to hear how different Attack times affect sound of an ocean fading in. </p>
<div class="button-box">
<button type="button" class="button" onclick=AttackPlay(1)>An Attack of 1 second</button>
<button type="button" class="button" onclick=AttackPlay(3)>An Attack of 3 seconds</button>
<button type="button" class="button" onclick=AttackPlay(7)>An Attack of 7 seconds</button>
</div>
</div>
</div>
</body>
</html>