2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>Duffing Islands</title>
7 <link rel="stylesheet" href="style.css">
8</head>
9<body>
11 <div class="title">
12 <h1>Islands in a sea of chaos</h1>
13 <p class="eq">
14 <i>ẍ</i> + <i>δ</i><i>ẋ</i> ± (2π<i>f</i><sub>0</sub>)<sup>2</sup><i>x</i> + <i>α</i><i>x</i><sup>3</sup> = <i>F</i> cos <i>Ωt</i>
15 </p>
16 </div>
17 <div class="master">
18 <label class="master-tempo" title="The global tempo: every track ticks at a multiple of it">
19 <span>Tempo</span>
20 <input id="tempo" type="range">
21 <output></output>
22 </label>
23 <div class="rec">
55bfe11Track octave, range and mono; faster tempos; audio-only WAV recordingJeremy Magland 24 <select id="rec-kind" class="rec-kind" aria-label="What to record" title="What to record: a video with the sound, or the sound alone as a WAV file">
25 <option value="video">Video</option>
26 <option value="audio">Audio (.wav)</option>
27 </select>
574ea55Tracks, SoundFonts, sessions, recording and MIDIJeremy Magland 28 <button id="record" class="rec-btn" aria-pressed="false"><span class="rec-dot" aria-hidden="true"></span><span class="rec-label">Record</span></button>
29 <span id="rec-status" class="rec-status" aria-live="polite" hidden></span>
30 <button id="rec-download" class="small" hidden></button>
31 <button id="rec-discard" class="quiet small" aria-label="Discard the recording" title="Discard the recording" hidden>×</button>
32 </div>
33 <button id="sound" class="sound-btn" aria-pressed="false"></button>
34 <label class="master-vol" title="Master volume">
35 <span class="sr">Master volume</span>
36 <input id="volume" type="range" min="0" max="1" step="0.01" value="0.6">
37 <output></output>
38 </label>
39 </div>
42 <div class="layout">
574ea55Tracks, SoundFonts, sessions, recording and MIDIJeremy Magland 43 <aside class="panel eqn-panel">
44 <div class="eqn-head">
45 <h2>Equation</h2>
46 <button id="knobs" class="small quiet" aria-pressed="false" title="Control the sliders with the knobs of a MIDI controller">Knobs</button>
47 </div>
48 <p id="knob-msg" class="note knob-msg" hidden></p>
a1f5e15Islands in a sea of chaos: Duffing phase space with sonificationJeremy Magland 49 <select id="preset" aria-label="Preset"></select>
50 <div id="sliders" class="sliders"></div>
a1f5e15Islands in a sea of chaos: Duffing phase space with sonificationJeremy Magland 52 <label class="row">
54 <input id="coupling" type="range" min="0" max="70" step="1" value="0">
a1f5e15Islands in a sea of chaos: Duffing phase space with sonificationJeremy Magland 55 <output></output>
56 </label>
574ea55Tracks, SoundFonts, sessions, recording and MIDIJeremy Magland 57 <p class="note">Joins the playing tracks with the same tempo multiple into one system.</p>
58 </div>
59 <div class="session">
60 <h2>Session</h2>
61 <p class="note">Saved in this browser as you go. A file keeps everything, SoundFonts included.</p>
62 <div class="session-btns">
63 <button id="export" class="small" title="Download the session (with its SoundFonts) as a file">Save to file</button>
64 <button id="import" class="small" title="Open a session file">Open file…</button>
65 <button id="start-over" class="small quiet" title="Back to the defaults">Start over</button>
66 <input id="import-file" type="file" accept=".json,application/json" hidden>
67 </div>
68 <p id="session-msg" class="note" aria-live="polite"></p>
70 </aside>
72 <div class="plot-wrap">
73 <canvas id="plot"></canvas>
574ea55Tracks, SoundFonts, sessions, recording and MIDIJeremy Magland 74 <p id="hint" class="hint"></p>
574ea55Tracks, SoundFonts, sessions, recording and MIDIJeremy Magland 76
77 <aside class="panel tracks-panel">
78 <div class="tracks-head">
79 <h2>Tracks</h2>
80 <div class="transport">
81 <button id="play-all" class="small" title="Play every track">Play all</button>
82 <button id="pause-all" class="small" title="Pause every track">Pause all</button>
83 <button id="restart-all" class="small" title="Restart every track from its start">Restart all</button>
84 </div>
85 </div>
86 <ol id="track-list" class="track-list"></ol>
87 <button id="add-track" class="add-track">+ Add track</button>
88 <div class="sf-lib">
89 <div class="sf-head">
90 <span class="sf-label">SoundFonts</span>
91 <button id="sf-load" class="small" title="Load one or more .sf2 files: their presets join every track's instrument menu">Load .sf2…</button>
92 <input id="sf-file" type="file" accept=".sf2" multiple hidden>
93 </div>
94 <p id="sf-empty" class="note">None loaded: a .sf2 file's presets join the instruments.</p>
95 <ul id="sf-list" class="sf-list"></ul>
96 <p id="sf-msg" class="note" aria-live="polite"></p>
97 </div>
98 </aside>
101 <script type="module" src="main.js"></script>
102</body>
103</html>