-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,63 @@ | ||
<!DOCTYPE html><html lang="en"><head><script type="module" src="music_player.runtime.1b191608.js"></script><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Infinite Music Player</title><link rel="stylesheet" href="music_player.663079e8.css"><link rel="icon" href="icon.b9a91aa2.png" type="image/x-icon"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"></head><body> <div class="container"> <div class="github-icon"> <a href="https://github.com/rickzx/music-transformer-demo" target="_blank"> <i class="fa-3x fa-github fab"></i> </a> </div> <h1>Infinite Music Player with Anticipatory Music Transformer</h1> <label id="init-label"> </label> <br> <br> <div> <midi-visualizer type="piano-roll" id="midi-visualizer"> </midi-visualizer> <midi-player id="midi-player" sound-font visualizer="#midi-visualizer"> </midi-player> </div> <div> <button id="startButton">Start Generator</button> <button id="pauseButton">Pause Generator</button> <button id="resetButton">Reset Generator</button> </div> <div class="footnote"> Created by Rick Zhou, Zihe Zhao <br> 2024 @ Carnegie Mellon University. <br> Powered by <a href="https://github.com/mlc-ai/web-llm" target="_blank">Web-LLM</a>, <a href="https://github.com/cifkao/html-midi-player" target="_blank">htmi-midi-player</a> </div> </div> <div class="debug" id="debug"> <hr> <p id="log"> Log:<br> </p> </div> </body></html><script src="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/@magenta/[email protected]/es6/core.js,npm/focus-visible@5,npm/[email protected]"></script><script type="module" src="music_player.53ddc1e8.js"></script> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Infinite Music Player</title> | ||
<link rel="stylesheet" href="/music_player.48580222.css"> | ||
<link rel="icon" href="/icon.6575fac7.png" type="image/x-icon"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<div class="github-icon"> | ||
<a href="https://github.com/rickzx/music-transformer-demo" target="_blank"> | ||
<i class="fab fa-github fa-3x"></i> | ||
</a> | ||
</div> | ||
<h1>Infinite Music Player with Anticipatory Music Transformer</h1> | ||
<label id="init-label"> </label> | ||
<br> | ||
<br> | ||
<div> | ||
<midi-visualizer type="piano-roll" id="midi-visualizer"> | ||
</midi-visualizer> | ||
<midi-player id="midi-player" sound-font="https://storage.googleapis.com/magentadata/js/soundfonts/sgm_plus" visualizer="#midi-visualizer"> | ||
</midi-player> | ||
</div> | ||
|
||
<div> | ||
<button id="startButton">Start Generator</button> | ||
<button id="pauseButton">Pause Generator</button> | ||
<button id="resetButton">Reset Generator</button> | ||
</div> | ||
|
||
<div class="footnote"> | ||
Created by Rick Zhou, Zihe Zhao <br> | ||
2024 @ Carnegie Mellon University. <br> | ||
Powered by <a href="https://github.com/mlc-ai/web-llm" target="_blank">Web-LLM</a>, <a href="https://github.com/cifkao/html-midi-player" target="_blank">htmi-midi-player</a> | ||
</div> | ||
</div> | ||
|
||
<div class="debug" id="debug"> | ||
<hr> | ||
<!-- <button class="testing_button" id="switchButton">Play Tchaikovsky</button> | ||
<button class="testing_button" id="moveButton">Move timestamp</button> | ||
<button class="testing_button" id="convertButton">Convert to Twinkle</button> --> | ||
<p id="log"> | ||
<!-- We are going to get rid of the buttons later. Just putting them here to show that we could:<br> | ||
  1. change the midi file that is being played. The original sound file is Greig, but click button to play Tchaikovsky.<br> | ||
  2. start playing at a specified timestamp. No matter how far along we are in the music, start playing at 60 seconds.<br> | ||
  3. convert raw output of Twinkle Twinkle Little Star to MIDI (see <a href="https://arxiv.org/pdf/2306.08620.pdf" target="_blank">this paper</a>). | ||
We expect these functions to come in handy later.<br><br> --> | ||
Log:<br> | ||
</p> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
|
||
<script src="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/@magenta/[email protected]/es6/core.js,npm/focus-visible@5,npm/[email protected]"></script> | ||
<script src="/music_player.ff50623e.js" defer=""></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.