mirror of
https://github.com/danog/system-bus-radio.git
synced 2024-12-02 12:47:45 +01:00
65 lines
2.0 KiB
HTML
65 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="System Bus Radio JS Port: Play AM radio waves from a computer without an AM radio using only your web browser.">
|
|
<title>System Bus Radio</title>
|
|
<link rel="stylesheet" href="main.css"></style>
|
|
<script src="airgap.js"></script>
|
|
</head>
|
|
<body style="text-align:center">
|
|
<header>
|
|
<h1>System Bus Radio</h1>
|
|
</header>
|
|
<p><em>Tested on MacBook Air / Chrome with AM tuner at 1560 Hz. <a href="https://github.com/fulldecent/system-bus-radio/blob/master/TEST-DATA.tsv">See field reports</a> for other equipment and frequencies.</em></p>
|
|
<p>
|
|
<button id="play" onclick="start()">Play tune</button>
|
|
<button id="stop" onclick="end()">Stop tune</button>
|
|
</p>
|
|
<section style="display:flex;width:60%;margin:auto">
|
|
<textarea style="width:2rem" id="progress" readonly></textarea>
|
|
<textarea style="flex:1;height:50rem" id="tune">
|
|
400 2673
|
|
400 2349
|
|
400 2093
|
|
400 2349
|
|
400 2673
|
|
400 0
|
|
400 2673
|
|
400 0
|
|
790 2673
|
|
400 2349
|
|
400 2349
|
|
400 0
|
|
790 2349
|
|
400 2673
|
|
400 3136
|
|
400 0
|
|
790 3136
|
|
400 2673
|
|
400 2349
|
|
400 2093
|
|
400 2349
|
|
400 2673
|
|
400 0
|
|
400 2673
|
|
400 0
|
|
400 2673
|
|
400 0
|
|
400 2673
|
|
400 2349
|
|
400 0
|
|
400 2349
|
|
400 2673
|
|
400 2349
|
|
790 2093</textarea>
|
|
</section>
|
|
<p>Edit the above to make any music you like. <a href="https://github.com/fulldecent/system-bus-radio/issues/28">Tune file format</a> is time (ms) and frequency (Hz).</p>
|
|
<p>Chrome has errors if you open this file locally (<code>file://</code>). Try using <code>php -S localhost:8000</code> or similar for a quick web server.</p>
|
|
<p>Ported by <a href="https://github.com/quanyang">Yeo Quan Yang</a> & maintained by <a href="https://github.com/rocketinventor">Elliot Gerchak</a>.</p>
|
|
<p>Original machine code by <a href="https://github.com/fulldecent">William Entriken</a>.</p>
|
|
<p><strong>Project site at <a href="https://github.com/fulldecent/system-bus-radio">https://github.com/fulldecent/system-bus-radio</a></strong></p>
|
|
</body>
|
|
</html>
|