adding packages

This commit is contained in:
2026-01-15 14:38:46 -08:00
parent ef86e3ab6a
commit 6869cf47e5
5253 changed files with 726695 additions and 34 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

+43
View File
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta content="IE=Edge" http-equiv="X-UA-Compatible" />
<meta name="description" content="A new Flutter project." />
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="example" />
<link rel="apple-touch-icon" href="/icons/Icon-192.png" />
<title>example</title>
<link rel="manifest" href="/manifest.json" />
</head>
<body>
<button id="temp">Play</button>
<script src="main.dart.js" type="application/javascript"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.7.39/Tone.js"
type="application/javascript"
></script>
<script>
const synth = new Tone.PolySynth().toDestination();
document.body.addEventListener("click", () => {
// const note = "C4";
// playNote(note);
// setTimeout(() => stopNote(note), 1000);
Tone.context.resume();
});
function playNote(note, duration) {
Tone.context.resume();
synth.triggerAttack(note, duration ?? Tone.context.currentTime);
}
function stopNote(note) {
Tone.context.resume();
synth.triggerRelease(note, Tone.context.currentTime);
}
</script>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
{
"name": "example",
"short_name": "example",
"start_url": ".",
"display": "minimal-ui",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}