Files
fmini-1/web/site_fmini.html
T

944 lines
75 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<!-- SPDX-License-Identifier: GPL-3.0-only
FMini-1 site + installer. The installer logic is the Felucca installer's (Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments) -->
<html lang="pt">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark">
<meta name="description" content="FMini-1: a monophonic synth firmware for the M-VAVE FM-1. 3 oscillators, ladder filter, 100 presets, arpeggiator, sequencer, MIDI.">
<title>FMini-1 — a monophonic synth for the M-VAVE FM-1</title>
<style>
:root {
--bg: #0d0c10; --surface: #15131a; --surface2: #1c1922; --line: #2a2631; --fg: #f4f0ea; --dim: #a29cab; --mute: #6f6a78;
--or: #ff7a1a; --or2: #ff9a4d; --ok: #7bd88f; --bad: #ff7a6a;
--sans: "Inter", "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--fg); font: 17px/1.65 var(--sans); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--or2); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.announce { background: var(--or); color: #1a0e05; text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 16px; }
.announce .ver { display: inline-block; font: 700 12px/1 var(--mono); background: #1a0e05; color: var(--or2); border-radius: 4px; padding: 3px 6px; margin-left: 6px; }
header.nav { position: sticky; top: 0; z-index: 20; background: rgba(13,12,16,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font-weight: 900; font-style: italic; letter-spacing: -.04em; font-size: 23px; color: var(--fg); text-decoration: none; }
.brand i { color: var(--or); }
header.nav nav { display: flex; gap: 2px; margin-left: auto; }
header.nav nav a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
header.nav nav a:hover { color: var(--fg); background: var(--surface2); }
header.nav nav a.keep { color: #1a0e05; background: var(--or); font-weight: 700; margin-left: 6px; }
header.nav nav a.keep:hover { background: var(--or2); }
.lang { font: 600 12px/1 var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.lang:hover { color: var(--fg); border-color: var(--mute); }
@media (max-width: 720px) { header.nav nav a:not(.keep) { display: none; } }
/* hero */
.hero { padding: 72px 0 0; }
.logo { margin: 0; font-weight: 900; font-style: italic; letter-spacing: -.05em; line-height: .92;
font-size: clamp(64px, 13vw, 132px); font-family: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif; }
.logo .f { color: var(--or); }
.by { margin: 14px 0 0; font-size: clamp(18px, 3vw, 24px); font-weight: 600; color: var(--dim); }
.tag { margin: 28px 0 0; max-width: 700px; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.sub { margin: 16px 0 0; max-width: 640px; color: var(--dim); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.btn { display: inline-block; text-decoration: none; font: 700 15px/1 var(--sans); border-radius: 10px; padding: 16px 24px; cursor: pointer; border: 0; }
.btn.pri { color: #1a0e05; background: var(--or); }
.btn.pri:hover { background: var(--or2); }
.btn.sec2 { color: var(--fg); background: var(--surface2); border: 1px solid var(--line); }
.btn.sec2:hover { border-color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { font: 500 12.5px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.photo { margin: 52px 0 0; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: auto; }
/* hero: the Minimoog beside the title, then it shrinks into the FM-1's screen as the page scrolls */
.hero2 { position: relative; height: calc(100svh - 60px); }
.stage { position: relative; height: 100%; overflow: hidden; }
.copy1 { position: absolute; z-index: 3; left: max(24px, calc((100% - 1032px) / 2)); top: 50%; transform: translateY(-50%); width: min(500px, 46%); will-change: opacity, transform; }
.kick { margin: 0 0 18px; font: 500 13px/1.4 var(--mono); color: var(--dim); }
.kick .ver { display: inline-block; margin-left: 8px; font: 700 11.5px/1 var(--mono); background: var(--or); color: #1a0e05; border-radius: 4px; padding: 4px 6px; }
.copy1 .logo { font-size: clamp(56px, 8.4vw, 118px); }
.copy1 .tag { font-size: clamp(20px, 2.4vw, 28px); margin-top: 22px; }
.copy1 .sub { font-size: 16px; }
.copy1 .cta { margin-top: 26px; }
.mm { position: absolute; z-index: 2; left: 0; top: 0; width: 100px; height: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); mask-composite: intersect; will-change: left, top, width, opacity; pointer-events: none; }
.fm { position: absolute; z-index: 1; margin: 0; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.fm .body { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.fm .lcd { position: absolute; left: 30.73%; top: 15.23%; width: 16.76%; height: 28.3%; background: #000; overflow: hidden; border-radius: 1.5%; opacity: 0;
box-shadow: 0 0 18px rgba(255,122,26,.18); cursor: pointer; }
.fm .lcd #scr { position: absolute; inset: 0; }
.fm .lcd img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s ease; }
.copy2 { position: absolute; z-index: 3; left: 0; right: 0; text-align: center; opacity: 0; pointer-events: none; padding: 0 24px; }
.copy2 h2 { margin: 0 auto; font-size: clamp(26px, 4vw, 40px); }
.copy2 p { margin: 10px auto 0; color: var(--dim); max-width: 560px; }
.copy2 .cta { justify-content: center; margin-top: 20px; }
.hint { position: absolute; z-index: 3; pointer-events: none; left: 0; right: 0; bottom: 14px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hint i { display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--mute), transparent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); opacity: .4; } }
@media (max-width: 820px) {
.copy1 { top: 18px; transform: none; width: auto; right: 24px; left: 24px; }
.copy1 .sub, .copy1 .tags, .copy1 .by { display: none; }
.copy1 .kick { margin-bottom: 10px; }
.copy1 .logo { font-size: clamp(48px, 15vw, 80px); }
.copy1 .tag { margin-top: 12px; font-size: 19px; }
.copy1 .cta { margin-top: 18px; }
}
body.rm .hint { display: none; }
/* sections */
section.s { padding: 104px 0 0; }
video.adv { display: block; width: 100%; margin-top: 28px; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.eyebrow { font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin: 0 0 14px; }
h2 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 760px; }
.lead { margin: 16px 0 0; color: var(--dim); max-width: 700px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 48px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feat { border-top: 1px solid var(--line); padding: 20px 0 36px; }
.feat .n { font: 600 13px/1 var(--mono); color: var(--or); }
.feat h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.6; }
/* screens */
.viewer { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 56px; align-items: center; margin-top: 48px; }
@media (max-width: 820px) { .viewer { grid-template-columns: 1fr; gap: 28px; } }
.glass { background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; box-shadow: 0 30px 80px rgba(255,122,26,.07); }
.glass img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.tabs button { font: 600 12.5px/1 var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.tabs button:hover { color: var(--fg); border-color: var(--mute); }
.tabs button[aria-selected=true] { color: #1a0e05; background: var(--or); border-color: var(--or); }
.viewer h3 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.viewer p { margin: 0 0 14px; color: var(--dim); }
.viewer ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15.5px; }
.viewer li { margin: 6px 0; }
.viewer li::marker { color: var(--or); }
.pops { display: grid; grid-template-columns: repeat(3, minmax(0, 290px)); justify-content: space-between; gap: 36px 28px; margin-top: 72px; }
@media (max-width: 900px) { .pops { grid-template-columns: repeat(2, minmax(0, 290px)); } }
@media (max-width: 560px) { .pops { grid-template-columns: minmax(0, 320px); justify-content: center; } }
.pop figure { margin: 0; }
.pop h4 { margin: 16px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pop p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; font-style: italic; }
/* presets */
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 44px 0 20px; padding: 0; list-style: none; }
@media (max-width: 900px) { .presets { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .presets { grid-template-columns: repeat(2, 1fr); } }
.presets li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 600 14px/1.2 var(--mono); color: var(--fg); }
.presets li b { display: block; color: var(--or); font-size: 12px; margin-bottom: 6px; font-weight: 600; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.groups li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--dim); }
.groups li b { color: var(--fg); font-weight: 600; margin-right: 4px; }
/* buttons list */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 48px; }
@media (max-width: 700px) { .keys { grid-template-columns: 1fr; } }
.keys div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 13px 0; }
.keys b { font: 700 13px/1.2 var(--mono); color: var(--or); }
.keys span { color: var(--dim); font-size: 15px; line-height: 1.5; }
h3.sub2 { margin: 72px 0 0; font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
/* install */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin-top: 44px; }
@media (max-width: 560px) { .card { padding: 20px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0 0 30px; padding: 0; }
.steps b { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.steps b i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--or); color: #1a0e05; font: 800 13px/1 var(--sans); font-style: normal; }
.steps span.d { display: block; color: var(--dim); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
#go { width: 100%; font: 800 18px/1 var(--sans); color: #1a0e05; border: 0; border-radius: 12px; padding: 22px 20px; cursor: pointer; background: var(--or); transition: transform .08s, background .15s; }
#go:hover:not(:disabled) { background: var(--or2); }
#go:active:not(:disabled) { transform: translateY(1px); }
#go:disabled { cursor: default; background: var(--surface2); color: var(--mute); }
body.busy #go { background: var(--surface2); color: var(--or2); }
.prog { margin-top: 22px; }
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 999px; background: var(--or); transition: width .25s ease; position: relative; }
body.busy .fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.25) 0 10px, rgba(255,255,255,0) 10px 22px);
background-size: 44px 100%; animation: slide 1s linear infinite; }
@keyframes slide { to { background-position: 44px 0; } }
body.finished .fill { background: var(--ok); }
.row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; gap: 12px; }
#pct { font: 700 24px/1 var(--mono); font-variant-numeric: tabular-nums; }
#status { color: var(--fg); font-size: 15px; text-align: right; min-height: 1.5em; }
body.bad #status { color: var(--bad); }
body.finished #status { color: var(--ok); font-weight: 700; }
#phases { display: flex; list-style: none; padding: 0; margin: 16px 0 0; gap: 6px; }
#phases li { flex: 1; text-align: center; font-size: 12px; color: var(--mute); padding-top: 10px; position: relative; }
#phases li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); }
#phases li.now { color: var(--or2); font-weight: 700; }
#phases li.now::before { background: var(--or); }
#phases li.done { color: var(--dim); }
#phases li.done::before { background: #7a4a22; }
body.finished #phases li.done::before { background: var(--ok); }
.note { color: var(--dim); font-size: 14.5px; margin: 18px 0 0; }
.note.warn { color: #ffb37a; }
details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: var(--dim); font-size: 14.5px; }
summary:hover { color: var(--fg); }
details p { color: var(--dim); font-size: 14px; margin: 10px 0; }
details button { font: 600 14px/1 var(--sans); color: var(--fg); background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; cursor: pointer; }
details button:disabled { opacity: .35; cursor: default; }
input[type=file] { color: var(--dim); font-size: 13px; max-width: 100%; }
pre { color: var(--mute); font-size: 12px; white-space: pre-wrap; margin: 10px 0 0; max-height: 220px; overflow: auto; }
footer { color: var(--mute); font-size: 12.5px; line-height: 1.7; margin-top: 120px; padding: 36px 0 48px; border-top: 1px solid var(--line); }
footer a { color: var(--dim); }
footer .credits { color: var(--dim); font-size: 13.5px; }
footer .mk { font: 900 italic 24px/1 "Montserrat", "Inter", Arial, sans-serif; letter-spacing: -.04em; color: var(--fg); margin-bottom: 14px; display: block; }
footer .mk i { color: var(--or); font-style: italic; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fill::after { animation: none !important; } }
</style>
</head>
<body>
<header class="nav">
<div class="wrap">
<a class="brand" href="#top" aria-label="FMini-1"><i>FM</i>ini-<i>1</i></a>
<nav>
<a href="#features" data-t="nav_f"></a>
<a href="#screens" data-t="nav_s"></a>
<a href="#presets" data-t="nav_p"></a>
<a href="#midi" data-t="nav_m"></a>
<a href="#install" class="keep" data-t="nav_i"></a>
</nav>
<button class="lang" id="lang" aria-label="Language"></button>
</div>
</header>
<main>
<section class="hero2" id="top">
<div class="stage" id="stage">
<div class="copy1" id="copy1">
<p class="kick"><span data-t="announce"></span><span class="ver" id="ver">v1.1.0</span></p>
<h1 class="logo"><span class="f">FM</span>ini-<span class="f">1</span></h1>
<p class="by">by Ruppert</p>
<p class="tag" data-t="tagline"></p>
<p class="sub" data-t="sub"></p>
<div class="cta">
<a class="btn pri" href="#install" data-t="cta_install"></a>
<a class="btn sec2" href="#screens" data-t="cta_screens"></a>
</div>
<ul class="tags"><li>3 OSC</li><li data-t="chip_f"></li><li data-t="chip_p"></li><li>ARP</li><li>SEQ</li><li>MIDI</li></ul>
</div>
<img class="mm" id="mm" alt="Minimoog" src="/*HERO*/">
<figure class="fm" id="fm">
<img class="body" id="fm-body" alt="M-VAVE FM-1" src="">
<div class="lcd" id="lcd"><div id="scr"><img id="lcd-a" alt=""><img id="lcd-b" alt=""></div></div>
</figure>
<div class="copy2" id="copy2">
<h2 data-t="hero2_t"></h2>
<p data-t="hero2_s"></p>
<div class="cta">
<a class="btn pri" href="#install" data-t="cta_install"></a>
<a class="btn sec2" href="#screens" data-t="cta_screens"></a>
</div>
</div>
<div class="hint" id="hint" aria-hidden="true"><span data-t="hint"></span><i></i></div>
</div>
</section>
<section class="s wrap" id="video">
<p class="eyebrow" data-t="e_video"></p>
<h2 data-t="h_video"></h2>
<video class="adv" controls playsinline preload="metadata" poster="fmini-ad-poster.jpg"><source src="fmini-ad.mp4" type="video/mp4"></video>
</section>
<section class="s wrap" id="features">
<p class="eyebrow" data-t="e_sound"></p>
<h2 data-t="h_sound"></h2>
<p class="lead" data-t="l_sound"></p>
<div class="grid">
<article class="feat"><span class="n">01</span><h3 data-t="f1t"></h3><p data-t="f1d"></p></article>
<article class="feat"><span class="n">02</span><h3 data-t="f2t"></h3><p data-t="f2d"></p></article>
<article class="feat"><span class="n">03</span><h3 data-t="f3t"></h3><p data-t="f3d"></p></article>
<article class="feat"><span class="n">04</span><h3 data-t="f4t"></h3><p data-t="f4d"></p></article>
<article class="feat"><span class="n">05</span><h3 data-t="f5t"></h3><p data-t="f5d"></p></article>
<article class="feat"><span class="n">06</span><h3 data-t="f6t"></h3><p data-t="f6d"></p></article>
</div>
</section>
<section class="s wrap" id="screens">
<p class="eyebrow" data-t="e_screens"></p>
<h2 data-t="h_screens"></h2>
<p class="lead" data-t="l_screens"></p>
<div class="viewer">
<div class="glass"><img id="v-img" alt=""></div>
<div>
<div class="tabs" role="tablist" id="v-tabs"></div>
<h3 id="v-t"></h3>
<p id="v-d"></p>
<ul id="v-l"></ul>
</div>
</div>
<div class="pops" id="pops"></div>
</section>
<section class="s wrap" id="presets">
<p class="eyebrow" data-t="e_presets"></p>
<h2 data-t="h_presets"></h2>
<p class="lead" data-t="l_presets"></p>
<ul class="presets" id="pl"></ul>
<ul class="groups">
<li><b data-t="g_bass"></b> 25</li><li><b data-t="g_lead"></b> 25</li><li><b data-t="g_wind"></b> 20</li><li><b data-t="g_keys"></b> 15</li><li><b data-t="g_fx"></b> 15</li><li><b data-t="g_user"></b> U01–U32</li>
</ul>
</section>
<section class="s wrap" id="midi">
<p class="eyebrow" data-t="e_midi"></p>
<h2 data-t="h_midi"></h2>
<p class="lead" data-t="l_midi"></p>
<div class="grid">
<article class="feat"><span class="n">01</span><h3 data-t="m1t"></h3><p data-t="m1d"></p></article>
<article class="feat"><span class="n">02</span><h3 data-t="m2t"></h3><p data-t="m2d"></p></article>
<article class="feat"><span class="n">03</span><h3 data-t="m3t"></h3><p data-t="m3d"></p></article>
</div>
<h3 class="sub2" data-t="h_keys"></h3>
<div class="keys" id="keys"></div>
</section>
<section class="s wrap" id="install">
<p class="eyebrow" data-t="e_install"></p>
<h2 data-t="h_install"></h2>
<p class="lead" data-t="l_install"></p>
<div class="card">
<ol class="steps">
<li><b><i>1</i><span data-t="step1"></span></b><span class="d" data-t="s1"></span></li>
<li><b><i>2</i><span data-t="step2"></span></b><span class="d" data-t="s2"></span></li>
<li><b><i>3</i><span data-t="step3"></span></b><span class="d" data-t="s3"></span></li>
</ol>
<button id="go" disabled data-t="install"></button>
<div class="prog">
<div class="meter" id="bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="fill" id="fill"></div></div>
<div class="row"><span id="pct">0%</span><span id="status" aria-live="polite"></span></div>
<ul id="phases">
<li data-t="ph_verify"></li><li data-t="ph_loader"></li><li data-t="ph_write"></li><li data-t="ph_reboot"></li><li data-t="ph_done"></li>
</ul>
</div>
<p class="note" data-t="intro"></p>
<p class="note warn" data-t="warn"></p>
<p class="note" data-t="direct"></p>
<p class="note" data-t="beta"></p>
<p class="note"><span data-t="brick"></span>
<a href="https://github.com/kurogedelic/FM-1-transporter" target="_blank" rel="noopener">FM-1-transporter</a></p>
<details>
<summary data-t="stockTitle"></summary>
<p data-t="back"></p>
<p><a href="https://www.m-vave.com/download" target="_blank" rel="noopener">M-VAVE Downloads</a></p>
<p><label><span data-t="stockFile"></span><br><input id="stock-file" type="file" accept=".fwsc"></label></p>
<p><button id="stock-go" disabled data-t="stockGo"></button></p>
<p data-t="stockBackup"></p>
<p><label><input id="stock-recovery" type="checkbox"> <span data-t="stockRecovery"></span></label></p>
</details>
<details>
<summary data-t="logT"></summary>
<pre id="log"></pre>
</details>
</div>
</section>
</main>
<footer>
<div class="wrap">
<span class="mk"><i>FM</i>ini-<i>1</i> <small style="font-weight:600;font-size:13px;letter-spacing:0;color:var(--dim)">by Ruppert</small></span>
<span class="credits"><span data-t="cr_made"></span> <a href="https://github.com/hugelton/Felucca" target="_blank" rel="noopener">Felucca</a><span data-t="cr_made2"></span><br><span data-t="cr_ai"></span></span><br><br>
FMini-1 by Ruppert, a custom firmware based on Felucca by Leo Kuroshita (@kurogedelic), <a href="https://hugelton.com" target="_blank" rel="noopener">Hügelton Instruments</a>, with its CrispyZebra waveforms, drum voices, Sample Pack and Fukiai icons (MIT).<br>
Font: Inter Tight (The Inter Project Authors, SIL OFL 1.1). Samples: Versilian Studios VSCO-2 Community Edition and VCSL (CC0 1.0).<br>
FM6 engine: msfa from Dexed (Google Inc., Pascal Gauthier, Apache-2.0). The package also holds three JieLi AC79 SDK files, uboot.boot, cfg_tool.bin and eq_cfg_hw.bin (JieLi Technology, Apache-2.0). Licences: <a href="https://github.com/hugelton/Felucca/blob/main/LICENSING.md">LICENSING</a>, <a href="https://github.com/hugelton/Felucca/blob/main/LICENSE">GPL-3.0</a>, <a href="https://github.com/hugelton/Felucca/tree/main/LICENSES/">all</a>.<br>
M-VAVE and FM-1 are trademarks of their respective owners.<br>
<span data-t="license"></span> <a href="https://github.com/hugelton/Felucca" target="_blank" rel="noopener">github.com/hugelton/Felucca</a>
</div>
</footer>
<script type="module">
/*LIB*/
const $ = (id) => document.getElementById(id);
const TEXT = {
pt: {
intro: "Conecte o FM-1 por USB. (Funciona no Chrome ou no Edge.)",
warn: "Não desconecte o cabo USB durante a gravação.",
install: "Instalar", other: "English",
editor: "Editor",
direct: "Ligue o cabo USB direto no computador. Não precisa de Probe nem de Transporter.",
brick: "Se a instalação falhar e o FM-1 não ligar mais, recuperá-lo exige um Transporter:",
beta: "O FMini-1 é uma versão experimental, baseada no Felucca. O autor não se responsabiliza se o seu FM-1 for danificado ou se comportar de forma estranha por causa deste firmware personalizado. Use por sua conta e risco.",
back: "Baixe o FM-1 V15 oficial na M-VAVE e escolha o FM-1.fwsc sem modificações. O navegador valida o arquivo localmente; ele não é enviado a nenhum servidor.",
stockTitle: "Voltar ao V15 oficial", stockFile: "FM-1.fwsc oficial", stockGo: "Fazer backup e voltar ao V15 oficial",
stockBackup: "Músicas, músicas salvas, bancos de sons, samples e ajustes atuais são salvos antes. Firmware antigo precisa de uma atualização do Felucca para fazer o backup completo.",
stockRecovery: "Retomar uma atualização interrompida: já salvei um backup completo neste computador",
stockValid: "V15 oficial verificado", stockConfirm: "O arquivo de backup completo foi salvo neste computador? Continuar vai voltar ao V15 oficial, que não abre as músicas do Felucca.",
stockNeedBackup: "Do modo de atualização não dá para exportar backup. Só marque retomar se você já salvou um backup completo.",
stockUnsupported: "Este firmware não suporta backup completo. Instale primeiro a versão atual.",
backup: "Salvando backup completo ", stockError: "Não foi possível validar o firmware oficial: ",
nomidi: "Este navegador não consegue. Abra a página no Chrome ou no Edge.", loadfail: "Não foi possível carregar: ",
start: "Iniciando", verify: "Verificando", loader: "Entrando no modo de atualização", write: "Gravando",
reboot: "Reiniciando", done: "Pronto! O FM-1 agora é um FMini-1", stopped: "Interrompido. Desconecte e reconecte o USB e aperte Instalar de novo.",
error: "Erro: ",
denied: "O acesso ao MIDI (SysEx) não foi permitido. Permita o MIDI nas configurações do site (barra de endereço) e aperte Instalar de novo.",
notfound: "FM-1 não encontrado. Confira o cabo USB (precisa ser de dados), feche outros apps que usam MIDI e aperte Instalar de novo.",
model: "O aparelho conectado não é um FM-1.",
lost: "A conexão USB caiu. Reconecte e aperte Instalar de novo.",
noloader: "O FM-1 em modo de atualização não foi encontrado. Reconecte o USB e aperte Instalar de novo (ele fica em modo de atualização até terminar).",
noreturn: "O FM-1 não voltou. Desligue e ligue de novo.",
mismatch: "Gravado, mas o FM-1 informa outra versão: ",
badpkg: "O arquivo a instalar está danificado. Recarregue a página.",
leave: "Gravando. Não feche a página.",
license: "GPL-3.0, sem garantia. Código-fonte:",
ready: "Pronto. Conecte o FM-1 e aperte Instalar.",
step1: "Conectar", step2: "Instalar", step3: "Tocar",
s1: "Ligue o FM-1 ao computador com um cabo USB de dados.", s2: "Aperte Instalar e mantenha o cabo conectado até aparecer Pronto.", s3: "O FM-1 reinicia como FMini-1, com a tela de abertura.",
ph_verify: "Verificar", ph_loader: "Modo de atualização", ph_write: "Gravar", ph_reboot: "Reiniciar", ph_done: "Pronto",
tagline: "Um sintetizador monofônico estilo Minimoog para o M-VAVE FM-1",
feat: "3 osciladores · filtro ladder · 100 presets · arpejador · MIDI",
risk: "Use por sua conta e risco", logT: "Detalhes", fw: "Firmware",
},
ja: {
intro: "FM-1 を USB で接続してください。(Chrome か Edge で使えます)",
warn: "書き込み中は USB を抜かないでください。",
install: "インストール", other: "English",
editor: "エディタ(インストール後、パソコンから音色やシーケンスを編集)",
direct: "USB ケーブルはパソコンに直接つないでください。Probe や Transporter などの機材は不要です。",
brick: "万一インストールに失敗して起動しなくなった場合は、復旧に Transporter が必要です:",
beta: "FMini-1 は Felucca をベースにした実験版です。このカスタムファームウェアを使ったことで FM-1 が壊れたり不具合が起きたりしても、作者は一切の責任を負いません。自己責任でお使いください。",
back: "M-VAVEから公式FM-1 V15を取得し、未変更のFM-1.fwscを選んでください。ファイルはこのブラウザ内で検証し、サーバーへ送りません。",
stockTitle: "公式V15に戻す", stockFile: "公式FM-1.fwsc", stockGo: "バックアップして公式V15へ戻す",
stockBackup: "現在の曲・保存曲・音色バンク・サンプル・設定を先に保存します。全体バックアップ非対応版は、Feluccaを更新してから行ってください。復元はFeluccaを再インストールしてエディタから行います。",
stockRecovery: "更新中断の再開:全体バックアップはすでにパソコンへ保存済み",
stockValid: "公式V15を確認しました", stockConfirm: "全体バックアップファイルをパソコンに保存できましたか? 続けると公式V15へ戻します。Feluccaの曲は公式V15では開けません。",
stockNeedBackup: "書き込みモードからはバックアップできません。保存済みバックアップがある場合だけ、更新中断の再開にチェックしてください。",
stockUnsupported: "このFeluccaは全体バックアップに未対応です。先に最新版をインストールしてください。",
backup: "全体バックアップ保存中 ", stockError: "公式ファイルを確認できません: ",
nomidi: "このブラウザでは使えません。Chrome か Edge で開いてください。", loadfail: "読み込めませんでした: ",
start: "開始します", verify: "確認中", loader: "書き込みモードに切り替え中", write: "書き込み中",
reboot: "再起動中", done: "完了しました", stopped: "途中で止まりました。USB を挿し直してもう一度押してください。",
error: "エラー: ",
denied: "MIDI(SysEx)の使用が許可されませんでした。アドレスバーのサイト設定で MIDI を許可して、もう一度押してください。",
notfound: "FM-1 が見つかりません。USB ケーブル(データ通信用か)を確かめ、MIDI を使う他のアプリを閉じてから、もう一度押してください。",
model: "接続されている機器は FM-1 ではありません。",
lost: "USB の接続が切れました。挿し直してもう一度押してください。",
noloader: "書き込みモードの FM-1 が見つかりません。USB を挿し直してもう一度押してください(終わるまで書き込みモードのままです)。",
noreturn: "FM-1 が戻ってきません。電源を入れ直してください。",
mismatch: "書き込みは終わりましたが、FM-1 が別のバージョンを報告しています: ",
badpkg: "インストールするファイルが壊れています。ページを再読み込みしてください。",
leave: "書き込み中です。ページを閉じないでください。",
license: "GPL-3.0、無保証。ソース:",
ready: "準備完了。FM-1 を接続して「インストール」を押してください。",
step1: "接続", step2: "インストール", step3: "演奏",
s1: "USB データケーブルで FM-1 をパソコンに接続します。", s2: "「インストール」を押し、「完了」と出るまでケーブルを抜かないでください。", s3: "FM-1 が再起動し、FMini-1 のスプラッシュ画面が表示されます。",
ph_verify: "確認", ph_loader: "更新モード", ph_write: "書き込み", ph_reboot: "再起動", ph_done: "完了",
tagline: "M-VAVE FM-1 用 Minimoog スタイルのモノフォニックシンセ",
feat: "3 オシレーター · ラダーフィルター · 100 プリセット · アルペジエーター · MIDI",
risk: "自己責任でお使いください", logT: "詳細", fw: "ファームウェア",
},
en: {
intro: "Connect the FM-1 by USB. (Works in Chrome or Edge.)",
warn: "Do not unplug the USB cable while writing.",
install: "Install", other: "日本語",
editor: "Editor (after installing: edit sounds and sequences from the computer)",
direct: "Connect the USB cable directly to the computer. No probe or Transporter is needed.",
brick: "If an install fails and the FM-1 no longer starts, recovering it needs a Transporter:",
beta: "FMini-1 is an experimental release based on Felucca. The author accepts no responsibility if your FM-1 is damaged or misbehaves because of this custom firmware. Use it at your own risk.",
back: "Get official FM-1 V15 from M-VAVE and select the unmodified FM-1.fwsc. The browser validates it locally; it is not sent to a server.",
stockTitle: "Return to official V15", stockFile: "Official FM-1.fwsc", stockGo: "Back up and return to official V15",
stockBackup: "Current music, saved music, sound banks, samples and settings are saved first. Older firmware needs a Felucca update for complete backups. To restore an archive later, reinstall Felucca and use the editor.",
stockRecovery: "Resume an interrupted update: I already saved a complete backup to this computer",
stockValid: "Official V15 verified", stockConfirm: "Has the complete backup file been saved to this computer? Continue to return to official V15. Official V15 cannot open Felucca music.",
stockNeedBackup: "An update loader cannot export a backup. Only select resume if you already saved a complete backup.",
stockUnsupported: "This Felucca does not support complete backups. Install the current Felucca first.",
backup: "Saving complete backup ", stockError: "Cannot validate official firmware: ",
nomidi: "This browser cannot do it. Open the page in Chrome or Edge.", loadfail: "Could not load: ",
start: "Starting", verify: "Verifying", loader: "Switching to update mode", write: "Writing",
reboot: "Restarting", done: "Done", stopped: "Stopped. Replug the USB cable and press Install again.",
error: "Error: ",
denied: "MIDI (SysEx) access was not allowed. Allow MIDI in the site settings (address bar) and press Install again.",
notfound: "FM-1 not found. Check the USB cable (a data cable), close other apps that use MIDI, and press Install again.",
model: "The connected device is not an FM-1.",
lost: "The USB connection was lost. Replug it and press Install again.",
noloader: "The FM-1 in update mode was not found. Replug the USB cable and press Install again (it stays in update mode until it is finished).",
noreturn: "The FM-1 did not come back. Power-cycle it.",
mismatch: "Written, but the FM-1 reports another version: ",
badpkg: "The file to install is damaged. Reload the page.",
leave: "Writing. Do not close the page.",
license: "GPL-3.0, no warranty. Source:",
ready: "Ready. Connect your FM-1 and press Install.",
step1: "Connect", step2: "Install", step3: "Play",
s1: "Plug the FM-1 into the computer with a USB data cable.", s2: "Press Install and keep the cable connected until it says Done.", s3: "The FM-1 restarts as FMini-1 with its splash screen.",
ph_verify: "Verify", ph_loader: "Update mode", ph_write: "Write", ph_reboot: "Restart", ph_done: "Done",
tagline: "A Minimoog-style monophonic synth for the M-VAVE FM-1",
feat: "3 oscillators · ladder filter · 100 presets · arpeggiator · MIDI",
risk: "Use at your own risk", logT: "Details", fw: "Firmware",
},
};
/* ---- the site: texts (PT / EN / JA) and the parts it draws itself ---- */
const SITE = {
pt: {
nav_f: "Som", nav_s: "Telas", nav_p: "Presets", nav_m: "MIDI", nav_i: "Instalar",
sub: "Um firmware aberto que transforma o M-VAVE FM-1 em um sintetizador monofônico modelado no circuito do Minimoog: três osciladores, filtro ladder, contornos, efeitos e tudo ao alcance dos botões do FM-1.",
chip_f: "Filtro ladder", chip_p: "100 presets",
cta_install: "Instalar agora", cta_screens: "Ver as telas",
h_sound: "O som", l_sound: "Cada bloco do painel do Minimoog tem seu lugar na tela de 240 × 240 do FM-1, com quatro knobs físicos para tocar de verdade.",
f1t: "Banco de osciladores", f1d: "Três osciladores com faixas de LO a 2', forma de onda individual, ajuste fino (detune) e uma leve deriva de afinação, como a dos VCOs analógicos.",
f2t: "Filtro ladder", f2d: "Passa-baixas de 4 polos, 24 dB/oitava, com saturação em cada estágio. A ênfase chega à auto-oscilação perto de 9, e o teclado controla a frequência de corte.",
f3t: "Contornos", f3d: "Dois contornos (filtro e volume) com ataque, decaimento e sustentação. O ataque é exponencial, como o do circuito original. Glide, LFO e modulação completam a seção.",
f4t: "100 presets", f4d: "Todos monofônicos, em grupos de baixos, leads, metais e cordas, teclas e efeitos. Os 10 primeiros são uma vitrine de estilos bem diferentes. Salve os seus em 32 posições de usuário.",
f5t: "Arpejador e sequenciador", f5d: "Um toque no ARP liga e desliga; segurar ativa o HOLD. O sequenciador grava até 16 notas (REC) e toca (PLAY). Os LEDs das teclas acendem junto com as notas.",
f6t: "Efeitos por preset", f6d: "Reverb, delay, chorus e drive, cada preset com a sua própria combinação, para que baixos, leads e pads tenham ambientes bem diferentes.",
h_screens: "As telas", l_screens: "O painel foi desenhado para a tela do FM-1, com knobs estriados, chaves vermelhas e azuis e gráficos de filtro e contornos. Escolha uma página:",
views: [
{ t: "CTRL · Controladores", d: "A página inicial. Afinação geral, glide, quantidade de modulação e velocidade do LFO.", l: ["Quatro knobs: TUNE, GLIDE, MOD MIX e LFO RATE", "Chaves MOD OSC, MOD FLT, GLIDE e LFO SQR"] },
{ t: "OSC · Banco de osciladores", d: "Os três osciladores: faixa de oitava, forma de onda e detune.", l: ["Faixas LO, 32', 16', 8', 4' e 2'", "Seis formas de onda, desenhadas nas caixas da tela"] },
{ t: "MIX · Mixer", d: "O nível de cada oscilador e do ruído, com as chaves azuis para ligar e desligar cada fonte.", l: ["OSC 1, OSC 2, OSC 3 e NOISE", "Cada fonte tem o seu nível e a sua chave"] },
{ t: "FILT · Filtro", d: "Corte, ênfase, quantidade de contorno e controle pelo teclado, com o gráfico da resposta do filtro ladder.", l: ["CUTOFF, EMPHASIS, CONTOUR e KBD CTRL", "O gráfico mostra a curva passa-baixas de 24 dB/oitava"] },
{ t: "F.ENV · Contorno do filtro", d: "Ataque, decaimento, sustentação e quantidade do contorno que abre e fecha o filtro.", l: ["Gráfico do envelope que acompanha os knobs", "Ataque exponencial para o \"pluc\" clássico"] },
{ t: "A.ENV · Contorno de volume", d: "O envelope do volume: ataque, decaimento, sustentação e nível de saída.", l: ["ATTACK, DECAY, SUSTAIN e LEVEL", "Da percussão curta ao pad lento"] },
{ t: "FX · Efeitos", d: "Reverb, delay, chorus e drive, com uma chave para cada efeito.", l: ["Cada preset guarda o seu mix de efeitos", "A chave INSERT liga o drive"] },
],
pops: [
{ i: "arp", t: "Arpejador", d: "Modo, velocidade, oitavas, gate, HOLD e tempo. Toque no botão ARP para ligar; segure para o HOLD. O quadro fecha sozinho em 4 s." },
{ i: "seq", t: "Sequenciador", d: "16 posições para notas. REC arma a gravação, PLAY toca e para, e o tempo se ajusta com o encoder." },
{ i: "save", t: "Salvar preset", d: "Escolha a posição U01–U32, escreva o nome com os encoders e aperte SAVE. Suas versões ficam junto dos 100 presets de fábrica." },
{ i: "glo", t: "Global", d: "Entrada MIDI (USB, MIDI ou todas), canal, faixa do pitch bend e a lista de controles MIDI." },
{ i: "cc", t: "Lista de MIDI CC", d: "49 controles do painel, cada um com o seu número de CC. Gire o encoder para trocar ou envie um CC do seu teclado para aprender." },
{ i: "preset", t: "Troca de preset", d: "Ao trocar de preset aparece o número e o nome em letras grandes, por 1,5 s, e some." },
],
h_presets: "Presets", l_presets: "Cem timbres monofônicos, de baixos a efeitos. Os dez primeiros mostram do que o sintetizador é capaz:",
g_bass: "Baixos", g_lead: "Leads", g_wind: "Metais, palhetas e pads", g_keys: "Teclas e plucks", g_fx: "Efeitos", g_user: "Seus presets",
h_midi: "MIDI e controles", l_midi: "Toque pelo teclado do FM-1 ou por um controlador externo, por USB ou pela entrada MIDI.",
m1t: "Notas e canais", m1d: "Entrada USB, entrada MIDI (TRS) ou as duas ao mesmo tempo, com filtro de canal (1–16 ou todos).",
m2t: "Pitch bend e modulação", m2d: "Pitch bend de ±2, ±12, +2/−12 ou +2/−24 semitons, escolhido na tela Global, e roda de modulação (CC 1) que controla a modulação.",
m3t: "49 controles por CC", m3d: "Cada knob, chave e forma de onda tem o seu CC, que você pode trocar, e o FMini-1 aprende o CC que você enviar.",
h_keys: "Os botões do FM-1",
keys: [
["LFO", "Abre a página CTRL."], ["EDIT", "Abre a página OSC."], ["SCL", "Alterna entre MIX e FILT."], ["ENV", "Alterna entre F.ENV e A.ENV."],
["FX", "Abre a página de efeitos."], ["GLO", "Configurações globais (MIDI, bend, ABOUT)."], ["ARP", "Toque liga e desliga. Segurar ativa o HOLD."], ["SEQ", "Abre o sequenciador de 16 notas."],
["REC", "Arma a gravação do sequenciador."], ["PLAY", "Toca e para o sequenciador."], ["SAVE", "Salva um preset de usuário."], ["HOME", "Volta para CTRL e fecha os quadros."],
["OCT − / +", "Muda a oitava do teclado."], ["K1–K4", "Os quatro knobs editam os controles da página."], ["SELECT / ALGO", "Movem o cursor e mudam o valor."], ["PRESETS", "O encoder de presets troca os 100 timbres."],
],
h_install: "Instalar", l_install: "O instalador roda aqui mesmo, no navegador, e grava o firmware no FM-1 pelo cabo USB. Dá para voltar ao firmware original a qualquer momento.",
},
en: {
nav_f: "Sound", nav_s: "Screens", nav_p: "Presets", nav_m: "MIDI", nav_i: "Install",
sub: "An open firmware that turns the M-VAVE FM-1 into a monophonic synth modelled after the Minimoog circuit: three oscillators, a ladder filter, contours and effects, all within reach of the FM-1's buttons.",
chip_f: "Ladder filter", chip_p: "100 presets",
cta_install: "Install now", cta_screens: "See the screens",
h_sound: "The sound", l_sound: "Each block of the Minimoog panel has its place on the FM-1's 240 × 240 screen, with four real knobs to play it for real.",
f1t: "Oscillator bank", f1d: "Three oscillators with ranges from LO to 2', a waveform each, fine detune and a touch of pitch drift, like analog VCOs.",
f2t: "Ladder filter", f2d: "A four-pole low-pass, 24 dB/octave, with saturation in every stage. Emphasis reaches self-oscillation near 9, and the keyboard tracks the cutoff.",
f3t: "Contours", f3d: "Two contours (filter and loudness) with attack, decay and sustain. The attack is exponential, like the original circuit. Glide, LFO and modulation complete the section.",
f4t: "100 presets", f4d: "All monophonic, in groups of basses, leads, brass and strings, keys and effects. The first 10 are a showcase of very different styles. Save your own in 32 user slots.",
f5t: "Arpeggiator and sequencer", f5d: "One tap on ARP turns it on and off; holding it sets HOLD. The sequencer records up to 16 notes (REC) and plays them (PLAY). The key LEDs light with the notes.",
f6t: "Effects per preset", f6d: "Reverb, delay, chorus and drive, each preset with its own combination, so basses, leads and pads live in very different spaces.",
h_screens: "The screens", l_screens: "The panel is drawn for the FM-1's screen, with fluted knobs, red and blue rocker switches and graphs of the filter and contours. Pick a page:",
views: [
{ t: "CTRL · Controllers", d: "The home page. Master tune, glide, modulation amount and LFO speed.", l: ["Four knobs: TUNE, GLIDE, MOD MIX and LFO RATE", "Switches MOD OSC, MOD FLT, GLIDE and LFO SQR"] },
{ t: "OSC · Oscillator bank", d: "The three oscillators: octave range, waveform and detune.", l: ["Ranges LO, 32', 16', 8', 4' and 2'", "Six waveforms, drawn in the boxes on the screen"] },
{ t: "MIX · Mixer", d: "The level of each oscillator and of the noise, with the blue switches that turn each source on and off.", l: ["OSC 1, OSC 2, OSC 3 and NOISE", "Each source has its own level and switch"] },
{ t: "FILT · Filter", d: "Cutoff, emphasis, contour amount and keyboard control, with a graph of the ladder filter's response.", l: ["CUTOFF, EMPHASIS, CONTOUR and KBD CTRL", "The graph shows the 24 dB/octave low-pass curve"] },
{ t: "F.ENV · Filter contour", d: "Attack, decay, sustain and amount of the contour that opens and closes the filter.", l: ["An envelope graph that follows the knobs", "Exponential attack for the classic pluck"] },
{ t: "A.ENV · Loudness contour", d: "The volume envelope: attack, decay, sustain and output level.", l: ["ATTACK, DECAY, SUSTAIN and LEVEL", "From short percussion to slow pads"] },
{ t: "FX · Effects", d: "Reverb, delay, chorus and drive, with a switch for each effect.", l: ["Each preset stores its own effects mix", "The INSERT switch turns the drive on"] },
],
pops: [
{ i: "arp", t: "Arpeggiator", d: "Mode, rate, octaves, gate, HOLD and tempo. Tap the ARP button to turn it on; hold it for HOLD. The box closes by itself after 4 s." },
{ i: "seq", t: "Sequencer", d: "16 slots for notes. REC arms recording, PLAY starts and stops, and the tempo is set with an encoder." },
{ i: "save", t: "Save preset", d: "Pick the slot U01–U32, type the name with the encoders and press SAVE. Your versions sit next to the 100 factory presets." },
{ i: "glo", t: "Global", d: "MIDI input (USB, MIDI or all), channel, pitch bend range and the list of MIDI controls." },
{ i: "cc", t: "MIDI CC list", d: "49 panel controls, each with its CC number. Turn the encoder to change it, or send a CC from your keyboard to learn it." },
{ i: "preset", t: "Preset change", d: "When the preset changes, its number and name appear in big letters for 1.5 s, then vanish." },
],
h_presets: "Presets", l_presets: "One hundred monophonic sounds, from basses to effects. The first ten show what the synth can do:",
g_bass: "Basses", g_lead: "Leads", g_wind: "Brass, reeds and pads", g_keys: "Keys and plucks", g_fx: "Effects", g_user: "Your presets",
h_midi: "MIDI and controls", l_midi: "Play from the FM-1's keys or from an external controller, over USB or the MIDI input.",
m1t: "Notes and channels", m1d: "USB input, MIDI (TRS) input or both together, with a channel filter (1–16 or all).",
m2t: "Pitch bend and modulation", m2d: "Pitch bend of ±2, ±12, +2/−12 or +2/−24 semitones, chosen on the Global screen, and a mod wheel (CC 1) that controls the modulation.",
m3t: "49 CC controls", m3d: "Every knob, switch and waveform has its own CC, which you can change, and FMini-1 learns the CC you send.",
h_keys: "The FM-1's buttons",
keys: [
["LFO", "Opens the CTRL page."], ["EDIT", "Opens the OSC page."], ["SCL", "Toggles between MIX and FILT."], ["ENV", "Toggles between F.ENV and A.ENV."],
["FX", "Opens the effects page."], ["GLO", "Global settings (MIDI, bend, ABOUT)."], ["ARP", "Tap turns it on and off. Hold sets HOLD."], ["SEQ", "Opens the 16-note sequencer."],
["REC", "Arms sequencer recording."], ["PLAY", "Starts and stops the sequencer."], ["SAVE", "Saves a user preset."], ["HOME", "Back to CTRL, closes the boxes."],
["OCT − / +", "Shifts the keyboard octave."], ["K1–K4", "The four knobs edit the page's controls."], ["SELECT / ALGO", "Move the cursor and change the value."], ["PRESETS", "The preset encoder steps through the 100 sounds."],
],
h_install: "Install", l_install: "The installer runs right here, in the browser, and writes the firmware to the FM-1 over the USB cable. You can go back to the original firmware at any time.",
},
ja: {
nav_f: "サウンド", nav_s: "画面", nav_p: "プリセット", nav_m: "MIDI", nav_i: "インストール",
sub: "M-VAVE FM-1 を、Minimoog の回路をモデルにしたモノフォニック・シンセに変えるオープンなファームウェア。3 基のオシレーター、ラダーフィルター、コンター、エフェクトを FM-1 のボタンで操作できます。",
chip_f: "ラダーフィルター", chip_p: "100 プリセット",
cta_install: "今すぐインストール", cta_screens: "画面を見る",
h_sound: "サウンド", l_sound: "Minimoog のパネルの各ブロックを FM-1 の 240 × 240 画面に再現。4 つの実際のノブで演奏できます。",
f1t: "オシレーターバンク", f1d: "LO から 2' までのレンジ、個別の波形、ファインチューン、アナログ VCO のようなわずかなピッチのゆらぎを備えた 3 基のオシレーター。",
f2t: "ラダーフィルター", f2d: "4 ポール、24 dB/oct のローパス。各段にサチュレーションがあり、エンファシスは 9 付近で自己発振。鍵盤でカットオフを追従させられます。",
f3t: "コンター", f3d: "アタック、ディケイ、サステインを持つ 2 つのコンター(フィルターと音量)。アタックは元の回路と同じ指数カーブ。グライド、LFO、モジュレーションも装備。",
f4t: "100 プリセット", f4d: "すべてモノフォニック。ベース、リード、ブラス・ストリングス、鍵盤系、エフェクトに分類。最初の 10 音は多彩なスタイルのショーケース。32 のユーザー枠に保存できます。",
f5t: "アルペジエーターとシーケンサー", f5d: "ARP を 1 回押すとオン/オフ、長押しで HOLD。シーケンサーは最大 16 音を録音(REC)して再生(PLAY)。鍵盤の LED が音に合わせて点灯します。",
f6t: "プリセットごとのエフェクト", f6d: "リバーブ、ディレイ、コーラス、ドライブ。プリセットごとに異なる組み合わせで、ベース、リード、パッドがそれぞれ違う空間で鳴ります。",
h_screens: "画面", l_screens: "FM-1 の画面に合わせてデザインしたパネル。ローレット付きのノブ、赤と青のロッカースイッチ、フィルターとコンターのグラフを備えます。ページを選んでください。",
views: [
{ t: "CTRL · コントローラー", d: "ホームページ。チューン、グライド、モジュレーション量、LFO の速さ。", l: ["4 つのノブ:TUNE、GLIDE、MOD MIX、LFO RATE", "スイッチ:MOD OSC、MOD FLT、GLIDE、LFO SQR"] },
{ t: "OSC · オシレーターバンク", d: "3 基のオシレーターのオクターブレンジ、波形、デチューン。", l: ["レンジ:LO、32'、16'、8'、4'、2'", "画面のボックスに描かれた 6 種類の波形"] },
{ t: "MIX · ミキサー", d: "各オシレーターとノイズのレベル。青いスイッチで各音源をオン/オフ。", l: ["OSC 1、OSC 2、OSC 3、NOISE", "各音源に個別のレベルとスイッチ"] },
{ t: "FILT · フィルター", d: "カットオフ、エンファシス、コンター量、キーボードコントロールと、ラダーフィルターの特性グラフ。", l: ["CUTOFF、EMPHASIS、CONTOUR、KBD CTRL", "24 dB/oct のローパスカーブをグラフ表示"] },
{ t: "F.ENV · フィルターコンター", d: "フィルターを開閉するコンターのアタック、ディケイ、サステイン、量。", l: ["ノブに合わせて動くエンベロープグラフ", "クラシックなプラック音に向く指数アタック"] },
{ t: "A.ENV · ラウドネスコンター", d: "音量エンベロープ:アタック、ディケイ、サステイン、出力レベル。", l: ["ATTACK、DECAY、SUSTAIN、LEVEL", "短いパーカッションからゆっくりしたパッドまで"] },
{ t: "FX · エフェクト", d: "リバーブ、ディレイ、コーラス、ドライブ。エフェクトごとにスイッチがあります。", l: ["プリセットごとにエフェクト設定を保存", "INSERT スイッチでドライブをオン"] },
],
pops: [
{ i: "arp", t: "アルペジエーター", d: "モード、レート、オクターブ、ゲート、HOLD、テンポ。ARP ボタンを押してオン、長押しで HOLD。4 秒後に自動で閉じます。" },
{ i: "seq", t: "シーケンサー", d: "音符用の 16 スロット。REC で録音待機、PLAY で再生/停止、テンポはエンコーダーで調整。" },
{ i: "save", t: "プリセット保存", d: "U01〜U32 の枠を選び、エンコーダーで名前を入力して SAVE。作った音色は 100 のファクトリー音色と並びます。" },
{ i: "glo", t: "グローバル", d: "MIDI 入力(USB、MIDI、すべて)、チャンネル、ピッチベンド幅、MIDI コントロール一覧。" },
{ i: "cc", t: "MIDI CC 一覧", d: "パネルの 49 のコントロールそれぞれに CC 番号。エンコーダーで変更、またはキーボードから CC を送って学習できます。" },
{ i: "preset", t: "プリセット切替", d: "プリセットを変えると番号と名前が大きな文字で 1.5 秒表示され、消えます。" },
],
h_presets: "プリセット", l_presets: "ベースからエフェクトまで、100 のモノフォニック音色。最初の 10 音がこのシンセの実力を示します。",
g_bass: "ベース", g_lead: "リード", g_wind: "ブラス・リード楽器・パッド", g_keys: "鍵盤・プラック", g_fx: "エフェクト", g_user: "ユーザー音色",
h_midi: "MIDI とコントロール", l_midi: "FM-1 の鍵盤でも外部コントローラーでも、USB または MIDI 入力で演奏できます。",
m1t: "ノートとチャンネル", m1d: "USB 入力、MIDI(TRS)入力、または両方を同時に。チャンネルフィルター(1〜16 またはすべて)付き。",
m2t: "ピッチベンドとモジュレーション", m2d: "ピッチベンドは ±2、±12、+2/−12、+2/−24 半音からグローバル画面で選択。モジュレーションホイール(CC 1)に対応。",
m3t: "49 の CC コントロール", m3d: "すべてのノブ、スイッチ、波形に変更可能な CC があり、送った CC を FMini-1 が学習します。",
h_keys: "FM-1 のボタン",
keys: [
["LFO", "CTRL ページを開く。"], ["EDIT", "OSC ページを開く。"], ["SCL", "MIX と FILT を切り替え。"], ["ENV", "F.ENV と A.ENV を切り替え。"],
["FX", "エフェクトページを開く。"], ["GLO", "グローバル設定(MIDI、ベンド、ABOUT)。"], ["ARP", "押すとオン/オフ、長押しで HOLD。"], ["SEQ", "16 音のシーケンサーを開く。"],
["REC", "シーケンサーの録音待機。"], ["PLAY", "シーケンサーの再生/停止。"], ["SAVE", "ユーザープリセットを保存。"], ["HOME", "CTRL に戻り、ボックスを閉じる。"],
["OCT − / +", "鍵盤のオクターブを移動。"], ["K1–K4", "4 つのノブでページのコントロールを編集。"], ["SELECT / ALGO", "カーソル移動と値の変更。"], ["PRESETS", "プリセットエンコーダーで 100 音色を切り替え。"],
],
h_install: "インストール", l_install: "インストーラーはこのページ内、ブラウザー上で動き、USB ケーブル経由で FM-1 にファームウェアを書き込みます。いつでも元のファームウェアに戻せます。",
},
};
for (const l in SITE) Object.assign(TEXT[l], SITE[l]);
const SITE2 = {
pt: { announce: "Firmware gratuito e de código aberto para o M-VAVE FM-1", e_sound: "Som", h_sound: "Três osciladores, um filtro ladder e muito corpo", e_screens: "Telas", h_screens: "Cada página, uma seção do painel",
e_presets: "Presets", h_presets: "Cem timbres, todos monofônicos", e_midi: "MIDI e controles", h_midi: "Toque do jeito que preferir", e_install: "Instalar", h_install: "Instale direto do navegador" },
en: { announce: "Free, open-source firmware for the M-VAVE FM-1", e_sound: "Sound", h_sound: "Three oscillators, a ladder filter and plenty of body", e_screens: "Screens", h_screens: "Every page, one section of the panel",
e_presets: "Presets", h_presets: "One hundred sounds, all monophonic", e_midi: "MIDI and controls", h_midi: "Play it your way", e_install: "Install", h_install: "Install straight from the browser" },
ja: { announce: "M-VAVE FM-1 用の無料オープンソース・ファームウェア", e_sound: "サウンド", h_sound: "3 基のオシレーター、ラダーフィルター、そして厚み", e_screens: "画面", h_screens: "1 ページが、パネルの 1 セクション",
e_presets: "プリセット", h_presets: "100 の音色、すべてモノフォニック", e_midi: "MIDI とコントロール", h_midi: "好きな方法で演奏", e_install: "インストール", h_install: "ブラウザーから直接インストール" },
};
for (const l in SITE2) Object.assign(TEXT[l], SITE2[l]);
const SITE3 = {
pt: { hero2_t: "Um clássico dentro do FM-1.", hero2_s: "Firmware gratuito. Instale direto do navegador e volte ao original quando quiser.", hint: "Role" },
en: { hero2_t: "A classic, inside the FM-1.", hero2_s: "Free firmware. Install straight from the browser and go back to the original whenever you like.", hint: "Scroll" },
ja: { hero2_t: "名機を、FM-1 の中に。", hero2_s: "無料のファームウェア。ブラウザーから直接インストールでき、いつでも元に戻せます。", hint: "スクロール" },
};
for (const l in SITE3) Object.assign(TEXT[l], SITE3[l]);
const SITE4 = {
pt: { e_video: "Vídeo", h_video: "Veja o FMini-1 em ação", cr_made: "O FMini-1 foi feito por Guilherme Ruppert, com base no projeto", cr_made2: ", de Leo Kuroshita (Hügelton Instruments).", cr_ai: "Aviso sobre IA: este projeto foi realizado com o auxílio do Claude, um modelo de IA da Anthropic." },
en: { e_video: "Video", h_video: "See FMini-1 in action", cr_made: "FMini-1 was made by Guilherme Ruppert, based on the", cr_made2: " project by Leo Kuroshita (Hügelton Instruments).", cr_ai: "AI disclaimer: this project was developed with the assistance of Claude, an AI model by Anthropic." },
ja: { e_video: "ビデオ", h_video: "FMini-1 をチェック", cr_made: "FMini-1 は Guilherme Ruppert が制作しました。ベースは", cr_made2: "(Leo Kuroshita / Hügelton Instruments)です。", cr_ai: "AI に関する注記:このプロジェクトは Anthropic の AI モデル Claude の支援を受けて作成されました。" },
};
for (const l in SITE4) Object.assign(TEXT[l], SITE4[l]);
const IMG = /*IMGS*/{};
const VIEW_IMG = ["ctrl", "osc", "mix", "filt", "fenv", "aenv", "fx"], VIEW_TAB = ["CTRL", "OSC", "MIX", "FILT", "F.ENV", "A.ENV", "FX"];
const PRESET_NAMES = /*PRESETS*/[];
let viewIdx = 0;
function renderView() {
const v = TEXT[lang].views[viewIdx];
$("v-img").src = IMG[VIEW_IMG[viewIdx]]; $("v-img").alt = v.t;
$("v-t").textContent = v.t; $("v-d").textContent = v.d;
$("v-l").innerHTML = ""; v.l.forEach((s) => { const li = document.createElement("li"); li.textContent = s; $("v-l").appendChild(li); });
[...$("v-tabs").children].forEach((b, i) => b.setAttribute("aria-selected", String(i === viewIdx)));
}
let viewHold = 0; /* the pages of the panel change by themselves, once a second */
(() => {
const box = $("screens"), vw = box.querySelector(".viewer");
let inView = false;
new IntersectionObserver((en) => { inView = en[0].isIntersecting; }, { threshold: 0.3 }).observe(vw);
let paused = false;
box.querySelector(".viewer").addEventListener("pointerenter", () => { paused = true; });
box.querySelector(".viewer").addEventListener("pointerleave", () => { paused = false; });
setInterval(() => {
if (!inView || paused || performance.now() < viewHold || !$("v-tabs").children.length) return;
viewIdx = (viewIdx + 1) % VIEW_TAB.length; renderView();
}, 1000);
})();
function renderSite() {
if (!$("v-tabs").children.length) {
VIEW_TAB.forEach((n, i) => { const b = document.createElement("button"); b.type = "button"; b.setAttribute("role", "tab"); b.textContent = n;
b.addEventListener("click", () => { viewIdx = i; viewHold = performance.now() + 8000; renderView(); }); $("v-tabs").appendChild(b); });
PRESET_NAMES.forEach((n, i) => { const li = document.createElement("li"); li.innerHTML = "<b>" + String(i).padStart(2, "0") + "</b>"; li.appendChild(document.createTextNode(n)); $("pl").appendChild(li); });
}
renderView();
$("pops").innerHTML = "";
TEXT[lang].pops.forEach((p) => {
const f = document.createElement("div"); f.className = "pop";
f.innerHTML = '<figure><div class="glass"><img alt=""></div><h4></h4><p></p></figure>';
f.querySelector("img").src = IMG[p.i]; f.querySelector("img").alt = p.t; f.querySelector("h4").textContent = p.t; f.querySelector("p").textContent = p.d;
$("pops").appendChild(f);
});
$("keys").innerHTML = "";
TEXT[lang].keys.forEach(([k, d]) => { const e = document.createElement("div"); e.innerHTML = "<b></b><span></span>"; e.querySelector("b").textContent = k; e.querySelector("span").textContent = d; $("keys").appendChild(e); });
}
const nl = (navigator.language || "en").toLowerCase();
let lang = nl.startsWith("pt") ? "pt" : nl.startsWith("ja") ? "ja" : "en";
const LANGS = ["pt", "en", "ja"];
const t = (k) => TEXT[lang][k];
let lastKey = null, lastArg = "";
function applyLang() {
document.documentElement.lang = lang;
document.querySelectorAll("[data-t]").forEach((e) => { e.textContent = t(e.dataset.t); });
$("lang").textContent = lang === "pt" ? "PT" : lang === "ja" ? "日本語" : "EN";
if (lastKey) $("status").textContent = t(lastKey) + lastArg;
renderSite();
}
$("lang").addEventListener("click", () => { lang = LANGS[(LANGS.indexOf(lang) + 1) % LANGS.length]; applyLang(); });
applyLang();
const sayK = (k, arg = "") => { lastKey = k; lastArg = arg; $("status").textContent = t(k) + arg; document.body.classList.toggle("bad", ["error","denied","notfound","model","lost","noloader","noreturn","mismatch","badpkg","stopped","loadfail","nomidi"].includes(k)); };
const say = (txt) => { lastKey = null; $("status").textContent = txt; };
const log = (t) => { $("log").textContent += t + "\n"; };
const PHASES = ["verify", "loader", "write", "reboot", "done"];
function setBar(pct, phase) {
pct = Math.max(0, Math.min(100, pct));
$("fill").style.width = pct + "%";
$("pct").textContent = Math.round(pct) + "%";
$("bar").setAttribute("aria-valuenow", String(Math.round(pct)));
const at = PHASES.indexOf(phase);
document.querySelectorAll("#phases li").forEach((li, i) => {
li.classList.toggle("done", at > i || phase === "done");
li.classList.toggle("now", at === i && phase !== "done");
});
document.body.classList.toggle("busy", phase && phase !== "done");
document.body.classList.toggle("finished", phase === "done");
}
let image = null;
const meta = /*META*/;
let writing = false, stock = null, stockFileEpoch = 0;
const lockInstaller = (on) => { writing = on; $("go").disabled = on || !image; $("stock-go").disabled = on || !stock; $("stock-file").disabled = on; $("stock-recovery").disabled = on; };
window.addEventListener("beforeunload", (e) => { if (writing) { e.preventDefault(); e.returnValue = t("leave"); } });
(async () => {
if (!navigator.requestMIDIAccess) { sayK("nomidi"); return; }
try {
const r = await fetch(meta.pkg);
if (!r.ok) throw new Error(`${meta.pkg}: HTTP ${r.status}`);
const pkg = new Uint8Array(await r.arrayBuffer());
if (productOf(pkg) !== meta.product) { sayK("badpkg"); return; }
image = logicalImage(pkg);
say(t("ready"));
$("go").disabled = false;
setBar(0, null);
} catch (e) { sayK("loadfail", e.message); }
})();
$("go").addEventListener("click", async () => {
if (writing) return;
lockInstaller(true);
let midi;
try { midi = await navigator.requestMIDIAccess({ sysex: true }); }
catch (e) { sayK("denied"); lockInstaller(false); return; }
try {
const up = new Updater(midi, log);
const total = 74 + 1167;
const step = (k, a) => {
log(`${k} ${a ?? ""}`);
if (k === "start") sayK("start");
if (k === "start") setBar(0, "verify");
if (k === "verify") { sayK("verify"); setBar((a / total) * 100, "verify"); }
if (k === "loader") { sayK("loader"); setBar(6, "loader"); }
if (k === "write") { sayK("write"); setBar(((74 + a) / total) * 100, "write"); }
if (k === "reboot") { sayK("reboot"); setBar(99, "reboot"); }
if (k === "done") { setBar(100, "done"); sayK("done"); }
};
const ota = await up.find((id) => /^ota-/i.test(id.model));
if (ota) {
ota.link.close();
sayK((await up.resume(image, step, meta.product)) ? "done" : "stopped");
} else {
await up.install(image, meta.product, step);
}
} catch (e) {
if (e && e.code && TEXT[lang][e.code]) sayK(e.code, e.detail || "");
else sayK("error", e && e.message);
log(String(e && e.stack || e));
}
lockInstaller(false);
});
$("stock-file").addEventListener("change", async () => {
const epoch = ++stockFileEpoch, file = $("stock-file").files[0]; stock = null; lockInstaller(false);
if (!file) return;
try {
if (file.size !== STOCK_V15_SIZE) throw new Error("FM-1 V15 / FM-1.fwsc");
const verified = await validateStockPackage(new Uint8Array(await file.arrayBuffer()));
if (epoch !== stockFileEpoch) return;
stock = verified; sayK("stockValid"); lockInstaller(false);
} catch (e) { if (epoch === stockFileEpoch) sayK("stockError", e.message); }
});
function saveArchive(archive) {
const url = URL.createObjectURL(new Blob([JSON.stringify(archive)], {type:"application/json"}));
const a = document.createElement("a"); a.href = url; a.download = `Felucca-backup-${new Date().toISOString().slice(0,10)}.json`;
document.body.append(a); a.click(); a.remove(); setTimeout(() => URL.revokeObjectURL(url), 1000);
}
function archiveInfo(a) {
let pos = a.indexOf(0); if (pos < 0) throw new Error("Invalid INFO");
const version = String.fromCharCode(...a.slice(0,pos)); pos++;
const engines = a[pos]; pos += 5;
for (let i = 0; i < engines; i++) { const end = a.indexOf(0,pos); if (end < 0) throw new Error("Invalid INFO"); pos = end + 1; }
const ext = a.slice(pos + 1);
const supported = /^FELUCCA /i.test(version) && ext[0] === 16 && ext[1] === 0x55 && ext[2] === 1 &&
ext[4] === 0x4d && ext[5] === 1 && ext[8] === 0x42 && ext[9] === 1 && (ext[10] & 1);
return {version,supported};
}
$("stock-go").addEventListener("click", async () => {
if (!stock || writing) return;
const selected = stock; lockInstaller(true);
let link = null;
try {
let midi;
try { midi = await navigator.requestMIDIAccess({sysex:true}); } catch (e) { sayK("denied"); return; }
const up = new Updater(midi, log);
const step = (k, n) => { log(`${k} ${n ?? ""}`); if (["start","verify","loader","write","reboot","done"].includes(k)) sayK(k); if (k === "done") setBar(100, "done"); else if (k === "write") setBar(((74 + n) / (74 + 1167)) * 100, "write"); else if (PHASES.includes(k)) setBar(k === "reboot" ? 99 : k === "loader" ? 6 : 0, k); };
const loader = await up.find(id => id.model === "ota-FM-1");
if (loader) {
loader.link.close();
if (!$("stock-recovery").checked) { sayK("stockNeedBackup"); return; }
if (!confirm(t("stockConfirm"))) return;
sayK(await up.resume(selected.image, step, selected.product) ? "done" : "stopped");
} else {
const device = await up.find(id => id.model === "FM-1");
if (!device) { sayK("notfound"); return; }
const input = device.link.input, output = device.link.output; device.link.close();
link = new BackupConnection(input, output);
const info = archiveInfo(await link.request([1,[]]));
if (!info.supported) { sayK("stockUnsupported"); return; }
const archive = await captureBackup((r,o) => link.request(r,o), info.version,
(done,total) => sayK("backup", `${Math.round(done / Math.max(1,total) * 100)}%`));
saveArchive(archive); link.close(); link = null;
if (!confirm(t("stockConfirm"))) return;
await up.install(selected.image, selected.product, step);
}
} catch (e) {
if (e.code && TEXT[lang][e.code]) sayK(e.code,e.detail || ""); else sayK("error",e.message);
log(String(e.stack || e));
} finally { if (link) link.close(); lockInstaller(false); }
});
/* ---- hero: the Minimoog goes into the FM-1's screen as the page scrolls (reduced motion: the finished picture) ---- */
(() => {
const hero = $("top"), stage = $("stage"), mm = $("mm"), fm = $("fm"), lcd = $("lcd"), copy1 = $("copy1"), copy2 = $("copy2"), hint = $("hint");
const A = $("lcd-a"), B = $("lcd-b");
$("fm-body").src = IMG.fm1;
const ROT = ["splash", "ctrl", "osc", "mix", "filt", "fenv", "aenv", "fx"];
const rm = matchMedia("(prefers-reduced-motion: reduce)").matches;
if (rm) document.body.classList.add("rm");
A.src = IMG.splash; A.style.opacity = 1; B.style.opacity = 0;
const clamp = (x, a = 0, b = 1) => Math.max(a, Math.min(b, x));
const ease = (x) => x * x * (3 - 2 * x);
let prog = 0, W = 0, H = 0, fmW = 0, fmH = 0, fmX = 0, fmY = 0, mmW0 = 0, mmX0 = 0, mmY0 = 0, p = -1, rot = 0, rotAt = 0;
const MR = 452 / 900, FR = 512 / 859;
function layout() {
W = stage.clientWidth; H = stage.clientHeight;
const mob = W < 820;
const c2h = copy2.offsetHeight || 200, gap = mob ? 22 : 30;
fmY = mob ? H * 0.2 : Math.max(18, H * 0.05);
fmW = Math.min(W * (mob ? 0.94 : 0.86), 980, (H * (mob ? 0.5 : 0.62)) / FR, (H - fmY - c2h - gap - 28) / FR);
fmH = fmW * FR; fmX = (W - fmW) / 2;
fm.style.width = fmW + "px"; fm.style.left = fmX + "px"; fm.style.top = fmY + "px";
copy2.style.top = fmY + fmH + gap + "px";
mmW0 = mob ? W * 1.5 : Math.min(W * 0.98, 1500);
mmX0 = mob ? -W * 0.2 : Math.max(W * 0.5, W - 1.0 * mmW0 * 0.62);
mmY0 = mob ? H * 0.52 : (H - mmW0 * MR) / 2;
p = -1; draw(prog);
}
function draw(np) {
if (np === undefined) np = p < 0 ? prog : p;
if (Math.abs(np - p) < 0.0004) return;
p = np;
const q = ease(clamp((p - 0.08) / 0.72));
const mob = W < 820;
const sc = 0.9 + 0.1 * q;
fm.style.opacity = clamp(q / 0.35);
fm.style.transform = "scale(" + sc + ")";
/* where the screen is now, in the stage */
const cx = fmX + fmW * (0.3073 + 0.0838), cy = fmY + fmH * (0.1523 + 0.1415);
const tw = fmW * 0.1676 * sc * 1.02;
const ex = fmX + fmW / 2 + (cx - fmX - fmW / 2) * sc, ey = fmY + fmH / 2 + (cy - fmY - fmH / 2) * sc;
const w = mmW0 + (tw - mmW0) * q, h = w * MR;
const sx = mmX0 + mmW0 / 2, sy = mmY0 + mmW0 * MR / 2;
const mx = sx + (ex - sx) * q, my = sy + (ey - sy) * q;
mm.style.width = w + "px"; mm.style.left = mx - w / 2 + "px"; mm.style.top = my - h / 2 + "px";
mm.style.opacity = 1 - clamp((q - 0.88) / 0.12);
lcd.style.opacity = 1;
$("scr").style.opacity = clamp((p - 0.9) / 0.1);
copy1.style.opacity = 1 - clamp((p - 0.04) / 0.16);
copy1.style.transform = (mob ? "" : "translateY(-50%) ") + "translateX(" + (-clamp(p / 0.2) * 40) + "px)";
copy1.style.pointerEvents = p > 0.12 ? "none" : "";
copy2.style.opacity = clamp((p - 0.84) / 0.12);
copy2.style.pointerEvents = p > 0.9 ? "auto" : "none";
hint.style.opacity = 1 - clamp(p / 0.05);
}
/* the first scroll down plays the film by itself; scrolling up at the top plays it backwards */
const DUR = 1400;
if (rm) prog = 1;
let state = rm ? 2 : 0, t0 = 0, dir = 1; /* 0 start picture, 1 playing forward, 2 finished, 3 playing backwards */
const hold = (e) => { if (state === 1 || state === 3) e.preventDefault(); };
function done() {
prog = 1; state = 2; draw(1);
A.src = IMG.splash; A.style.opacity = 1; B.style.opacity = 0; rot = 0; rotAt = performance.now();
}
function home() { prog = 0; state = 0; draw(0); }
function frame(now) {
if (state !== 1 && state !== 3) return;
const x = clamp((now - t0) / DUR);
prog = dir > 0 ? x : 1 - x; draw(prog);
if (x >= 1) { if (dir > 0) done(); else home(); } else requestAnimationFrame(frame);
}
function play(d) {
dir = d; state = d > 0 ? 1 : 3; t0 = performance.now() - (d > 0 ? prog : 1 - prog) * DUR;
scrollTo({ top: 0, behavior: "instant" });
requestAnimationFrame(frame);
setTimeout(() => { if (state === 1) done(); else if (state === 3) home(); }, DUR + 1500); /* never leave the page held */
}
let arriveT = 0, prevY = scrollY; /* a flick that lands on the top must not bounce straight into the film */
const atTop = () => scrollY < 8;
const wantDown = () => { if (state === 0 && atTop()) { play(1); return true; } return false; };
const wantUp = () => { if (state === 2 && atTop() && !rm && performance.now() - arriveT > 450) { play(-1); return true; } return false; };
addEventListener("wheel", (e) => { if ((e.deltaY > 0 && wantDown()) || (e.deltaY < 0 && wantUp())) e.preventDefault(); else hold(e); }, { passive: false });
let ty = 0;
addEventListener("touchstart", (e) => { ty = e.touches[0].clientY; }, { passive: true });
addEventListener("touchmove", (e) => { const dy = ty - e.touches[0].clientY; if ((dy > 8 && wantDown()) || (dy < -8 && wantUp())) e.preventDefault(); else hold(e); }, { passive: false });
addEventListener("keydown", (e) => {
if (/INPUT|TEXTAREA|SELECT/.test(e.target.tagName)) return;
if (["ArrowDown", "PageDown", " ", "End"].includes(e.key)) { if (wantDown()) e.preventDefault(); else hold(e); }
else if (["ArrowUp", "PageUp", "Home"].includes(e.key)) { if (wantUp()) e.preventDefault(); else hold(e); }
});
addEventListener("scroll", () => { if (scrollY < 1 && prevY >= 1) arriveT = performance.now(); prevY = scrollY; if (state === 0 && scrollY > 8) play(1); else if ((state === 1 || state === 3) && scrollY > 0) scrollTo({ top: 0, behavior: "instant" }); }, { passive: true });
document.querySelectorAll('a[href^="#"]').forEach((a) => a.addEventListener("click", () => { if (state !== 2) done(); }));
addEventListener("resize", layout);
if ((!rm && location.hash.length > 1) || scrollY > 40) { state = 2; prog = 1; } /* a reload further down, or a link to a section: the finished picture */
/* the finished FM-1 shows the real screens, one after the other */
function show(i) {
const on = A.style.opacity === "1" ? A : B, off = on === A ? B : A;
off.src = IMG[ROT[i]]; off.style.opacity = 1; on.style.opacity = 0;
}
const next = () => { rot = rot + 1 >= ROT.length ? 1 : rot + 1; show(rot); rotAt = performance.now(); };
lcd.addEventListener("click", next);
if (!rm) setInterval(() => { if (state === 2 && performance.now() - rotAt >= 1000) next(); }, 100);
layout();
})();
</script>
</body>
</html>