repl.it
@thec0mpletionist/

music matters

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • dat.gui.min.js
  • p5.collide2d.min.js
  • sketch.js
  • style.css
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
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<title>repl.it</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="flex">
        <h1>music-matters:</h1>
        <p class="sh">a physics based musical sandbox</p>

        <div class="app">
            <div class="canvas" id="my-canvas"style="height:600px"></div>

            <div class="gui" id="my-gui-container"></div>
        </div>

        <p>music-matters is an interactive physics based music sandbox created for the repl.it <a href="https://repl.it/talk/all">Online Music Hackathon</a>.</p>

        <div class="info">
            <h2>Controls</h2>

            <p class="info" style="">World Settings</p>
            <ul class="info">
                <li>bpm: Changes the tempo of the world. This setting effects the rate that emitters launch balls.</li>
            </ul>

            <p class="info" style="">Tools</p>
            <ul class="info">
                <li>Pointer: Standard select tool. Use to select emitters and barriers.</li>
                <li>Circle: Click to drop a ball from the cursor position.</li>
                <li>Emitter: Click to add an emitter, which will launch balls at a set tempo and rhythm.</li>
                <li>Barrier: Click to add a barrier that balls can bounce off of to make sound!</li>
            </ul>

            <!-- <p class="info" style="">Barrier Settings</p>
            <ul class="info">
                <li>Angle:</li>
                <li>Note:</li>
                <li>Octave</li>
            </ul>

            <p class="info" style="">Emission Settings</p>
            <ul class="info">
                <li>Angle:</li>
                <li>Force:</li>

            </ul> -->
        </div>
    </div>
    

	<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
    <script src="p5.collide2d.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.12.0/matter.min.js"></script>
    <script src="dat.gui.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tone/13.0.1/Tone.min.js"></script>
	<script src="sketch.js"></script>
</body>

</html>
result
console
?