-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
185 lines (169 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
185 lines (169 loc) · 10.8 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
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Chipsound — a browser-based player for tracker music (.mod, .s3m, .xm, .it). Drop a module on the page and it plays.">
<title>Chipsound — Player</title>
<!-- ===== Canonical / SEO ===== -->
<link rel="canonical" href="https://chipsound.com/player.html">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="author" content="Gamosoft">
<!-- ===== Open Graph (Facebook, LinkedIn, Mastodon, Bluesky, Discord, Slack, iMessage…) ===== -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Chipsound">
<meta property="og:url" content="https://chipsound.com/player.html">
<meta property="og:title" content="Chipsound — Tracker music player">
<meta property="og:description" content="A browser-based player for tracker music (.mod, .s3m, .xm, .it). Drop a module on the page and it plays.">
<meta property="og:image" content="https://chipsound.com/images/og-card.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="The Chipsound player UI with a tracker module loaded">
<meta property="og:locale" content="en_US">
<!-- ===== Twitter / X (own tags render larger cards than the og:* fallback) ===== -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@gamosoft">
<meta name="twitter:creator" content="@gamosoft">
<meta name="twitter:url" content="https://chipsound.com/player.html">
<meta name="twitter:title" content="Chipsound — Tracker music player">
<meta name="twitter:description" content="A browser-based player for tracker music. Drop a .mod / .s3m / .xm / .it file and it plays.">
<meta name="twitter:image" content="https://chipsound.com/images/og-card.jpg">
<meta name="twitter:image:alt" content="The Chipsound player UI with a tracker module loaded">
<link rel="icon" type="image/svg+xml" href="./images/favicon.svg">
<link rel="icon" type="image/x-icon" href="./favicon.ico" sizes="any">
<link rel="icon" type="image/png" sizes="96x96" href="./images/favicon-96x96.png">
<link rel="apple-touch-icon" href="./images/apple-touch-icon.png">
<meta name="theme-color" content="#00ff88">
<!-- First-paint gate: class hides body, JS removes it once the theme CSS resolves. -->
<style>html.theme-loading body { visibility: hidden; }</style>
<link rel="modulepreload" href="./js/index.js">
<link rel="preload" href="./css/fontawesome/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="./css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="./css/fontawesome/fontawesome.min.css">
<link rel="stylesheet" href="./css/fontawesome/solid.min.css">
<!-- Synchronous preboot: apply saved theme + samples-hidden class before first paint. -->
<script>
(function () {
var root = document.documentElement;
var reveal = function () { root.classList.remove('theme-loading'); };
root.classList.add('theme-loading');
setTimeout(reveal, 1000);
try {
var DEFAULT_ID = 'clusters';
var SAFE_ID = /^[a-z0-9-]{1,40}$/;
var id = DEFAULT_ID;
var samplesHidden = false;
try {
var raw = localStorage.getItem('modplayer.theme');
if (raw) {
var saved = JSON.parse(raw);
if (typeof saved === 'string' && SAFE_ID.test(saved)) id = saved;
}
var samplesRaw = localStorage.getItem('modplayer.showSamples');
if (samplesRaw !== null) {
var parsed = JSON.parse(samplesRaw);
if (parsed === false) samplesHidden = true;
}
} catch (e) { /* private mode etc. — keep defaults */ }
root.classList.add('theme-' + id);
if (samplesHidden) root.classList.add('samples-hidden');
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = './css/themes/' + id + '.css';
link.dataset.themeId = id;
link.onload = link.onerror = reveal;
document.head.appendChild(link);
} catch (e) {
reveal();
}
})();
</script>
<!-- Prefetch (not preload): the worklets are loaded via addModule() only
after the first user gesture, so prefetch warms the cache without the
"preload not used in time" warning. -->
<link rel="prefetch" href="./js/chiptune3.worklet.js">
<link rel="prefetch" href="./js/libopenmpt.worklet.js">
<script type="module" src="./js/index.js"></script>
</head>
<body>
<main class="app">
<header class="app-header">
<h1><a href="https://chipsound.com" target="_blank" rel="noopener">Chipsound</a></h1>
</header>
<section class="mod-info" aria-label="Module info">
<div class="mod-info-box"><span>Filename</span><div id="fileName"></div></div>
<div class="mod-info-box"><span>Title</span><div id="songName"></div></div>
<div class="mod-info-box"><span>Order</span><div id="order"></div></div>
<div class="mod-info-box"><span>Pattern</span><div id="pattern"></div></div>
<div class="mod-info-box"><span>Row</span><div id="row"></div></div>
<div class="mod-info-box"><span>BPM</span><div id="bpm"></div></div>
<div class="mod-info-box"><span>Channels</span><div id="channels"></div></div>
<div class="mod-info-box"><span>Samples</span><div id="samples"></div></div>
</section>
<section class="controls" id="trackerControls" aria-label="Playback controls">
<input type="file" id="files" name="files" accept=".mod,.s3m,.xm,.it" hidden>
<!-- data-track attrs below are inert HTML markers; the click listener that reads them is injected only on chipsound.com. See README → Privacy & telemetry. -->
<button id="load" class="retro-button" type="button" data-track="load_clicked" aria-label="Load module (L)" title="Load module (L)">
<i class="fas fa-folder-open" aria-hidden="true"></i> <span class="btn-label">Load</span>
</button>
<button id="play" class="retro-button" type="button" data-track="play_clicked" aria-label="Play (Space)" title="Play / Pause (Space)" disabled>
<i class="fas fa-play" aria-hidden="true"></i>
<i class="fas fa-pause" aria-hidden="true"></i>
<span class="btn-label play-text">Play</span>
<span class="btn-label pause-text">Pause</span>
</button>
<button id="stop" class="retro-button" type="button" data-track="stop_clicked" aria-label="Stop and rewind to start (S)" title="Stop (S)" disabled>
<i class="fas fa-stop" aria-hidden="true"></i> <span class="btn-label">Stop</span>
</button>
<button id="previous" class="retro-button" type="button" data-track="previous_clicked" aria-label="Previous order (Left)" title="Previous order (←)" disabled>
<i class="fas fa-step-backward" aria-hidden="true"></i> <span class="btn-label">Previous</span>
</button>
<button id="next" class="retro-button" type="button" data-track="next_clicked" aria-label="Next order (Right)" title="Next order (→)" disabled>
<i class="fas fa-step-forward" aria-hidden="true"></i> <span class="btn-label">Next</span>
</button>
<label id="subsongControl" class="subsong-control" title="Subsong" hidden>
<i class="fa-solid fa-list-ol" aria-hidden="true"></i>
<select id="subsong" class="retro-select" aria-label="Subsong" title="Subsong"></select>
</label>
<label class="theme-control" aria-label="Theme" title="Cycle theme (T)">
<i class="fa-solid fa-table-cells-large" aria-hidden="true"></i>
<select id="themePicker" class="retro-select" aria-label="Theme (T)" title="Cycle theme (T)"></select>
</label>
<button id="toggle-visualizations" class="retro-button" type="button" data-track="effects_clicked" aria-label="Toggle effects (E)" title="Toggle effects (E)" disabled>
<i class="fa-solid fa-eye" aria-hidden="true"></i> <span class="btn-label">Effects</span>
</button>
<label id="vizControl" class="viz-control" aria-label="Visualization" title="Visualization (V to cycle)">
<i class="fa-solid fa-wand-magic-sparkles" aria-hidden="true"></i>
<select id="vizPicker" class="retro-select" aria-label="Visualization (V to cycle)" title="Visualization (V to cycle)" disabled></select>
</label>
<button id="toggle-samples" class="retro-button" type="button" data-track="samples_clicked" aria-label="Toggle samples (I)" title="Toggle samples (I)" disabled>
<i class="fa-solid fa-record-vinyl" aria-hidden="true"></i> <span class="btn-label">Samples</span>
</button>
<label class="volume-control" aria-label="Volume" title="Volume">
<i class="fa-solid fa-volume-high" aria-hidden="true"></i>
<input id="volume" type="range" min="0" max="100" step="1" value="100" aria-label="Volume" title="Volume">
</label>
<button id="show-help" class="retro-button retro-button-icon" type="button" data-track="help_clicked" aria-label="Keyboard shortcuts (?)" title="Keyboard shortcuts (?)">
<i class="fa-solid fa-circle-question" aria-hidden="true"></i>
</button>
</section>
<section class="tracker-container">
<div class="tracker-main">
<div id="trackerHeader" class="tracker-header" role="row"></div>
<div id="trackerPatterns"></div>
</div>
<aside class="sample-section" aria-label="Samples">
<div id="sampleList" class="sample-list"></div>
</aside>
</section>
</main>
<div id="dropZone" aria-hidden="true">
<div class="drop-zone-card">
<i class="fa-solid fa-file-arrow-down" aria-hidden="true"></i>
<div class="drop-zone-title">Drop module to play</div>
<div class="drop-zone-hint">.mod, .s3m, .xm, .it</div>
</div>
</div>
</body>
</html>