mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-05 12:24:36 +01:00
- Editor, FM-1 emulator, SMK-37 emulator: the site's language button (PT / EN) at the top right. The emulators get Portuguese texts (bar, hints, power button, errors, footer, titles); the panel's printed labels stay as on the hardware. The editor changes language in place (the connection stays). - One choice for the four pages: localStorage "fmini-lang" (the site keeps it too); else the browser's. - Phones: the bar fits with the button (no wrap, tighter links). - Editor: on a port named SMK-37 the panel question says ALGORITHM (K4) = YES, then BT (BT is the SMK-37's SAVE); the footer names BT too. Test: the FM-1 says SAVE, the SMK-37 BT. - docs/emu (both) and docs/index.html rebuilt. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
1041 lines
79 KiB
HTML
1041 lines
79 KiB
HTML
<!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 Minimoog emulation firmware for the M-Vave FM-1 and SMK-37, mono and polyphonic. Analog Circuit Modelling, 3 oscillators, ladder filter, 200 presets, arpeggiator, sequencer, MIDI.">
|
||
<title>FMini-1 — a Minimoog emulation for the M-Vave FM-1 and SMK-37</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, 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); }
|
||
header.nav nav a.try .ts, header.nav nav .try .ts { display: none; }
|
||
.trywrap { position: relative; }
|
||
header.nav nav button.try { font: 500 14px/1.65 var(--sans); color: var(--dim); background: transparent; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
|
||
header.nav nav button.try:hover, header.nav nav button.try[aria-expanded=true] { color: var(--fg); background: var(--surface2); }
|
||
header.nav nav button.try .car { font-size: 10px; margin-left: 5px; opacity: .7; }
|
||
.trymenu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.55); z-index: 40; }
|
||
header.nav nav .trymenu a { display: flex; align-items: baseline; gap: 10px; color: var(--fg); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
|
||
header.nav nav .trymenu a small { color: var(--mute); font: 500 11.5px/1 var(--mono); }
|
||
header.nav nav .trymenu a:hover { background: var(--surface2); }
|
||
header.nav nav a.donate { color: var(--or2); }
|
||
/* a phone: the section links go, the emulator's ("Try in browser") and Install stay; on a narrow one the short label */
|
||
@media (max-width: 720px) {
|
||
header.nav nav > a:not(.keep):not(.try) { display: none; }
|
||
header.nav .wrap { gap: 10px; }
|
||
header.nav nav a { padding: 8px 9px; font-size: 13px; }
|
||
header.nav nav a.keep { margin-left: 2px; }
|
||
header.nav nav a.try, header.nav nav button.try { color: var(--fg); border: 1px solid var(--line); padding: 8px 9px; font-size: 13px; }
|
||
}
|
||
@media (max-width: 430px) { header.nav nav .try .tl { display: none; } header.nav nav .try .ts { display: inline; } }
|
||
.tipbg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
|
||
.tipbg[hidden] { display: none; }
|
||
.tipbox { background: var(--surface2, #1b1917); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 380px; color: var(--fg); }
|
||
.tipbox h3 { margin: 0 0 8px; font-size: 18px; }
|
||
.tipbox p { margin: 0 0 16px; color: var(--dim); line-height: 1.45; }
|
||
.tipgo { display: inline-block; background: var(--or); color: #1a0e05; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 10px; margin-right: 8px; }
|
||
.tipx { background: none; border: 1px solid var(--line); color: var(--dim); padding: 10px 14px; border-radius: 10px; cursor: pointer; font: inherit; }
|
||
|
||
/* 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; }
|
||
.cta-ver { margin: 10px 0 0; font: 500 11px/1 var(--mono); color: var(--mute); letter-spacing: .03em; }
|
||
.copy2 .cta-ver { text-align: center; }
|
||
.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.smk .lcd { left: 13.702%; top: 11.423%; width: 17.107%; height: 38.713%; border-radius: 1.2%; }
|
||
.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: 20px; list-style: none; margin: 0 0 18px; 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: 5px; }
|
||
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 12px; } }
|
||
|
||
#go { width: 100%; font: 800 18px/1 var(--sans); color: #1a0e05; border: 0; border-radius: 12px; padding: 16px 20px; cursor: pointer; background: var(--or); transition: transform .08s, background .15s; }
|
||
#go small { font: 600 .62em/1 var(--mono); opacity: .75; margin-left: 4px; }
|
||
#go:hover:not(:disabled) { background: var(--or2); }
|
||
#go:active:not(:disabled) { transform: translateY(1px); }
|
||
#go:disabled { cursor: default; background: var(--surface2); color: var(--mute); }
|
||
dialog.portpick { width: min(440px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--or); border-radius: 16px; background: var(--surface); color: var(--fg); font-size: 14.5px; line-height: 1.5; }
|
||
dialog.portpick::backdrop { background: rgba(0,0,0,.7); }
|
||
dialog.portpick b { font-size: 17px; }
|
||
dialog.portpick p { color: var(--dim); margin: 8px 0 0; }
|
||
.portpick select { height: auto; }
|
||
.portpick button.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); font-weight: 600; }
|
||
.portpick select, .portpick button { display: block; width: 100%; margin-top: 10px; font: 600 14px/1 var(--sans); padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--fg); }
|
||
.portpick button { background: var(--or); color: #1a0e05; border: 0; font-weight: 800; cursor: pointer; }
|
||
.busywarn { display: none; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--or); background: rgba(255,122,26,.12); color: var(--fg); font-size: 15px; line-height: 1.45; }
|
||
.busywarn b { display: block; color: var(--or2); font-size: 16px; margin-bottom: 4px; }
|
||
body.busy .busywarn { display: block; }
|
||
body.busy #go { background: var(--surface2); color: var(--or2); }
|
||
|
||
.prog { margin-top: 14px; }
|
||
#install { padding-top: 72px; }
|
||
#install .lead { margin-top: 10px; }
|
||
#install .card { margin-top: 24px; padding: 22px; }
|
||
@media (max-width: 560px) { #install .card { padding: 14px; } }
|
||
#install .steps { margin-bottom: 12px; }
|
||
#install #go { padding: 13px 20px; }
|
||
@media (min-width: 900px) { /* the install block on one screen: steps and button left, notes and details right */
|
||
#install .card { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto auto auto auto 1fr; column-gap: 32px; row-gap: 12px; align-items: start; }
|
||
#install .steps { grid-column: 1; grid-row: 1; margin: 0; }
|
||
#install .detected { grid-column: 1; grid-row: 2; margin: 0; }
|
||
#install #go { grid-column: 1; grid-row: 3; }
|
||
#install .busywarn { grid-column: 1; grid-row: 4; margin: 0; }
|
||
#install .prog { grid-column: 1; grid-row: 5; margin: 0; }
|
||
#install .side { grid-column: 2; grid-row: 1 / span 6; display: flex; flex-direction: column; gap: 12px; }
|
||
#install .side .note { margin: 0; }
|
||
}
|
||
.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: 10px 0 0; }
|
||
.detected { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--or); background: rgba(255,122,26,.10); font-size: 15px; line-height: 1.45; }
|
||
.detected b { color: var(--or2); }
|
||
.fwlist { list-style: none; margin: 8px 0 0; padding: 0; }
|
||
.fwlist li { margin: 6px 0; font-size: 14px; }
|
||
.fwlist li span { color: var(--mute); font: 500 12px/1 var(--mono); margin-left: 8px; }
|
||
.portpick label { display: block; margin-top: 14px; color: var(--dim); font-size: 13px; }
|
||
.devs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
|
||
.devs label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font-size: 14px; cursor: pointer; }
|
||
.devs label:has(input:checked) { border-color: var(--or); background: rgba(255,122,26,.10); }
|
||
.devs input { accent-color: var(--or); margin: 0; }
|
||
.fwother { margin: 6px 0 0; }
|
||
#fwpick { background: transparent; color: var(--dim); border: 1px solid var(--line); font-size: 13px; padding: 6px 10px; cursor: pointer; }
|
||
.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="#feat" data-t="nav_ft"></a>
|
||
<a href="editor/" data-t="nav_ed"></a>
|
||
<div class="trywrap"><button type="button" class="try" id="trybtn" aria-haspopup="true" aria-expanded="false"><span class="tl" data-t="nav_try"></span><span class="ts" data-t="nav_try_s"></span><span class="car">▾</span></button>
|
||
<div class="trymenu" id="trymenu" hidden><a href="emu/">FM-1 <small data-t="try_fm1"></small></a><a href="emu/smk/">SMK-37 <small data-t="try_smk"></small></a></div></div>
|
||
<a href="https://ko-fi.com/ruppert" class="try donate" target="_blank" rel="noopener"><span class="tl" data-t="donate"></span><span class="ts" data-t="donate_s"></span></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>
|
||
<p class="cta-ver curver"></p>
|
||
<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 class="scr" id="scr"><img id="lcd-a" alt=""><img id="lcd-b" alt=""></div></div>
|
||
</figure>
|
||
<figure class="fm smk" id="smkfig">
|
||
<img class="body" id="smk-body" alt="M-VAVE SMK-37" src="">
|
||
<div class="lcd" id="lcd2"><div class="scr" id="scr2"><img id="lcd2-a" alt=""><img id="lcd2-b" alt=""></div></div>
|
||
</figure>
|
||
<img class="mm" id="mm2" alt="" aria-hidden="true">
|
||
<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>
|
||
<p class="cta-ver curver"></p>
|
||
</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="feat">
|
||
<p class="eyebrow" data-t="e_feat"></p>
|
||
<h2 data-t="h_feat"></h2>
|
||
<p class="lead" data-t="l_feat"></p>
|
||
<div class="grid">
|
||
<article class="feat"><span class="n">01</span><h3 data-t="ft1t"></h3><p data-t="ft1d"></p></article>
|
||
<article class="feat"><span class="n">02</span><h3 data-t="ft2t"></h3><p data-t="ft2d"></p></article>
|
||
<article class="feat"><span class="n">03</span><h3 data-t="ft3t"></h3><p data-t="ft3d"></p></article>
|
||
<article class="feat"><span class="n">04</span><h3 data-t="ft4t"></h3><p data-t="ft4d"></p></article>
|
||
<article class="feat"><span class="n">05</span><h3 data-t="ft5t"></h3><p data-t="ft5d"></p></article>
|
||
<article class="feat"><span class="n">06</span><h3 data-t="ft6t"></h3><p data-t="ft6d"></p></article>
|
||
<article class="feat"><span class="n">07</span><h3 data-t="ft7t"></h3><p data-t="ft7d"></p></article>
|
||
<article class="feat"><span class="n">08</span><h3 data-t="ft8t"></h3><p data-t="ft8d"></p></article>
|
||
<article class="feat"><span class="n">09</span><h3 data-t="ft9t"></h3><p data-t="ft9d"></p></article>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="s wrap" id="support">
|
||
<p class="eyebrow" data-t="e_support"></p>
|
||
<h2 data-t="h_support"></h2>
|
||
<p class="lead" data-t="l_support"></p>
|
||
<p><a class="btn pri" href="https://ko-fi.com/ruppert" target="_blank" rel="noopener" data-t="btn_support"></a></p>
|
||
</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>
|
||
|
||
<div class="detected" id="detected" role="status" hidden></div>
|
||
<button id="go" disabled><span data-t="install"></span> <small class="curver-b"></small></button>
|
||
|
||
<dialog class="portpick" id="portpick"><b data-t="pick_t"></b><p data-t="pick_d"></p>
|
||
<label data-t="pick_port"></label><select id="portsel" size="4" aria-label="MIDI"></select>
|
||
<label data-t="pick_dev"></label>
|
||
<div class="devs" id="devsel"><label><input type="radio" name="dev" value="FM-1" checked> FM-1</label><label><input type="radio" name="dev" value="SMK-37 Pro"> SMK-37 Pro</label><label><input type="radio" name="dev" value="SMK-37 Elite"> SMK-37 Elite</label><label><input type="radio" name="dev" value="MKE-P37"> MKE-P37</label></div>
|
||
<button id="portgo" type="button" data-t="pick_b"></button><button id="portno" type="button" class="ghost" data-t="pick_c"></button></dialog>
|
||
<div class="busywarn" role="alert"><b data-t="busy_t"></b><span data-t="busy_d"></span></div>
|
||
<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>
|
||
|
||
<div class="side">
|
||
<p class="note" data-t="intro"></p>
|
||
<p class="note" data-t="compat"></p>
|
||
<p class="note" data-t="smknote"></p>
|
||
<p class="note warn" data-t="warn"></p>
|
||
<p class="note" data-t="direct"></p>
|
||
<p class="note" data-t="beta"></p>
|
||
|
||
<details>
|
||
<summary data-t="logT"></summary>
|
||
<p data-t="fwdl"></p>
|
||
<ul class="fwlist" id="fwlist"></ul>
|
||
<p class="fwother"><button id="fwpick" type="button" data-t="fw_pick"></button><input type="file" id="fwfile" accept=".fwsc" hidden></p>
|
||
<pre id="log"></pre>
|
||
</details>
|
||
</div>
|
||
</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_moog"></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 ou o SMK-37 por USB. O instalador reconhece o aparelho e grava o firmware certo. (Funciona no Chrome ou no Edge.)",
|
||
compat: "Compatível com as novas versões do FM-1 (com o chip de flash UC25HQ80).",
|
||
warn: "Não desconecte o cabo USB durante a gravação.",
|
||
install: "Instalar", other: "English",
|
||
fw_pick: "Instalar outro firmware (.fwsc)…", fw_bad: "Este arquivo não é um firmware válido para o FM-1 ou o SMK-37.",
|
||
smknote: "SMK-37 (Pro, Elite e MKE-P37): a primeira inicialização apaga as configurações do firmware original. Para voltar ao original, use o firmware e o atualizador da M-Vave para o seu modelo.",
|
||
det: "Dispositivo detectado: ", det_ota: " (em modo de atualização)", det_fw: " · instalando o FMini-1 ",
|
||
editor: "Editor",
|
||
direct: "Ligue o cabo USB direto no computador. Não precisa de Probe nem de Transporter.",
|
||
beta: "O FMini-1 é uma versão experimental. O autor não se responsabiliza se o seu FM-1 ou SMK-37 for danificado ou se comportar de forma estranha por causa deste firmware personalizado. Use por sua conta e risco.",
|
||
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! Seu teclado agora é um FMini-1", e_support: "Apoio", h_support: "Suporte o projeto", l_support: "Foram mais de cem horas de trabalho voluntário (mesmo com a ajuda de IA). E sigo corrigindo bugs e implementando novas funções. Seria ótimo se você me apoiasse para continuar este trabalho!!!", btn_support: "Doar", tip_t: "Firmware instalado!", tip_b: "Se você gostar dele, considere dar uma ajuda para o projeto para continuar o aprimoramento dele. Obrigado!", tip_go: "Contribuir", tip_x: "Fechar", donate: "Apoiar", donate_s: "☕", 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: "Nenhum FM-1 ou SMK-37 encontrado. Confira o cabo USB (precisa ser de dados), feche outros apps que usam MIDI e aperte Instalar de novo.",
|
||
model: "O firmware não combina com o aparelho conectado: ",
|
||
unknown: "O aparelho conectado não é um FM-1 nem um SMK-37: ",
|
||
lost: "A conexão USB caiu. Reconecte e aperte Instalar de novo.",
|
||
noloader: "O aparelho 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 aparelho não voltou. Desligue e ligue de novo.",
|
||
mismatch: "Gravado, mas o aparelho informa outra versão: ",
|
||
badpkg: "O arquivo a instalar está danificado. Recarregue a página.",
|
||
leave: "Gravando. Não feche a página.",
|
||
pick_t: "Qual é o seu teclado?", pick_d: "Não achei o FM-1 nem o SMK-37 pelo nome: outro firmware personalizado pode dar outro nome ao USB. Escolha a entrada MIDI do aparelho (com o USB dele conectado) e qual é o aparelho:", pick_port: "Entrada MIDI", pick_dev: "Dispositivo", pick_b: "Instalar neste dispositivo", pick_c: "Cancelar",
|
||
busy_t: "Instalação em andamento: não feche esta página!", busy_d: "Pode trocar de aba ou de programa. Não feche a página, não desconecte o USB nem desligue o teclado até aparecer \"Pronto\". A tela pode ficar apagada ou reiniciar durante o processo: é normal.",
|
||
license: "GPL-3.0, sem garantia. Código-fonte:",
|
||
ready: "Pronto. Conecte o FM-1 ou o SMK-37 e aperte Instalar.",
|
||
step1: "Conectar", step2: "Instalar", step3: "Tocar",
|
||
s1: "Ligue o FM-1 ou o SMK-37 ao computador com um cabo USB de dados.", s2: "Aperte Instalar: o aparelho é detectado e o firmware certo é gravado. Mantenha o cabo conectado até aparecer Pronto.", s3: "O teclado 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: "Emulação do Minimoog para o FM-1 e o SMK-37 (mono/poly)",
|
||
feat: "3 osciladores · filtro ladder · 200 presets · arpejador · MIDI",
|
||
risk: "Use por sua conta e risco", logT: "Detalhes", fw: "Firmware",
|
||
fwdl: "Os firmwares desta página (.fwsc), para baixar:",
|
||
},
|
||
en: {
|
||
intro: "Connect the FM-1 or the SMK-37 by USB. The installer recognises it and writes the right firmware. (Works in Chrome or Edge.)",
|
||
compat: "Supports the new FM-1 versions (with the UC25HQ80 flash chip).",
|
||
warn: "Do not unplug the USB cable while writing.",
|
||
install: "Install", other: "Português",
|
||
fw_pick: "Install another firmware (.fwsc)…", fw_bad: "This file is not a valid firmware for the FM-1 or the SMK-37.",
|
||
smknote: "SMK-37 (Pro, Elite and MKE-P37): the first start clears the stock firmware's settings. To go back to the stock firmware, use M-Vave's firmware and updater for your model.",
|
||
det: "Detected device: ", det_ota: " (in update mode)", det_fw: " · installing FMini-1 ",
|
||
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.",
|
||
beta: "FMini-1 is an experimental release. The author accepts no responsibility if your FM-1 or SMK-37 is damaged or misbehaves because of this custom firmware. Use it at your own risk.",
|
||
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! Your keyboard is now an FMini-1", e_support: "Support", h_support: "Buy me a Coffee", l_support: "It took over a hundred hours for this voluntary work (even with the help of AI). And I am still fixing bugs and implementing new features. It would be great if you support me to continue this work!!!", btn_support: "Tip", tip_t: "Firmware installed!", tip_b: "If you like it, consider a tip to support the project. Thank you!", tip_go: "Donate", tip_x: "Close", donate: "Support", donate_s: "☕", 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: "No FM-1 or SMK-37 found. Check the USB cable (a data cable), close other apps that use MIDI, and press Install again.",
|
||
model: "The firmware does not match the connected device: ",
|
||
unknown: "The connected device is neither an FM-1 nor an SMK-37: ",
|
||
lost: "The USB connection was lost. Replug it and press Install again.",
|
||
noloader: "The device 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 device did not come back. Power-cycle it.",
|
||
mismatch: "Written, but the device reports another version: ",
|
||
badpkg: "The file to install is damaged. Reload the page.",
|
||
leave: "Writing. Do not close the page.",
|
||
pick_t: "Which is your keyboard?", pick_d: "I could not find the FM-1 or the SMK-37 by name: another custom firmware may name its USB device differently. Pick the device's MIDI input (with its USB connected) and which device it is:", pick_port: "MIDI input", pick_dev: "Device", pick_b: "Install on this device", pick_c: "Cancel",
|
||
busy_t: "Installing: do not close this page!", busy_d: "You can switch tabs or apps. Do not close the page, unplug the USB cable or power off the keyboard until it says Done. The screen may go blank or restart meanwhile: that is normal.",
|
||
license: "GPL-3.0, no warranty. Source:",
|
||
ready: "Ready. Connect your FM-1 or SMK-37 and press Install.",
|
||
step1: "Connect", step2: "Install", step3: "Play",
|
||
s1: "Plug the FM-1 or the SMK-37 into the computer with a USB data cable.", s2: "Press Install: the device is detected and the right firmware is written. Keep the cable connected until it says Done.", s3: "The keyboard 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 emulation for the M-Vave FM-1 and SMK-37 (mono/poly)",
|
||
feat: "3 oscillators · ladder filter · 200 presets · arpeggiator · MIDI",
|
||
risk: "Use at your own risk", logT: "Details", fw: "Firmware",
|
||
fwdl: "This page's firmwares (.fwsc), to download:",
|
||
},
|
||
};
|
||
/* ---- the site: texts (PT / EN / JA) and the parts it draws itself ---- */
|
||
const SITE = {
|
||
pt: {
|
||
nav_f: "Som", nav_s: "Telas", nav_ft: "Features", nav_ed: "Editor", nav_i: "Instalar",
|
||
sub: "Um firmware aberto que transforma o M-VAVE FM-1 e o SMK-37 em sintetizadores monofônicos e polifônicos. O FMini-1 usa a técnica de Analog Circuit Modelling, criada a partir dos esquemas reais do Minimoog para reproduzir com precisão o comportamento do instrumento original: três osciladores, filtro ladder, contornos, efeitos e tudo ao alcance dos botões e knobs do seu teclado.",
|
||
chip_f: "Filtro ladder", chip_p: "200 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, a mesma no FM-1 e no SMK-37, com 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) independente nos osciladores 2 e 3 e uma leve deriva de afinação, como a dos VCOs analógicos.",
|
||
f2t: "Filtro ladder", f2d: "Ladder de 4 polos, 24 dB/oitava, com saturação em cada estágio e o atraso de realimentação do circuito do Minimoog. Com a ênfase a partir de 8 o filtro auto-oscila numa senoide pura que acompanha o teclado em 1 V/oitava. O corte é lido de −5 a +5, como no painel.",
|
||
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: "200 presets", f4d: "Vinte grupos de dez: uma vitrine de estilos, hard leads, soft leads, baixos, pads e cordas, metais, plucks, teclas, atmosferas e efeitos sonoros.",
|
||
f5t: "Arpejador e sequenciador", f5d: "Um toque no ARP liga e desliga; segurar ativa o HOLD. O sequenciador grava até 64 notas (REC) e toca (PLAY). Os LEDs das teclas (no SMK-37, os pads) 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 e do SMK-37, com knobs estriados, chaves vermelhas e azuis e gráficos de filtro e contornos. Escolha uma página:",
|
||
views: [
|
||
{ t: "CTRL · Controladores", d: "Afinação geral, glide, quantidade de modulação e velocidade do LFO (botão 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 dos osciladores 2 e 3.", 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: "A página inicial (botão HOME, ou EDIT). 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 resposta do filtro e a frequência em que ele auto-oscila"] },
|
||
{ 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: o nível de cada um (MIX, e GAIN no drive) em cima e, embaixo, um botão EDIT que abre os quatro parâmetros do efeito.", l: ["Cada preset guarda o seu mix e os seus ajustes", "Com o knob no zero o efeito desliga por completo e não gasta processamento"] },
|
||
],
|
||
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: "64 posições para notas. REC arma a gravação (girando o SELECT: para a direita deixa uma pausa, para a esquerda volta e apaga), PLAY toca e para, e o tempo se ajusta com o encoder." },
|
||
{ i: "save", t: "Salvar preset", d: "Escolha a posição (000 a 199), escreva o nome com os encoders e aperte SAVE. O novo som substitui o que estava nessa posição." },
|
||
{ i: "fxrev", t: "FX · Editar reverb", d: "O botão EDIT abre quatro knobs: MIX, TYPE (room, hall, plate, spring e cloud, longo e denso), DECAY e TONE. Todos os reverbs são estéreo. Apertar FX de novo passa para o delay, o chorus e o drive." },
|
||
{ i: "fxdly", t: "FX · Editar delay", d: "MIX, TYPE (analog, digital, tape, ping-pong, multi-tap, slapback e reverse), TIME e FEEDBACK. O botão SCL marca o tempo (tap tempo). O chorus tem Stereo (inspirado no CE-2), Juno e Multi; o drive, Soft e Tube." },
|
||
{ i: "glo", t: "Global", d: "Entrada MIDI (USB, MIDI ou todas), canal, clock MIDI do ARP e do SEQ (OFF, USB ou TRS), faixa do pitch bend e a lista de controles MIDI." },
|
||
{ i: "cc", t: "Lista de MIDI CC", d: "50 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." },
|
||
],
|
||
l_feat: "As funcionalidades, em resumo.",
|
||
ft1t: "200 presets", ft1d: "200 presets de fábrica, de leads a efeitos sonoros. Salve os seus em qualquer posição: o novo som substitui o que estava lá.",
|
||
ft2t: "Mono e 12 vozes", ft2d: "Monofônico como o Minimoog, ou polifônico com 12 vozes.",
|
||
ft3t: "Emulação perfeita", ft3d: "Três osciladores, mixer com saturação suave e filtro ladder de 24 dB/oitava com auto-oscilação, modelados no Minimoog Model D.",
|
||
ft4t: "Efeitos", ft4d: "5 reverbs (Room, Hall, Plate, Spring, Cloud), 7 delays (Analog, Digital, Tape, Ping-Pong, Multi, Slap, Reverse), 3 chorus (Stereo, Juno, Multi) e drive (Soft, Tube).",
|
||
ft5t: "MIDI CC para controladores", ft5d: "50 controles com CC próprio, que você pode trocar, e o FMini-1 aprende o CC que o controlador enviar. Entrada USB (e TRS no FM-1), filtro de canal, pitch bend e roda de modulação (vibrato).",
|
||
ft6t: "Sequenciador de 64 notas", ft6d: "Grave até 64 notas (REC) e toque (PLAY).",
|
||
ft7t: "Arpegiador", ft7d: "Um toque liga e desliga, segurar ativa o HOLD.",
|
||
ft8t: "Editor web", ft8d: "Edite sons e presets pelo navegador, ligado ao FM-1 por USB-MIDI.",
|
||
ft9t: "Emuladores online", ft9d: "Experimente o FMini-1 no navegador, no FM-1 ou no SMK-37, sem instalar nada.",
|
||
h_install: "Instalar", l_install: "O instalador roda aqui mesmo, no navegador: reconhece se o aparelho é um FM-1 ou um SMK-37 e grava o firmware certo pelo cabo USB.",
|
||
try_fm1: "emulador", try_smk: "emulador",
|
||
},
|
||
en: {
|
||
nav_f: "Sound", nav_s: "Screens", nav_ft: "Features", nav_ed: "Editor", nav_i: "Install",
|
||
sub: "An open firmware that turns the M-VAVE FM-1 and SMK-37 into monophonic and polyphonic synths. FMini-1 uses Analog Circuit Modelling, built from the actual Minimoog schematics to accurately reproduce the behaviour of the real instrument: three oscillators, a ladder filter, contours and effects, all within reach of your keyboard's buttons and knobs.",
|
||
chip_f: "Ladder filter", chip_p: "200 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 240 × 240 screen, the same on the FM-1 and the SMK-37, with real knobs to play it for real.",
|
||
f1t: "Oscillator bank", f1d: "Three oscillators with ranges from LO to 2', a waveform each, independent detune on oscillators 2 and 3 and a touch of pitch drift, like analog VCOs.",
|
||
f2t: "Ladder filter", f2d: "A four-pole ladder, 24 dB/octave, with saturation in every stage and the feedback lag of the Minimoog circuit. From emphasis 8 up it self-oscillates as a pure sine that follows the keyboard at 1 V/octave. Cutoff reads -5 to +5, as on the panel.",
|
||
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: "200 presets", f4d: "Twenty groups of ten: a showcase of styles, hard leads, soft leads, basses, pads and strings, brass, plucks, keys, atmospheres and sound effects.",
|
||
f5t: "Arpeggiator and sequencer", f5d: "One tap on ARP turns it on and off; holding it sets HOLD. The sequencer records up to 64 notes (REC) and plays them (PLAY). The key LEDs (the pads on the SMK-37) 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 screen of the FM-1 and the SMK-37, with fluted knobs, red and blue rocker switches and graphs of the filter and contours. Pick a page:",
|
||
views: [
|
||
{ t: "CTRL · Controllers", d: "Master tune, glide, modulation amount and LFO speed (the LFO button).", 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 for oscillators 2 and 3.", 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: "The home page (the HOME button, or EDIT). 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 filter's response and the pitch where it self-oscillates"] },
|
||
{ 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: the level of each (MIX, and GAIN on the drive) on top and, below, an EDIT button that opens the effect's four parameters.", l: ["Each preset stores its own mix and settings", "A knob at zero turns the effect completely off and spends no processing"] },
|
||
],
|
||
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: "64 slots for notes. REC arms recording (turning SELECT right leaves a rest, left goes back and erases), PLAY starts and stops, and the tempo is set with an encoder." },
|
||
{ i: "save", t: "Save preset", d: "Pick the slot (000 to 199), type the name with the encoders and press SAVE. The new sound replaces what was in that slot." },
|
||
{ i: "fxrev", t: "FX · Edit reverb", d: "EDIT opens four knobs: MIX, TYPE (room, hall, plate, spring and cloud, long and dense), DECAY and TONE. Every reverb is stereo. Pressing FX again moves on to the delay, the chorus and the drive." },
|
||
{ i: "fxdly", t: "FX · Edit delay", d: "MIX, TYPE (analog, digital, tape, ping-pong, multi-tap, slapback and reverse), TIME and FEEDBACK. The SCL button taps the tempo. The chorus has Stereo (after the CE-2), Juno and Multi; the drive, Soft and Tube." },
|
||
{ i: "glo", t: "Global", d: "MIDI input (USB, MIDI or all), channel, MIDI clock for the ARP and SEQ (OFF, USB or TRS), pitch bend range and the list of MIDI controls." },
|
||
{ i: "cc", t: "MIDI CC list", d: "50 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." },
|
||
],
|
||
l_feat: "The features at a glance.",
|
||
ft1t: "200 presets", ft1d: "200 factory presets, from leads to sound effects. Save your own in any slot: the new sound replaces what was there.",
|
||
ft2t: "Mono and 12 voices", ft2d: "Monophonic like the Minimoog, or polyphonic with 12 voices.",
|
||
ft3t: "Minimoog model", ft3d: "Three oscillators, a mixer that overloads softly and a 24 dB/oct ladder filter that self-oscillates, modelled on the Minimoog Model D.",
|
||
ft4t: "Effects", ft4d: "5 reverbs (Room, Hall, Plate, Spring, Cloud), 7 delays (Analog, Digital, Tape, Ping-Pong, Multi, Slap, Reverse), 3 choruses (Stereo, Juno, Multi) and drive (Soft, Tube).",
|
||
ft5t: "MIDI CC for controllers", ft5d: "50 controls with their own CC, which you can change, and the FMini-1 learns the CC your controller sends. USB input (and TRS on the FM-1), channel filter, pitch bend and mod wheel (vibrato).",
|
||
ft6t: "64-note sequencer", ft6d: "Record up to 64 notes (REC) and play them back (PLAY).",
|
||
ft7t: "Arpeggiator", ft7d: "One tap turns it on and off, holding it enables HOLD.",
|
||
ft8t: "Web editor", ft8d: "Edit sounds and presets in the browser, connected to the FM-1 over USB-MIDI.",
|
||
ft9t: "Online emulators", ft9d: "Try the FMini-1 in your browser, on the FM-1 or the SMK-37, with nothing to install.",
|
||
h_install: "Install", l_install: "The installer runs right here, in the browser: it recognises whether the device is an FM-1 or an SMK-37 and writes the right firmware over the USB cable.",
|
||
try_fm1: "emulator", try_smk: "emulator",
|
||
},
|
||
};
|
||
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 SMK-37", 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_feat: "Features", h_feat: "Tudo o que o FMini-1 faz", e_install: "Instalar", h_install: "Instale direto do navegador" },
|
||
en: { announce: "Free, open-source firmware for the M-VAVE FM-1 and SMK-37", 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_feat: "Features", h_feat: "Everything the FMini-1 does", e_install: "Install", h_install: "Install straight from the browser" },
|
||
};
|
||
for (const l in SITE2) Object.assign(TEXT[l], SITE2[l]);
|
||
const SITE3 = {
|
||
pt: { hero2_t: "Um clássico dentro do FM-1 e do SMK-37.", 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 and the SMK-37.", hero2_s: "Free firmware. Install straight from the browser and go back to the original whenever you like.", hint: "Scroll" },
|
||
};
|
||
for (const l in SITE3) Object.assign(TEXT[l], SITE3[l]);
|
||
const SITE4 = {
|
||
pt: { nav_try: "Testar no navegador", nav_try_s: "Testar", 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_moog: "Minimoog é uma marca registrada da Moog Music Inc. e da inMusic MMI Acquisition. Os autores deste projeto não têm qualquer afiliação com essas empresas, mas são clientes orgulhosos de seus produtos e gratos pelo legado do Minimoog.", cr_ai: "Aviso sobre IA: este projeto foi realizado com o auxílio do Claude, um modelo de IA da Anthropic." },
|
||
en: { nav_try: "Try in browser", nav_try_s: "Try", 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_moog: "Minimoog is a registered trademark of Moog Music Inc. and inMusic MMI Acquisition. The authors of this project have no affiliation with these companies, but they are proud customers of their products and grateful for the legacy of the Minimoog.", cr_ai: "AI disclaimer: this project was developed with the assistance of Claude, an AI model by Anthropic." },
|
||
};
|
||
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); });
|
||
}
|
||
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);
|
||
});
|
||
}
|
||
|
||
const nl = (navigator.language || "en").toLowerCase();
|
||
/* the language: PT / EN, kept for the editor and the emulators too (localStorage "fmini-lang"; else the browser's) */
|
||
let lang = (() => { try { const v = localStorage.getItem("fmini-lang"); if (v === "pt" || v === "en") return v; } catch (_) { /* (no storage) */ } return nl.startsWith("pt") ? "pt" : "en"; })();
|
||
const LANGS = ["pt", "en"];
|
||
const t = (k) => TEXT[lang][k];
|
||
let lastKey = null, lastArg = "", detKey = null; /* (detKey: the device step 1 found, shown again on a language change) */
|
||
function applyLang() {
|
||
document.documentElement.lang = lang;
|
||
document.querySelectorAll("[data-t]").forEach((e) => { e.textContent = t(e.dataset.t); });
|
||
$("tipx").textContent = t("tip_x");
|
||
$("lang").textContent = lang === "pt" ? "PT" : "EN";
|
||
if (lastKey) $("status").textContent = t(lastKey) + lastArg;
|
||
if (detKey) showDetected(detKey.label, detKey.ota, detKey.pk);
|
||
renderSite();
|
||
}
|
||
$("tipx").addEventListener("click", () => { $("tip").hidden = true; });
|
||
/* "Try in browser": the two emulators, FM-1 and SMK-37 */
|
||
$("trybtn").addEventListener("click", (e) => { e.stopPropagation(); const open = $("trymenu").hidden; $("trymenu").hidden = !open; $("trybtn").setAttribute("aria-expanded", String(open)); });
|
||
document.addEventListener("click", (e) => { if (!$("trymenu").hidden && !e.target.closest(".trywrap")) { $("trymenu").hidden = true; $("trybtn").setAttribute("aria-expanded", "false"); } });
|
||
addEventListener("keydown", (e) => { if (e.key === "Escape") { $("trymenu").hidden = true; $("trybtn").setAttribute("aria-expanded", "false"); } });
|
||
$("tip").addEventListener("click", (e) => { if (e.target.id === "tip") $("tip").hidden = true; });
|
||
$("lang").addEventListener("click", () => {
|
||
lang = LANGS[(LANGS.indexOf(lang) + 1) % LANGS.length];
|
||
try { localStorage.setItem("fmini-lang", lang); } catch (_) { /* (no storage) */ }
|
||
applyLang();
|
||
});
|
||
applyLang();
|
||
const sayK = (k, arg = "") => { lastKey = k; lastArg = arg; $("status").textContent = t(k) + arg; if (k === "done") $("tip").hidden = false; document.body.classList.toggle("bad", ["error","denied","notfound","model","unknown","lost","noloader","noreturn","mismatch","badpkg","stopped","loadfail","nomidi","fw_bad"].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");
|
||
}
|
||
// the write phase: the requests take the bar from 6 % to 78 %; from there (the last block, or no request for 1.5 s) +1 %
|
||
// every 0.7 s up to 99 % while the device finishes, whatever it still asks for; 100 % as soon as the write is finished (the reboot step)
|
||
let crawl = null, wLast = 0, wTick = 0, wPct = 6, wCap = false;
|
||
function writeBar(n) {
|
||
const now = Date.now();
|
||
if (!crawl) { wPct = 6; wCap = false; wTick = now; }
|
||
wLast = now;
|
||
wCap = wCap || n >= 1167;
|
||
wPct = Math.max(wPct, 6 + 72 * Math.min(1, n / 1167));
|
||
setBar(wPct, "write");
|
||
if (!crawl) crawl = setInterval(() => {
|
||
const t = Date.now();
|
||
if (!writing) { stopCrawl(); return; }
|
||
if ((wCap || t - wLast > 1500) && t - wTick >= 700 && wPct < 99) { wTick = t; wPct = Math.min(99, wPct + 1); setBar(wPct, "write"); }
|
||
}, 100);
|
||
}
|
||
function stopCrawl() { if (crawl) clearInterval(crawl); crawl = null; }
|
||
/* the packages: the FM-1's and the SMK-37's (Pro, Elite, MKE-P37), each for exactly one model (fm1ota.js sameModel) */
|
||
const meta = /*META*/;
|
||
const PKGS = meta.pkgs; /* [{product, label, file, version, pkg}] */
|
||
const modelOf = (product) => product.split("_")[0];
|
||
const images = {}; /* product -> the logical image */
|
||
let picked = null; /* "Install another firmware": {image, product} */
|
||
let ready = false;
|
||
document.querySelectorAll(".curver").forEach((e) => { e.textContent = meta.smkVersion && meta.smkVersion !== meta.version ? "FM-1 v" + meta.version + " · SMK-37 v" + meta.smkVersion : "v" + meta.version + " · FM-1 · SMK-37"; });
|
||
document.querySelectorAll(".curver-b").forEach((e) => { e.textContent = ""; });
|
||
for (const p of PKGS) {
|
||
const li = document.createElement("li"), a = document.createElement("a"), sp = document.createElement("span");
|
||
a.href = p.pkg; a.download = p.file; a.textContent = p.label + " · v" + p.version; sp.textContent = p.file;
|
||
li.append(a, sp); $("fwlist").appendChild(li);
|
||
}
|
||
|
||
let writing = false;
|
||
let wake = null;
|
||
const keepAwake = async (on) => { try { if (on && navigator.wakeLock) wake = await navigator.wakeLock.request("screen"); else if (wake) { await wake.release(); wake = null; } } catch (_) {} };
|
||
// While an install runs, the page is kept from being frozen or paused in the background: a Web Lock (the browser does not
|
||
// freeze a page that holds one), a silent audio context (a page that makes sound is not throttled as hard) and the
|
||
// screen wake lock, asked again when the tab comes back (the browser drops it when the tab is hidden).
|
||
let holdRelease = null, holdAudio = null;
|
||
const holdPage = (on) => {
|
||
if (on) {
|
||
try { if (navigator.locks) navigator.locks.request("fm1-install", () => new Promise((r) => { holdRelease = r; })).catch(() => {}); } catch (_) {}
|
||
try {
|
||
const AC = window.AudioContext || window.webkitAudioContext;
|
||
if (AC && !holdAudio) {
|
||
holdAudio = new AC();
|
||
const o = holdAudio.createOscillator(), g = holdAudio.createGain();
|
||
g.gain.value = 0.000001;
|
||
o.connect(g).connect(holdAudio.destination);
|
||
o.start();
|
||
}
|
||
} catch (_) {}
|
||
} else {
|
||
if (holdRelease) { holdRelease(); holdRelease = null; }
|
||
if (holdAudio) { holdAudio.close().catch(() => {}); holdAudio = null; }
|
||
}
|
||
};
|
||
const lockInstaller = (on) => { keepAwake(on); holdPage(on); writing = on; $("go").disabled = on || !ready; };
|
||
document.addEventListener("visibilitychange", () => { if (!document.hidden && writing) keepAwake(true); });
|
||
window.addEventListener("beforeunload", (e) => { if (writing) { e.preventDefault(); e.returnValue = t("leave"); } });
|
||
|
||
(async () => {
|
||
if (!navigator.requestMIDIAccess) { sayK("nomidi"); return; }
|
||
try {
|
||
for (const p of PKGS) {
|
||
const r = await fetch(p.pkg);
|
||
if (!r.ok) throw new Error(`${p.file}: HTTP ${r.status}`);
|
||
const pkg = new Uint8Array(await r.arrayBuffer());
|
||
if (productOf(pkg) !== p.product) { sayK("badpkg"); return; }
|
||
images[p.product] = logicalImage(pkg);
|
||
}
|
||
ready = true;
|
||
say(t("ready"));
|
||
$("go").disabled = false;
|
||
setBar(0, null);
|
||
} catch (e) { sayK("loadfail", e.message); }
|
||
})();
|
||
|
||
/* step 1 done: which device, and what goes on it */
|
||
function showDetected(label, ota, pk) {
|
||
detKey = { label, ota, pk };
|
||
const box = $("detected");
|
||
box.innerHTML = "";
|
||
const b = document.createElement("b"); b.textContent = label;
|
||
box.append(t("det"), b, (ota ? t("det_ota") : "") + (pk ? t("det_fw") + "v" + pk.version : ""));
|
||
box.hidden = false;
|
||
}
|
||
async function runInstall(portName, chosen) {
|
||
if (writing) return;
|
||
if ($("portpick").open) $("portpick").close();
|
||
lockInstaller(true);
|
||
$("detected").hidden = true; detKey = null;
|
||
let midi;
|
||
try { midi = await navigator.requestMIDIAccess({ sysex: true }); }
|
||
catch (e) { sayK("denied"); lockInstaller(false); return; }
|
||
try {
|
||
const up = new Updater(midi, log);
|
||
up.portName = portName || null;
|
||
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"); writeBar(a); }
|
||
if (k === "reboot") { stopCrawl(); sayK("reboot"); setBar(100, "reboot"); }
|
||
if (k === "done") { stopCrawl(); setBar(100, "done"); sayK("done"); }
|
||
};
|
||
/* which device is it: its identity (the running firmware's, or the update loader's) */
|
||
const dev = await up.find(() => true);
|
||
if (!dev && !portName) { sayK("notfound"); offerPorts(midi); lockInstaller(false); return; }
|
||
const ota = !!dev && /^ota-/i.test(dev.id.model);
|
||
const model = dev ? dev.id.model.replace(/^ota-/i, "") : chosen;
|
||
if (dev) dev.link.close();
|
||
const pk = picked ? { product: picked.product, version: picked.version || "?", label: modelOf(picked.product) } : PKGS.find((p) => modelOf(p.product) === model);
|
||
if (!pk) { sayK("unknown", dev ? dev.id.text : String(model)); lockInstaller(false); return; }
|
||
showDetected(dev ? model : chosen, ota, pk);
|
||
const image = picked ? picked.image : images[pk.product];
|
||
if (ota) sayK((await up.resume(image, step, pk.product)) ? "done" : "stopped");
|
||
else await up.install(image, pk.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));
|
||
if (e && e.code === "notfound") offerPorts(midi);
|
||
}
|
||
lockInstaller(false);
|
||
}
|
||
// not found by name (another custom firmware may name its USB device differently): the player picks the MIDI port and
|
||
// the device
|
||
function offerPorts(midi) {
|
||
const names = [...new Set([...midi.inputs.values()].filter((i) => i.state !== "disconnected").map((i) => i.name).filter(Boolean))];
|
||
const sel = $("portsel");
|
||
sel.innerHTML = "";
|
||
for (const n of names) { const o = document.createElement("option"); o.value = o.textContent = n; sel.appendChild(o); }
|
||
sel.selectedIndex = 0;
|
||
if (names.length && $("portpick").showModal) $("portpick").showModal();
|
||
}
|
||
$("portgo").addEventListener("click", () => {
|
||
const n = $("portsel").value, d = (document.querySelector('#devsel input:checked') || {}).value || "FM-1";
|
||
$("portpick").close();
|
||
if (n) runInstall(n, d);
|
||
});
|
||
$("portno").addEventListener("click", () => $("portpick").close());
|
||
$("go").addEventListener("click", () => runInstall(null, null));
|
||
const hasMarker = (b) => { const m = "FELUCCA-LOADER-1"; for (let i = 0; i + m.length <= b.length; i++) { let k = 0; while (k < m.length && b[i + k] === m.charCodeAt(k)) k++; if (k === m.length) return true; } return false; };
|
||
$("fwpick").addEventListener("click", () => $("fwfile").click());
|
||
$("fwfile").addEventListener("change", async (e) => {
|
||
const file = e.target.files[0];
|
||
e.target.value = "";
|
||
if (!file || writing) return;
|
||
try {
|
||
const pkg = new Uint8Array(await file.arrayBuffer());
|
||
const prod = productOf(pkg);
|
||
if (!/^(FM-1|SMK-37 Pro|SMK-37 Elite|MKE-P37)_9\d\d$/.test(prod) || !hasMarker(pkg)) { sayK("fw_bad"); picked = null; return; }
|
||
picked = { image: logicalImage(pkg), product: prod, version: (file.name.match(/(\d+\.\d+\.\d+)/) || [])[1] };
|
||
say(`${file.name} (${prod})`);
|
||
$("go").disabled = !ready;
|
||
setBar(0, null);
|
||
} catch (_) { sayK("fw_bad"); picked = null; }
|
||
});
|
||
|
||
|
||
/* ---- hero: the Minimoog splits in two as the page scrolls: one dives into the FM-1's screen, the other into the
|
||
* SMK-37's; the two keyboards then show the real screens, each its own page (reduced motion: the finished picture) ---- */
|
||
(() => {
|
||
const hero = $("top"), stage = $("stage"), mm = $("mm"), mm2 = $("mm2"), fm = $("fm"), smk = $("smkfig"), lcd = $("lcd"), lcd2 = $("lcd2");
|
||
const copy1 = $("copy1"), copy2 = $("copy2"), hint = $("hint");
|
||
const A = $("lcd-a"), B = $("lcd-b"), A2 = $("lcd2-a"), B2 = $("lcd2-b");
|
||
$("fm-body").src = IMG.fm1;
|
||
$("smk-body").src = IMG.smk37;
|
||
mm2.src = mm.src;
|
||
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;
|
||
A2.src = IMG.splash; A2.style.opacity = 1; B2.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);
|
||
/* the two pictures: the FM-1 (859 x 512) and the SMK-37 (1872 x 827); where each screen is in its picture */
|
||
const MR = 452 / 900, FR = 512 / 859, SR = 827 / 1872;
|
||
const FL = [0.3073, 0.1523, 0.1676, 0.283], SL = [0.13702, 0.11423, 0.17107, 0.38713];
|
||
let prog = 0, W = 0, H = 0, mob = false, p = -1, rot = 0, rotAt = 0;
|
||
let fmW = 0, fmH = 0, fmX = 0, fmY = 0, smW = 0, smH = 0, smX = 0, smY = 0, mmW0 = 0, mmX0 = 0, mmY0 = 0;
|
||
function layout() {
|
||
W = stage.clientWidth; H = stage.clientHeight;
|
||
mob = W < 820;
|
||
const c2h = copy2.offsetHeight || 200, gap = mob ? 18 : 30;
|
||
if (mob) { /* a phone: the FM-1 above, the SMK-37 below */
|
||
fmY = Math.max(12, H * 0.07);
|
||
fmW = W * 0.8; smW = W * 0.96;
|
||
const room = H - fmY - c2h - gap - 28, need = fmW * FR + 14 + smW * SR;
|
||
if (need > room) { const k = room / need; fmW *= k; smW *= k; }
|
||
fmH = fmW * FR; smH = smW * SR;
|
||
fmX = (W - fmW) / 2; smX = (W - smW) / 2; smY = fmY + fmH + 14;
|
||
copy2.style.top = smY + smH + gap + "px";
|
||
} else { /* side by side, the SMK-37 a little wider */
|
||
fmY = Math.max(18, H * 0.06);
|
||
const gx = Math.max(24, W * 0.03), tot = Math.min(W * 0.94, 1560);
|
||
fmW = Math.min((tot - gx) / 2.3, (H * 0.6) / FR, (H - fmY - c2h - gap - 28) / FR);
|
||
smW = fmW * 1.3;
|
||
fmH = fmW * FR; smH = smW * SR;
|
||
fmX = (W - fmW - gx - smW) / 2; smX = fmX + fmW + gx;
|
||
smY = fmY + (fmH - smH) / 2;
|
||
copy2.style.top = fmY + fmH + gap + "px";
|
||
}
|
||
fm.style.width = fmW + "px"; fm.style.left = fmX + "px"; fm.style.top = fmY + "px";
|
||
smk.style.width = smW + "px"; smk.style.left = smX + "px"; smk.style.top = smY + "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);
|
||
}
|
||
/* a Minimoog picture from where it starts to the screen of a figure (x, y, w its box; L the screen in it; sc its scale) */
|
||
function fly(img, q, x, y, w, h, L, sc, fade) {
|
||
const cx = x + w * (L[0] + L[2] / 2), cy = y + h * (L[1] + L[3] / 2);
|
||
const tw = w * L[2] * sc * 1.02;
|
||
const ex = x + w / 2 + (cx - x - w / 2) * sc, ey = y + h / 2 + (cy - y - h / 2) * sc;
|
||
const ww = mmW0 + (tw - mmW0) * q, hh = ww * MR;
|
||
const sx = mmX0 + mmW0 / 2, sy = mmY0 + mmW0 * MR / 2;
|
||
const mx = sx + (ex - sx) * q, my = sy + (ey - sy) * q;
|
||
img.style.width = ww + "px"; img.style.left = mx - ww / 2 + "px"; img.style.top = my - hh / 2 + "px";
|
||
img.style.opacity = fade;
|
||
}
|
||
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));
|
||
/* the SMK-37's half leaves a moment later and lands a moment later: the split shows */
|
||
const q2 = ease(clamp((p - 0.16) / 0.66));
|
||
const sc = 0.9 + 0.1 * q, sc2 = 0.9 + 0.1 * q2;
|
||
fm.style.opacity = clamp(q / 0.35);
|
||
fm.style.transform = "scale(" + sc + ")";
|
||
smk.style.opacity = clamp(q2 / 0.35);
|
||
smk.style.transform = "scale(" + sc2 + ")";
|
||
fly(mm, q, fmX, fmY, fmW, fmH, FL, sc, 1 - clamp((q - 0.88) / 0.12));
|
||
fly(mm2, q2, smX, smY, smW, smH, SL, sc2, 1 - clamp((q2 - 0.88) / 0.12));
|
||
lcd.style.opacity = 1; lcd2.style.opacity = 1;
|
||
$("scr").style.opacity = clamp((p - 0.9) / 0.1);
|
||
$("scr2").style.opacity = clamp((p - 0.92) / 0.08);
|
||
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 = 1600;
|
||
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;
|
||
A2.src = IMG.splash; A2.style.opacity = 1; B2.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 keyboards show the real screens, one after the other, the SMK-37 four pages ahead of the FM-1 */
|
||
function show(a, b, src) {
|
||
const on = a.style.opacity === "1" ? a : b, off = on === a ? b : a;
|
||
off.src = src; off.style.opacity = 1; on.style.opacity = 0;
|
||
}
|
||
const N = ROT.length - 1;
|
||
const next = () => {
|
||
rot = rot + 1 > N ? 1 : rot + 1;
|
||
show(A, B, IMG[ROT[rot]]);
|
||
show(A2, B2, IMG[ROT[1 + (rot - 1 + 4) % N]]);
|
||
rotAt = performance.now();
|
||
};
|
||
lcd.addEventListener("click", next);
|
||
lcd2.addEventListener("click", next);
|
||
if (!rm) setInterval(() => { if (state === 2 && performance.now() - rotAt >= 1000) next(); }, 100);
|
||
layout();
|
||
})();
|
||
</script>
|
||
<div class="tipbg" id="tip" hidden><div class="tipbox" role="dialog" aria-modal="true" aria-labelledby="tipt">
|
||
<h3 id="tipt" data-t="tip_t"></h3><p data-t="tip_b"></p>
|
||
<a class="tipgo" href="https://ko-fi.com/ruppert" target="_blank" rel="noopener" data-t="tip_go"></a><button class="tipx" id="tipx" data-t="tip_x"></button>
|
||
</div></div>
|
||
</body>
|
||
</html>
|