Files
JIANT/web/index_pkg.html

1029 lines
113 KiB
HTML
Raw Permalink 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
Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments
Portions Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) -->
<html lang="ja" data-skin="fm">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>JIANT FM</title>
<style>
:root { --bg: #fff; --fg: #000; --dim: #777; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #000; --fg: #fff; --dim: #888; }
}
:root[data-theme="dark"] { --bg: #000; --fg: #fff; --dim: #888; }
body { margin: 0; background: var(--bg); color: var(--fg);
font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
main { max-width: 520px; margin: 0 auto; padding: 48px 16px; }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 24px; }
.lang { float: right; font-size: 13px; }
.lang button { font-size: 13px; background: none; color: var(--dim); padding: 0 0 0 8px; text-decoration: underline; }
.lang button[aria-pressed="true"] { color: var(--fg); text-decoration: none; font-weight: 600; }
p { margin: 0 0 16px; }
button { font: inherit; background: var(--fg); color: var(--bg); border: 0; padding: 8px 20px; cursor: pointer; }
button:disabled { opacity: .3; cursor: default; }
#status { margin-top: 16px; min-height: 1.6em; }
.small { color: var(--dim); font-size: 13px; }
progress { width: 100%; height: 4px; margin-top: 16px; }
pre { color: var(--dim); font-size: 12px; white-space: pre-wrap; margin-top: 16px; overflow-wrap: anywhere; }
.tip { border: 2px solid #ec6e50; padding: 10px 14px; margin: 12px 0 16px; }
.tip p { margin: 0 0 6px; }
.tip ol { margin: 0; padding-left: 20px; font-size: 14px; }
.diag { border: 1px solid var(--dim); padding: 8px 12px; margin: 16px 0; }
/* (studio) before installing, the warnings in one card, accepted once; then three steps */
.gate { border: 1px solid var(--dim); padding: 16px 18px; margin: 0 0 18px; }
.gate h2 { margin: 0 0 6px; font-size: 20px; }
.gatebody { max-height: 52vh; overflow: auto; border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim); padding: 12px 4px; margin: 10px 0; }
.accept label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.accept input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.isteps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.isteps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.isteps li::before { content: counter(s); grid-row: span 4; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-weight: 600; }
.isteps li > * { grid-column: 2; }
.isteps b { font-size: 16px; }
.more { margin: 12px 0; }
.more summary { cursor: pointer; color: var(--dim); }
.vn { max-height: 88vh; overflow: auto; max-width: min(620px, 94vw); border: 1px solid var(--dim); padding: 18px 20px; background: var(--bg); color: var(--fg); }
.vn::backdrop { background: rgba(0, 0, 0, .7); }
.vn h2 { margin: 2px 0 8px; font-size: 22px; } .vn h3 { margin: 8px 0 4px; font-size: 14px; }
.vn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
@media (max-width: 520px) { .vn-cols { grid-template-columns: 1fr; } }
.vn ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.vn li { margin: 3px 0; padding-left: 20px; position: relative; }
#vn-has li::before { content: "✓"; position: absolute; left: 0; color: #7be0a8; }
#vn-hasnt li::before { content: "✕"; position: absolute; left: 0; color: #ff8a80; }
.vn-meta b { font-weight: 600; }
button.linkish { background: none; color: var(--dim); padding: 0; text-decoration: underline; font-size: 13px; }
.diag pre { max-height: 220px; overflow: auto; margin: 8px 0; }
.diag button { font-size: 13px; padding: 4px 12px; margin: 0 6px 6px 0; }
a { color: inherit; }
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Michroma&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=Instrument+Sans:wght@400;500;600&amp;family=Noto+Sans+JP:wght@400;500&amp;display=swap">
<style id="jiant-brand">/*JIANT_UI*/</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Michroma&amp;family=IBM+Plex+Mono:wght@400;500;600&amp;family=Instrument+Sans:wght@400;500;600&amp;family=Silkscreen&amp;family=VT323&amp;display=swap">
<style id="jiant-skin">
/*SKIN-BEGIN*/
:root[data-skin] .vn { background:var(--sk-panel); border:var(--sk-b) solid var(--sk-accent); border-radius:var(--sk-r); }
:root[data-skin] .vn h2 { font:400 22px/1.2 var(--sk-display); }
:root[data-skin] .vn h3 { font-family:var(--sk-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--sk-accent); }
:root[data-skin] .vn-meta { font-family:var(--sk-mono); }
:root[data-skin] .gate { background:var(--sk-panel); border:var(--sk-b) solid var(--line); border-radius:var(--sk-r); padding:20px 22px; }
:root[data-skin] .gate h2 { font:400 22px/1.2 var(--sk-display); color:var(--fg); }
:root[data-skin] .gatebody { border-color:var(--line); }
:root[data-skin] .accept input { accent-color:var(--sk-accent); }
:root[data-skin] .isteps li::before { border-color:var(--sk-accent); color:var(--sk-accent); font-family:var(--sk-mono); }
:root[data-skin] .isteps b { font-family:var(--sk-display); font-weight:400; letter-spacing:.02em; }
:root[data-skin] .more summary { font-family:var(--sk-mono); font-size:13px; }
/* (studio) The installer in the firmware's own look, JIANT FM's or JIANT BYTE's (html[data-skin]; JIANT Studio sets it), the
same tokens and type as JIANT Studio and the editor: the notices as cards, Install as the one big button, the progress in
the heat gradient, the report in its panel. Nothing of the page's markup or code changes for it. */
:root[data-skin="fm"] { --bg:#050409; --fg:#efe6c8; --dim:#a39bb6; --line:rgba(239,230,200,.16); --sk-panel:#0d0b14; --sk-field:#08070e;
--sk-accent:#c9a2ff; --sk-on:#050409; --sk-frame:#3fe0e6; --sk-ok:#7be0a8; --sk-warn:#ffc07a; --sk-bad:#ff6b6b;
--sk-heat:linear-gradient(90deg,#3b6cff,#9d6bff 25%,#ff4a7a 50%,#ff8a1f 75%,#ffe14d);
--sk-display:"Michroma","Arial Black",system-ui,sans-serif; --sk-body:"Instrument Sans",system-ui,sans-serif; --sk-mono:"IBM Plex Mono",ui-monospace,monospace;
--sk-r:14px; --sk-rs:9px; --sk-b:1px; color-scheme:dark; }
:root[data-skin="byte"] { --bg:#000; --fg:#f2f0f7; --dim:#9d94b8; --line:rgba(167,123,255,.32); --sk-panel:#0b0912; --sk-field:#05040a;
--sk-accent:#a77bff; --sk-on:#000; --sk-frame:#a77bff; --sk-ok:#6bff9e; --sk-warn:#ffb21a; --sk-bad:#ff3b3b;
--sk-heat:linear-gradient(90deg,#ff3b3b,#ff7a1a 40%,#ffb21a 60%,#a77bff);
--sk-display:"Silkscreen","VT323",ui-monospace,monospace; --sk-body:"IBM Plex Mono",ui-monospace,monospace; --sk-mono:"IBM Plex Mono",ui-monospace,monospace;
--sk-r:3px; --sk-rs:2px; --sk-b:2px; color-scheme:dark; }
:root[data-skin] body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.55 var(--sk-body); }
:root[data-skin="fm"] body { background:radial-gradient(1100px 480px at 75% -10%,#1b1030 0,transparent 60%),var(--bg); }
:root[data-skin="byte"] body { background:radial-gradient(1px 1px at 12% 18%,#fff8,transparent),radial-gradient(1px 1px at 72% 12%,#fff6,transparent),
radial-gradient(1px 1px at 33% 64%,#fff5,transparent),radial-gradient(1px 1px at 86% 48%,#fff7,transparent),radial-gradient(1px 1px at 8% 82%,#fff6,transparent),#000;
background-size:340px 340px; }
:root[data-skin] main { max-width:660px; margin:0 auto; padding:28px 16px 56px; }
:root[data-skin] a { color:inherit; }
:root[data-skin] h1, :root[data-skin] h1.jiant-wordmark { font:400 clamp(30px,7vw,46px)/1.05 var(--sk-display); margin:8px 0 18px; letter-spacing:.02em; }
:root[data-skin] h1 a { text-decoration:none; }
:root[data-skin] h1 .fm { background:var(--sk-heat); -webkit-background-clip:text; background-clip:text; color:transparent; }
:root[data-skin] h1 .jiant-tool { font:500 11px/1 var(--sk-mono); letter-spacing:.16em; color:var(--sk-frame); border:var(--sk-b) solid var(--line);
border-radius:var(--sk-rs); padding:6px 8px; margin-left:12px; vertical-align:middle; }
:root[data-skin] h1::after { content:""; display:block; height:3px; max-width:360px; margin-top:16px; border-radius:3px; background:var(--sk-heat); }
:root[data-skin="byte"] h1::after { height:5px; border-radius:0; box-shadow:0 7px 0 -1px #ff7a1a55; }
:root[data-skin] p { margin:0 0 12px; }
:root[data-skin] .small { font-size:13px; color:var(--dim); }
/* the notices (with their own inline borders): cards */
:root[data-skin] .jiant-notice, :root[data-skin] main > div[style*="border"], :root[data-skin] #notice, :root[data-skin] #six {
background:var(--sk-panel) !important; border:var(--sk-b) solid var(--line) !important; border-left:3px solid var(--sk-warn) !important;
border-radius:var(--sk-rs) !important; padding:16px 18px !important; margin:16px 0 !important; }
:root[data-skin] [data-t="samples"] { color:var(--sk-warn) !important; }
:root[data-skin] [data-t="dual"], :root[data-skin] p.kofi { border-left:3px solid var(--sk-accent) !important; }
/* buttons and fields */
:root[data-skin] button, :root[data-skin] select, :root[data-skin] input[type="file"], :root[data-skin] textarea {
font:500 13px/1.3 var(--sk-mono); color:var(--fg); background:var(--sk-field); border:var(--sk-b) solid var(--line); border-radius:var(--sk-rs); }
:root[data-skin] button { padding:9px 14px; min-height:40px; cursor:pointer; }
:root[data-skin] button:hover:not(:disabled) { border-color:var(--sk-accent); }
:root[data-skin] button:disabled { opacity:.45; cursor:default; }
:root[data-skin] select { padding:9px 10px; min-height:44px; width:100%; margin:6px 0; }
:root[data-skin] :focus-visible { outline:2px solid var(--sk-accent); outline-offset:2px; }
/* Install: the one big button */
:root[data-skin] #go { width:100%; min-height:56px; margin:8px 0 4px; font:600 17px/1 var(--sk-body); background:var(--fg); color:var(--bg); border-color:var(--fg); }
:root[data-skin="byte"] #go { font:15px/1 var(--sk-display); text-transform:uppercase; background:var(--sk-accent); border-color:var(--sk-accent); color:var(--sk-on); }
:root[data-skin] #go:disabled { opacity:.4; }
:root[data-skin] nav.lang, :root[data-skin] button.lang { float:right; display:flex; gap:4px; background:none; border:0; }
:root[data-skin] nav.lang button, :root[data-skin] button.lang { min-height:30px; padding:4px 8px; font-size:11px; color:var(--dim); }
:root[data-skin] nav.lang button[aria-pressed="true"] { color:var(--sk-on); background:var(--sk-accent); border-color:var(--sk-accent); }
/* the official firmware: a panel that opens */
:root[data-skin] details { background:var(--sk-panel); border:var(--sk-b) solid var(--line); border-radius:var(--sk-rs); padding:12px 16px; }
:root[data-skin] summary { cursor:pointer; font-weight:600; }
/* the progress and what it says */
:root[data-skin] progress { -webkit-appearance:none; appearance:none; width:100%; height:10px; margin:18px 0 6px; border:var(--sk-b) solid var(--line);
border-radius:var(--sk-rs); background:var(--sk-field); overflow:hidden; }
:root[data-skin] progress::-webkit-progress-bar { background:var(--sk-field); }
:root[data-skin] progress::-webkit-progress-value { background:var(--sk-heat); }
:root[data-skin] progress::-moz-progress-bar { background:var(--sk-heat); }
:root[data-skin] #status { font:500 15px/1.5 var(--sk-mono); color:var(--sk-frame); min-height:1.5em; }
:root[data-skin] .tip { border-left:3px solid var(--sk-bad); background:color-mix(in srgb,var(--sk-bad) 8%,transparent); padding:10px 16px; border-radius:0 var(--sk-rs) var(--sk-rs) 0; }
:root[data-skin] .diag { background:var(--sk-panel); border:var(--sk-b) solid var(--line); border-radius:var(--sk-rs); padding:14px 16px; margin:18px 0; }
:root[data-skin] pre#log { font:11px/1.5 var(--sk-mono); color:var(--dim); white-space:pre-wrap; max-height:240px; overflow:auto; }
/*SKIN-END*/
</style>
</head>
<body class="jiant-installer">
<main>
<p id="beta-banner" hidden style="margin:0 0 20px;padding:14px;border:2px solid #ff8a00;color:#ff8a00;font:700 24px/1.2 monospace">BETA</p>
<nav class="lang" id="lang" aria-label="Language"><button data-lang="es" lang="es">Español</button><button data-lang="en" lang="en">English</button><button data-lang="ja" lang="ja">日本語</button></nav>
<h1 class="jiant-wordmark"><a href="https://juanjiant-bit.github.io/JIANT/" aria-label="JIANT FM home">JIANT <span class="fm">FM</span></a><span class="jiant-tool">INSTALLER</span></h1>
<!-- (studio) Before installing: every warning once, read and accepted; then the installer itself, clean (gateInit) -->
<section id="gate" class="gate">
<h2 data-t="gateTitle"></h2>
<p class="small" data-t="gateLead"></p>
<div class="gatebody">
<p data-t="warn"></p>
<p data-t="samples" style="color:#ec6e50"></p>
<p data-t="dual" style="border-left:3px solid #ec6e50;padding:4px 0 4px 12px"></p>
<p class="small" data-t="direct"></p>
<p class="small" data-t="beta"></p>
<p class="small"><span data-t="brick"></span>
<a href="https://github.com/kurogedelic/FM-1-transporter" target="_blank" rel="noopener" style="color:inherit">FM-1-transporter</a></p>
<div class="jiant-notice">
<p style="margin:0 0 8px;font-weight:600" data-t="firstTitle"></p>
<p class="small" style="margin:0 0 10px" data-t="firstText"></p>
<p class="small" style="margin:0" data-t="darkText"></p>
</div>
<!-- (V10.6z9) 6 songs, 8 before: back up first -->
<div class="jiant-notice">
<p style="margin:0 0 8px;font-weight:600" data-t="sixTitle"></p>
<p class="small" style="margin:0" data-t="sixText"></p>
</div>
</div>
<p class="accept"><label><input type="checkbox" id="gate-ok"> <span data-t="gateAccept"></span></label></p>
<p><button id="gate-go" disabled data-t="gateGo"></button></p>
</section>
<!-- (studio) what a version has and has not (web/VERSION_NOTES.json, published as firmware/VERSION_NOTES.json) -->
<dialog id="vn" class="vn" aria-labelledby="vn-title">
<p class="small vn-meta" id="vn-meta"></p>
<h2 id="vn-title"></h2>
<p id="vn-sum"></p>
<div class="vn-cols"><div><h3 data-t="vnHas"></h3><ul id="vn-has"></ul></div><div id="vn-hasnt-box"><h3 data-t="vnHasnt"></h3><ul id="vn-hasnt"></ul></div></div>
<p class="small" id="vn-notes"></p>
<p><button type="button" id="vn-ok" data-t="vnOk"></button></p>
</dialog>
<section id="app" hidden>
<ol class="isteps">
<li><b data-t="iStep1"></b><span data-t="intro"></span></li>
<li><b data-t="iStep2"></b>
<select id="ver" style="font:inherit" aria-label="Version"></select>
<span class="small" data-t="verOld"></span>
<span id="edition-info" class="small"></span>
<button type="button" class="linkish" id="vn-open" hidden data-t="vnOpen"></button></li>
<li><b data-t="iStep3"></b><span class="small" data-t="firstOk"></span></li>
</ol>
<!-- (0.8.5) the release's notice, before 0.8.5 is written (releaseNotice) -->
<div id="notice" class="jiant-notice" hidden>
<p style="margin:0 0 8px;font-weight:600" data-t="n085Title"></p>
<p class="small" style="margin:0 0 8px" data-t="n085What"></p>
<p class="small" style="margin:0 0 8px" data-t="n085Risk"></p>
<p class="small" style="margin:0 0 8px" data-t="n085Keep"></p>
</div>
<p><button id="go" disabled data-t="install"></button></p>
<progress id="bar" max="100" value="0"></progress>
<p id="status" role="status" aria-live="polite"></p>
<div id="tip" class="tip" hidden><p style="font-weight:600" data-t="tipTitle"></p><ol id="tiptext"></ol></div>
<p class="small"><button type="button" class="linkish" id="gate-again" data-t="gateReread"></button></p>
<details class="more">
<summary data-t="firstTitle"></summary>
<p class="small" data-t="firstText"></p>
<p><button id="first-stock" data-t="firstStock"></button></p>
</details>
<details id="stock" style="margin-top:24px">
<summary data-t="stockTitle"></summary>
<p class="small" data-t="back"></p>
<p class="small"><a href="https://www.m-vave.com/download" target="_blank" rel="noopener" style="color:inherit">M-VAVE Downloads</a> · <span data-t="stockWhere"></span></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 class="small" data-t="stockBackup"></p>
<p class="small"><label><input id="stock-recovery" type="checkbox"> <span data-t="stockRecovery"></span></label></p>
</details>
<!-- (0.9.11) what the installer saw and did: the report people paste when they ask for help -->
<details class="more diagwrap"><summary data-t="reportTitle"></summary>
<div class="diag">
<p class="small" style="margin:0 0 6px"><b data-t="reportTitle"></b> <span data-t="reportWhy"></span></p>
<button id="copy-report" data-t="copyReport"></button><button id="boot-check" data-t="bootCheck" hidden></button>
<span class="small" id="copy-state"></span>
<textarea id="report-box" readonly hidden style="width:100%;height:160px;font:12px monospace"></textarea>
<pre id="log"></pre>
</div></details>
</section>
<p class="small" id="channel"></p>
<p><a href="../editor/" style="color:inherit" data-t="editor"></a></p>
<p><span data-t="manual"></span>
<a href="https://github.com/juanjiant-bit/JIANT/blob/main/docs/MANUAL.md" target="_blank" rel="noopener" style="color:inherit">English</a> ·
<a href="https://github.com/juanjiant-bit/JIANT/blob/main/docs/MANUAL.es.md" target="_blank" rel="noopener" style="color:inherit">Español</a></p>
<p class="kofi" style="border-left:3px solid #ec6e50;padding:4px 0 4px 12px">If you resonate with my work, consider supporting me on <a href="https://ko-fi.com/juanjiant" target="_blank" rel="noopener" style="color:inherit;font-weight:600">Ko-fi</a> (in Argentina: <a href="https://cafecito.app/juanjiant" target="_blank" rel="noopener" style="color:inherit;font-weight:600">Cafecito</a>). Thanks for all the good energy, hope you enjoy this little beast 🫶✨🎹</p>
<p class="small">Credits: Felucca by Leo Kuroshita (@kurogedelic), <a href="https://hugelton.com" target="_blank" rel="noopener" style="color:inherit">Hügelton Instruments</a>, with its CrispyZebra waveforms and Fukiai icons (MIT); the song system after SLOOP by isod89.<br>
Font: Inter Tight (The Inter Project Authors, SIL OFL 1.1).<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). <a href="../../firmware/LICENSING.md" style="color:inherit">Licences</a>: <a href="../../firmware/LICENSE" style="color:inherit">GPL-3.0</a>, <a href="../../firmware/LICENSES/Apache-2.0.txt" style="color:inherit">Apache-2.0</a>, <a href="../../firmware/LICENSES/" style="color:inherit">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/juanjiant-bit/JIANT" target="_blank" rel="noopener" style="color:inherit">github.com/juanjiant-bit/JIANT</a></p>
</main>
<script type="module">
/*LIB*/
const $ = (id) => document.getElementById(id);
const TEXT = {
ja: {
vnOpen: "このバージョンの内容", vnHas: "あるもの", vnHasnt: "ないもの", vnOk: "OK", vnPublic: "公開版", vnBeta: "ベータ", vnClassic: "クラシック",
gateTitle: "インストールの前に", gateLead: "一度だけ読んでください。ファームウェアを書き込む前に知っておくべきことのすべてです。",
gateAccept: "注意事項を読み、自己責任でインストールすることに同意します。", gateGo: "続ける",
gateReread: "注意事項をもう一度見る", iStep1: "FM-1 を接続", iStep2: "バージョンを選ぶ", iStep3: "インストール",
intro: "FM-1 を USB で接続してください。(Chrome か Edge で使えます)",
warn: "書き込み中は USB を抜かないでください。",
samples: "注意: JIANT にはユーザーサンプルがありません。Felucca のユーザーサンプル (USR1–3) はインストールで失われます(その領域は曲の保存に使われます)。元の WAV ファイルは手元に残しておいてください。",
dual: "0.6.71 から JIANT は FM-1 の2つのコアを使います(実験的)。すべての仮想テストには合格していますが、まだ実機では試されていません。FM-1 が固まる・再起動する・以前より音が途切れる場合は、REC を押しながら電源を入れると1コアで動きます。MENU > ABOUT の表示(CORES 2 / CORES 1 と理由)を GitHub で知らせてください。",
install: "インストール",
firstTitle: "他のカスタムファームウェアから入れる場合は、先に公式V15へ戻してください",
firstText: "Felucca・baudgirl などの別のカスタムファームウェアが入った FM-1 に直接 JIANT を書き込むと、起動しなくなることがあります。まず下のボタンで公式V15に戻し(全体バックアップも取れます)、それから JIANT をインストールしてください。公式V16・公式V15 か JIANT がすでに入っている場合はそのままで大丈夫です。",
darkText: "インストール後に画面が暗い・何も表示されず、PC が FM-1 を認識しない場合:電源を切らずに、USB データケーブルで PC に直接つなぎ、デバイス一覧に WL80UBOOT (4C4A:8057) があるか確認してください。あれば同じボタンでもう一度インストールできます。何も見えない場合は COPY REPORT と、以前のファームウェア・インストールしたバージョンを添えて連絡してください。",
firstStock: "先に公式ファームウェアへ戻す",
firstOk: "インストールの前に、接続された FM-1 のファームウェアを自動で確認します。公式V16・公式V15 か JIANT のときだけ書き込みます。",
checking: "FM-1 のファームウェアを確認中…",
oldstock: "この FM-1 には古い公式ファームウェアが入っています。書き込みませんでした。下のボタンで先に公式V15に更新してから(公式ファームウェアではバックアップは不要です)、もう一度インストールしてください。検出: ",
officialConfirm: "この FM-1 は公式ファームウェアです。公式V15に更新します(このページでは公式ファームウェアの曲はバックアップできません)。続けますか?",
otherfw: "この FM-1 には公式V15 でも JIANT でもないファームウェアが入っています。書き込みませんでした。下のボタンで先に公式V15に戻してから、もう一度インストールしてください。 ",
editor: "エディタ(インストール後、パソコンから音色やシーケンスを編集)",
verLabel: "バージョン:", verOld: "以前のバージョンにも戻せます(最新が一番上)。新しい版で保存したプロジェクトは古い版で正しく開けないことがあります。先にエディタでバックアップしてください。", latest: "最新", manual: "マニュアル:",
direct: "USB ケーブルはパソコンに直接つないでください。Probe や Transporter などの機材は不要です。",
brick: "万一インストールに失敗して起動しなくなった場合は、復旧に Transporter が必要です:",
beta: "JIANT FM は開発中のテスト版です。不具合は GitHub で知らせてください。このカスタムファームウェアを使ったことで FM-1 が壊れたり不具合が起きたりしても、作者は一切の責任を負いません。自己責任でお使いください。",
back: "M-VAVEから公式FM-1 V15を取得し、未変更のFM-1.fwscを選んでください。ファイルはこのブラウザ内で検証し、サーバーへ送りません。",
stockTitle: "公式ファームウェアに戻す", stockFile: "公式FM-1.fwsc", stockGo: "バックアップして公式ファームウェアへ戻す",
stockBackup: "現在の曲・保存曲・音色バンク・設定を先に保存します(ユーザーサンプルは含まれません)。全体バックアップ非対応版は、JIANT を更新してから行ってください。復元は JIANT を再インストールしてエディタから行います。",
stockRecovery: "更新中断の再開:全体バックアップはすでにパソコンへ保存済み",
stockValid: "公式ファームウェアを確認しました", stockConfirm: "全体バックアップファイルをパソコンに保存できましたか? 続けると公式V15へ戻します。JIANT の曲は公式V15では開けません。",
stockNeedBackup: "書き込みモードからはバックアップできません。保存済みバックアップがある場合だけ、更新中断の再開にチェックしてください。",
stockUnsupported: "このファームウェアは全体バックアップに未対応です。先に最新版をインストールしてください。",
backup: "全体バックアップ保存中 ", stockError: "公式ファイルを確認できません: ",
nomidi: "このブラウザでは使えません。Chrome か Edge で開いてください。", loadfail: "読み込めませんでした: ",
start: "開始します", verify: "確認中", loader: "書き込みモードに切り替え中", write: "書き込み中",
reboot: "再起動中", done: "完了しました", stopped: "途中で止まりました。USB を挿し直してもう一度押してください。",
error: "エラー: ",
denied: "MIDI(SysEx)の使用が許可されませんでした。アドレスバーのサイト設定で MIDI を許可して、もう一度押してください。",
blocked: "このサイトでは MIDI がブロックされています(以前に許可ダイアログを閉じたか拒否した場合、ブラウザーはもう尋ねません)。アドレスバー左のアイコン → 権限(サイトの設定)→ 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、無保証。ソース:",
n085Title: "0.8.5 をインストールする前に",
n085What: "0.8.5 の新機能 DRUM-X のオクターブ: 中央のオクターブ (OCT 0) ではキットはこれまでどおり鳴ります。上のオクターブでは同じ音がテンポに合わせたラチェットに(+1 x2、+2 x4、+3 x8)、下では別のタッチに: −1 SHORT(ディケイ半分)、−2 GHOST(短く、弱く、暗く: ゴーストノート)、−3 FLAM(約 20 ms 前に弱い装飾音)。キットの音ごとに別々: ハイハットのラチェットは同じステップのキックを繰り返しません。",
n085Risk: "既存の曲の鳴り方が変わることがあります: DRUM トラックに GM マップ (35–81) の外の MIDI ノート(例えば 24 や 84 以上)を送る設定では、これまでそのオクターブとして鳴っていた音が、これらのバリエーションで鳴ります。OCT を動かした鍵盤は音が変わる代わりにラチェット / SHORT / GHOST / FLAM になります。ステップに保存されたノートはこれまでどおり鳴ります。",
n085Keep: "以前の音を保つには、それらのノートを DAW やシーケンサーで中央のオクターブ (36–47、または GM マップ 35–81) に移してください。インストールの前に、エディターのバックアップ(または下の「公式 V15 に戻す」)でプロジェクトの完全バックアップを保存してください。",
n085Confirm: "0.8.5 では DRUM-X のオクターブが加わり、中央以外のオクターブのドラムノートはラチェット / SHORT / GHOST / FLAM で鳴ります(既存の曲が変わることがあります)。プロジェクトのバックアップは保存しましたか? OK でインストールします。",
},
en: {
vnOpen: "What this version has", vnHas: "Has", vnHasnt: "Doesn't have", vnOk: "Got it", vnPublic: "public", vnBeta: "beta", vnClassic: "classic",
gateTitle: "Before you install", gateLead: "Read this once: it is everything worth knowing before the firmware is written.",
gateAccept: "I have read the warnings and I install at my own risk.", gateGo: "Continue",
gateReread: "See the warnings again", iStep1: "Connect the FM-1", iStep2: "Choose the version", iStep3: "Install",
intro: "Connect the FM-1 by USB. (Works in Chrome or Edge.)",
warn: "Do not unplug the USB cable while writing.",
samples: "Note: JIANT has no user samples. Felucca's user samples (USR1–3) are lost when you install it (that flash holds the songs now). Keep your original WAV files.",
dual: "Since 0.6.71 JIANT uses both of the FM-1's cores (experimental). It has passed every virtual test but has not been tried on a real unit yet. If your FM-1 freezes, restarts or clicks more than before, hold REC while switching it on to play on one core, and tell us on GitHub what MENU > ABOUT says (CORES 2, or CORES 1 and why).",
install: "Install",
firstTitle: "Coming from another custom firmware? Return to official first",
firstText: "Writing JIANT straight over another custom firmware (Felucca, baudgirl or any other) can leave the FM-1 unable to start. First return to official with the button below (it also saves a complete backup), then install JIANT. If the FM-1 already runs official V16, official V15 or JIANT, go ahead.",
darkText: "If after installing the screen stays dark or blank and the computer does not see the FM-1: plug it straight into the computer with a USB data cable and check the device list for WL80UBOOT (4C4A:8057). If it is there, press the same Install button again: it can be written again. If nothing shows, write to us with COPY REPORT, the firmware it had before and the version you installed.",
firstStock: "Return to official first",
firstOk: "Before installing, the installer checks the connected FM-1's firmware by itself: it writes only over official V16, official V15 or JIANT.",
checking: "Checking the FM-1's firmware…",
oldstock: "This FM-1 runs an older official firmware: nothing was written. Update it to official V15 first with the button below (no backup is needed from an official firmware), then press Install again. Found: ",
officialConfirm: "This FM-1 runs official firmware: it is updated to official V15 (this page cannot back up an official firmware's songs). Continue?",
otherfw: "This FM-1 runs a firmware that is neither official V16 / V15 nor JIANT: nothing was written. Return to official first with the button below, then install again. Found: ",
editor: "Editor (after installing: edit sounds and sequences from the computer)",
verLabel: "Version:", verOld: "You can go back to an earlier version too (newest on top). Projects saved by a newer version may not open right in an older one: back them up with the editor first.", latest: "latest", manual: "Manual:",
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: "JIANT FM is a development release; please report problems on GitHub. 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 V16 (or 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", stockFile: "Official FM-1.fwsc", stockGo: "Back up and return to official",
stockBackup: "Current music, saved music, sound banks and settings are saved first (not user samples). Older firmware needs an update for complete backups. To restore an archive later, reinstall JIANT and use the editor.",
stockRecovery: "Resume an interrupted update: I already saved a complete backup to this computer",
stockValid: "Official firmware verified", stockConfirm: "Has the complete backup file been saved to this computer? Continue to return to official. The official firmware cannot open JIANT music.",
stockNeedBackup: "An update loader cannot export a backup. Only select resume if you already saved a complete backup.",
stockUnsupported: "This firmware does not support complete backups. Install the current JIANT 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.",
blocked: "MIDI is blocked for this site (once its prompt was dismissed or refused, the browser stops asking). Tap the icon left of the address → Permissions (Site settings) → MIDI device control → Allow. Reload the page 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:",
n085Title: "Before you install 0.8.5",
n085What: "New in 0.8.5, DRUM-X octaves: in the centre octave (OCT 0) the kit plays as it always did. In the octaves above, the same sounds ratchet in time (+1 x2, +2 x4, +3 x8); below, they play with another touch: −1 SHORT (half the decay), −2 GHOST (short, softer, darker: ghost notes), −3 FLAM (a soft grace hit ~20 ms before the hit). Each sound of the kit keeps its own: a hi-hat ratchet does not repeat the kick on the same step.",
n085Risk: "Existing songs may sound different: MIDI notes outside the GM map (35–81) sent to a DRUM track, which played as their octave until now (for example 24, or 84 and up), now trigger those variations; keys with OCT moved no longer change the sound, they ratchet / play SHORT / GHOST / FLAM. Notes stored in the steps play as before.",
n085Keep: "To keep the old sound, move those notes to the centre octave (36–47, or the GM map 35–81) in your DAW or sequencer. Before installing, save a complete backup of your projects with the editor (Backup) or with Return to official below.",
n085Confirm: "0.8.5 adds the DRUM-X octaves: drum notes outside the centre octave now play as ratchets / SHORT / GHOST / FLAM (existing songs may change). Have you saved a backup of your projects? OK installs it.",
},
};
/* (0.9.11) Spanish (most of JIANT's people), the messages of every failure the installer tells apart, and the
* troubleshooting box of each (tip_<code>: the steps, split at "|") */
Object.assign(TEXT.ja, {
editionSample: "SAMPLE: ADD の代わりにサンプルを再生します。エディターから読み込めます。エディション変更前にプロジェクトをバックアップしてください。",
editionAdd: "ADDITIVE: 加算合成を使います。SAMPLE はありません。変更前にバックアップしてください。",
editionStandard: "安定版(おすすめ)。SAMPLE と ADDITIVE は以前のバージョンの一覧にあります。変更前にプロジェクトをバックアップしてください。",
});
Object.assign(TEXT.en, {
intro: "Connect the FM-1 by USB. (Works in Chrome or Edge on a computer; Chrome on Android may work too. Not on iPhone/iPad.)",
back: "Get official FM-1 V16 (or V15) from M-VAVE and select the unmodified FM-1.fwsc. The browser validates it locally; it is not sent to a server.",
stockV16: "Official V16 (FM-1.fwsc, 718,196 bytes), the version M-VAVE offers today, is taken too.",
stockWhere: "On M-VAVE's download page, find the FM-1, download firmware V16 (or V15), unzip it and select the file FM-1.fwsc (699,956 bytes). This page cannot download it for you: the official firmware is M-VAVE's and not ours to redistribute.",
notfound: "FM-1 not found: no MIDI port of an FM-1 answered.",
nomidi: "This browser has no WebMIDI. Open the page in Chrome or Edge.",
nomidiIos: "iPhone and iPad cannot do it: no browser there has WebMIDI (Apple does not allow it). Use a computer (Windows, Mac, Linux, Chromebook) with Chrome or Edge.",
nomidiSafari: "Safari has no WebMIDI. Open this page in Chrome or Edge.",
nomidiFirefox: "This Firefox has no WebMIDI. Use Chrome or Edge (recommended), or update Firefox.",
midifail: "The browser could not start MIDI. ",
busy: "The FM-1 is connected, but another program is using its MIDI port: ",
noanswer: "There is an FM-1 port, but it does not answer: ",
noupdate: "The FM-1 did not start the update: nothing was written. Found: ",
needV16Jiant: "This FM-1's JIANT is older than add15-beta6 and cannot take official V16 yet: nothing was written. Press Install first (it puts beta6 on, your projects stay), then Return to official again. Found: ",
tip_needV16Jiant: "Press Install (beta6 on, your projects stay).|Then open Return to official again with the V16 file.",
stock16: "This FM-1 runs official V16 (October 2026): nothing was written. Installing JIANT over V16 is being tested in the beta installer; this installer will take it once that is confirmed. Found: ",
tip_stock16: "Open the beta installer (link at the top of this page) to install JIANT over V16 now: it is new, back up first.|Or wait for this installer to support V16.|M-VAVE no longer offers V15, so you do not need it.",
newstock: "This FM-1 runs an official firmware newer than V15, which this installer does not know yet: nothing was written. Return to official first with the button below, then install again. Found: ",
skiff: "This FM-1 runs Skiff (another custom firmware, a Felucca fork): nothing was written. Return to official first with the button below (it saves Skiff's songs to a file first), then install. Found: ",
felucca: "This FM-1 runs Felucca: nothing was written. Return to official first with the button below (it saves a complete backup, user samples included), then install JIANT. Found: ",
resuming: "The FM-1 is in update mode: the write goes on. ",
stockAgainConfirm: "This FM-1 already runs official V15. Write official V15 again? ",
backupFailConfirm: "The backup could not be completed. OK = continue to official V15 WITHOUT a backup (the songs on the FM-1 are lost). Cancel = stop here, nothing is written. Error: ",
nobackupConfirm: "This firmware cannot make a complete backup from this page (save your songs with its own tools first if you need them). OK = return to official now WITHOUT a backup (the songs on the FM-1 are lost). Cancel = stop. Firmware: ",
backupfail: "The backup failed; nothing was written: ",
bktimeout: "The FM-1 stopped answering. ",
saved: "Backup saved (your Downloads folder): ",
stockZip: "That is the downloaded archive, not the firmware: unzip it first and select FM-1.fwsc inside. Selected: ",
stockCustom: "That is a custom firmware package (JIANT, Felucca, Skiff), not the official one: select M-VAVE's FM-1.fwsc of V16 or V15. Selected: ",
stockOtherVer: "That is another official version: this page needs V15 exactly. Selected: ",
stockNotV15: "That file is not official V15's FM-1.fwsc (V15's is 699,956 bytes). Selected: ",
stockModified: "The file has V15's size but not its contents (modified or damaged): download it again from M-VAVE. ",
tipTitle: "What to do",
reportTitle: "Log and report.",
reportWhy: "If it does not work, press COPY REPORT and paste it into your message when you ask for help (GitHub, Instagram, YouTube).",
copyReport: "COPY REPORT", copied: "Copied: paste it in your message.", copyFail: "Could not copy: select the text below and copy it.",
editionSample: "SAMPLE: sample playback replaces ADD. Load samples in the web editor. Back up projects before switching editions; ADD sounds are not converted into samples.",
editionAdd: "ADDITIVE: additive synthesis, without SAMPLE. Features depend on the selected revision. Back up projects before switching editions; sample audio is not converted into additive sounds.",
editionStandard: "The stable version, the one we recommend. SAMPLE (samples) and ADDITIVE (additive synthesis) are in the list of earlier versions. Back up your projects before changing versions.",
chStable: "Public installer: the stable version, and earlier ones.", chPreview: "PREVIEW channel: main as it is now, not approved yet.",
toPreview: "Preview installer (next version)", toStable: "Stable installer",
bootCheck: "Is it in boot mode (WL80UBOOT)?",
bootFound: "The FM-1 is in the chip's boot mode (WL80UBOOT): its firmware does not start. Replug it with a good data cable straight into the computer and press Install again. If it stays like that, recovering it needs FM-1 Transporter (link above).",
bootNone: "No FM-1 in boot mode (WL80UBOOT) was found or chosen.",
editorOpen: "The JIANT editor was open in another tab: it was disconnected for the install.",
tip_nomidi: "Install Chrome (google.com/chrome) or use Edge, and open this same page there.|Android: Chrome with the FM-1 on a USB-C OTG cable may work, but a computer is safer.|Brave or Opera: allow MIDI devices for this site, or use Chrome.",
tip_nomidiIos: "Use a computer with Chrome or Edge (Windows, Mac, Linux or a Chromebook).|The emulator and the manual do work on the iPhone; the installer and the editor need USB MIDI.",
tip_denied: "Click the icon left of the address (sliders or padlock) → Site settings → MIDI devices → Allow.|Reload the page and press the button again.|Firefox: accept the 'site permission add-on' it offers. Brave: turn Shields off for this site.",
tip_midifail: "Close the M-VAVE app, DAWs and MIDI tools.|Unplug and replug the FM-1, then reload the page.|Restart the browser (on Windows, after sleep, MIDI sometimes needs it).",
tip_busy: "Close the M-VAVE app, your DAW (Ableton, FL Studio, Reaper…), MIDI-OX and other tabs with the JIANT editor or another MIDI page.|On Windows only one program at a time can use a MIDI port.|Unplug and replug the FM-1, reload this page and press the button again.",
tip_notfound: "Switch the FM-1 on (its screen showing).|Use a USB cable that carries data: many cables only charge. Try another one.|Plug it straight into the computer, no hub or dock.|Close the M-VAVE app, DAWs and the editor.|Still nothing? Press 'Is it in boot mode?' and COPY REPORT.",
tip_noanswer: "Unplug the FM-1, switch it off and on, plug it in again and retry.|Close programs that may be talking to it (M-VAVE app, DAW, editor).|A very old official firmware may not answer the web updater: update it to V15 with M-VAVE's updater first.",
tip_noupdate: "Stop playback, switch the FM-1 off and on, and retry.|USB straight into the computer, no hub.|If it repeats, update it with M-VAVE's official updater, then come back.",
tip_model: "Unplug other USB MIDI devices and keep only the FM-1.",
tip_oldstock: "Open 'Return to official' below, select M-VAVE's FM-1.fwsc of V16 or V15 and press its button (an official firmware needs no backup).|When it says Done, press Install.",
tip_newstock: "Open 'Return to official' below, select FM-1.fwsc of V16 or V15 and press its button.|When it says Done, press Install.|Tell us which version it is (COPY REPORT).",
tip_skiff: "Open 'Return to official' below, select FM-1.fwsc and press its button: it saves Skiff's backup file first (only Skiff's editor can restore it), then writes V15.|When it says Done, press Install.|JIANT cannot open Skiff's songs.",
tip_felucca: "Open 'Return to official' below, select FM-1.fwsc and press its button: it saves a complete Felucca backup (samples included), then writes V15.|When it says Done, press Install.|JIANT has no user samples: keep your WAVs. The JIANT editor can restore the songs and presets of that backup.",
tip_otherfw: "Open 'Return to official' below and follow it. If that firmware cannot make a backup the page asks before going on without one.|When it says Done, press Install.",
tip_noloader: "Do not switch the FM-1 off. Replug the USB cable (another USB port if you can) and press Install again: it goes on where it was.|Windows: the first time, installing the driver for the update mode can take a minute. Wait, then press Install again.|Still nothing? Press 'Is it in boot mode?' and COPY REPORT.",
tip_stopped: "Replug the USB cable straight into the computer and press the same button again: it resumes.|Do not switch the FM-1 off while it is in update mode.",
tip_lost: "Replug the USB cable and press the same button again: it resumes.|Use another cable or USB port; avoid hubs. Do not switch the FM-1 off.",
tip_noreturn: "Switch the FM-1 off and on. If it starts, it is done (MENU > ABOUT shows the version).|If the screen stays black, connect it and press Install again; also try 'Is it in boot mode?'.",
tip_mismatch: "Switch it off and on and look at MENU > ABOUT. Press COPY REPORT and tell us.",
tip_loadfail: "Reload the page (Ctrl+F5), or pick the latest version.|Check the connection; an ad blocker may block the download.",
tip_stockNeedBackup: "If you already saved the backup, tick 'Resume an interrupted update' and press again.|If not, press Install: JIANT's own update program finishes putting JIANT back (the installer then checks its Bluetooth part). Back up, then return.",
tip_stockUnsupported: "Install the current JIANT first (Install), then press Return to official again: it then saves your songs.",
tip_backupfail: "Stop playback (no backup while it plays), keep the cable still and try again.|Close the editor and other MIDI programs.",
tip_stock: "On M-VAVE's download page, FM-1: download firmware V15.|Unzip it (right click → Extract all).|Select the FM-1.fwsc inside (699,956 bytes).",
tip_error: "Press COPY REPORT and send it to us (GitHub issues, or where you found the link).",
});
Object.assign(TEXT.ja, {
intro: "FM-1 を USB で接続してください。(パソコンの Chrome か Edge で使えます。Android の Chrome でも動く場合があります。iPhone/iPad では使えません)",
stockV16: "現在 M-VAVE が配布している公式V16(FM-1.fwsc、718,196 バイト)も使えます。",
stockWhere: "M-VAVE のダウンロードページで FM-1 のファームウェア V15 をダウンロードし、展開して FM-1.fwsc(699,956 バイト)を選んでください。公式ファームウェアは M-VAVE のもので再配布できないため、このページからはダウンロードできません。",
notfound: "FM-1 が見つかりません。FM-1 の MIDI ポートが応答しませんでした。",
nomidi: "このブラウザには WebMIDI がありません。Chrome か Edge で開いてください。",
nomidiIos: "iPhone・iPad では使えません(どのブラウザにも WebMIDI がありません)。Chrome か Edge の入ったパソコン(Windows、Mac、Linux、Chromebook)を使ってください。",
nomidiSafari: "Safari には WebMIDI がありません。Chrome か Edge で開いてください。",
nomidiFirefox: "この Firefox には WebMIDI がありません。Chrome か Edge(推奨)を使うか、Firefox を更新してください。",
midifail: "ブラウザが MIDI を開始できませんでした。",
busy: "FM-1 は接続されていますが、別のプログラムがその MIDI ポートを使っています: ",
noanswer: "FM-1 のポートはありますが応答しません: ",
noupdate: "FM-1 が更新を始めませんでした。何も書き込んでいません。検出: ",
needV16Jiant: "この FM-1 の JIANT は add15-beta6 より古く、公式V16 をまだ受け付けません。書き込みませんでした。先に「インストール」を押して beta6 を入れ(プロジェクトは残ります)、それから公式に戻すをもう一度実行してください。検出: ",
tip_needV16Jiant: "インストールを押してください(beta6 になり、プロジェクトは残ります)。|それから V16 のファイルで公式に戻すをもう一度。",
stock16: "この FM-1 には公式V16(2026年10月)が入っています。書き込みませんでした。V16 への JIANT のインストールはベータ版インストーラーで検証中です。確認でき次第、このインストーラーでも対応します。検出: ",
tip_stock16: "今すぐ V16 に JIANT を入れるには、ページ上部のリンクからベータ版インストーラーを開いてください(新しい機能なので、先にバックアップを)。|またはこのインストーラーの対応をお待ちください。|M-VAVE は V15 の配布を終了したので、V15 は不要です。",
newstock: "この FM-1 には V15 より新しい公式ファームウェアが入っています(このインストーラーは未対応)。書き込みませんでした。下のボタンで先に公式V15に戻してから、もう一度インストールしてください。検出: ",
skiff: "この FM-1 には Skiff(Felucca から派生した別のカスタムファームウェア)が入っています。書き込みませんでした。下のボタンで先に公式V15に戻してください(先に Skiff の曲をファイルに保存します)。それからインストールしてください。検出: ",
felucca: "この FM-1 には Felucca が入っています。書き込みませんでした。下のボタンで先に公式V15に戻してください(ユーザーサンプルを含む全体バックアップを保存します)。それから JIANT をインストールしてください。検出: ",
resuming: "FM-1 は書き込みモードです。書き込みを続けます。",
stockAgainConfirm: "この FM-1 にはすでに公式V15が入っています。もう一度公式V15を書き込みますか? ",
backupFailConfirm: "バックアップを完了できませんでした。OK = バックアップなしで公式V15へ進む(FM-1 の曲は失われます)。キャンセル = ここで中止(何も書き込みません)。エラー: ",
nobackupConfirm: "このファームウェアはこのページから全体バックアップを取れません(必要なら先にそのファームウェアのツールで曲を保存してください)。OK = バックアップなしで今すぐ公式ファームウェアに戻す(FM-1 の曲は失われます)。キャンセル = 中止。ファームウェア: ",
backupfail: "バックアップに失敗しました。何も書き込んでいません: ",
bktimeout: "FM-1 が応答しなくなりました。",
saved: "バックアップを保存しました(ダウンロードフォルダ): ",
stockZip: "それはダウンロードした圧縮ファイルです。先に展開して中の FM-1.fwsc を選んでください。選択: ",
stockCustom: "それはカスタムファームウェア(JIANT、Felucca、Skiff)のファイルです。M-VAVE の V15 の FM-1.fwsc を選んでください。選択: ",
stockOtherVer: "それは別の公式バージョンです。このページには V15 が必要です。選択: ",
stockNotV15: "そのファイルは公式V15の FM-1.fwsc ではありません(V15 は 699,956 バイト)。選択: ",
stockModified: "V15 と同じサイズですが内容が違います(変更または破損)。M-VAVE からもう一度ダウンロードしてください。",
tipTitle: "対処方法",
reportTitle: "ログとレポート。",
reportWhy: "うまくいかないときは「レポートをコピー」を押し、質問のメッセージに貼り付けてください(GitHub など)。",
copyReport: "レポートをコピー", copied: "コピーしました。メッセージに貼り付けてください。", copyFail: "コピーできませんでした。下のテキストを選択してコピーしてください。",
chStable: "安定版チャンネル: 承認済みのバージョン。", chPreview: "プレビュー版チャンネル: 現在の main(未承認)。",
toPreview: "プレビュー版インストーラー(次のバージョン)", toStable: "安定版インストーラー",
bootCheck: "ブートモード(WL80UBOOT)?",
bootFound: "FM-1 はチップのブートモード(WL80UBOOT)です。ファームウェアが起動していません。良いデータ用ケーブルでパソコンに直接つなぎ直し、もう一度インストールを押してください。それでも変わらない場合は、復旧に FM-1 Transporter が必要です(上のリンク)。",
bootNone: "ブートモード(WL80UBOOT)の FM-1 は見つからないか、選ばれませんでした。",
editorOpen: "別のタブで JIANT エディタが開いていました。インストールのため切断しました。",
tip_nomidi: "Chrome(google.com/chrome)をインストールするか Edge を使い、このページを開いてください。|Android: USB-C OTG ケーブルでつないだ Chrome で動く場合がありますが、パソコンのほうが安全です。|Brave・Opera: このサイトで MIDI デバイスを許可するか、Chrome を使ってください。",
tip_nomidiIos: "Chrome か Edge の入ったパソコン(Windows、Mac、Linux、Chromebook)を使ってください。|エミュレーターとマニュアルは iPhone でも使えます。インストーラーとエディタには USB MIDI が必要です。",
tip_denied: "アドレスバー左のアイコン → サイトの設定 → MIDI デバイス → 許可。|ページを再読み込みして、もう一度ボタンを押してください。|Firefox: 表示される「サイト権限アドオン」を許可してください。Brave: このサイトの Shields をオフにしてください。",
tip_midifail: "M-VAVE アプリ、DAW、MIDI ツールを閉じてください。|FM-1 を挿し直して、ページを再読み込みしてください。|ブラウザを再起動してください(Windows ではスリープ後に必要なことがあります)。",
tip_busy: "M-VAVE アプリ、DAW(Ableton、FL Studio、Reaper など)、MIDI-OX、JIANT エディタなど MIDI を使う他のタブを閉じてください。|Windows では 1 つの MIDI ポートを同時に使えるのは 1 つのプログラムだけです。|FM-1 を挿し直し、このページを再読み込みして、もう一度押してください。",
tip_notfound: "FM-1 の電源を入れてください(画面が表示された状態)。|データ通信用の USB ケーブルを使ってください(充電専用のケーブルが多いです)。別のケーブルも試してください。|ハブやドックを使わず、パソコンに直接つないでください。|M-VAVE アプリ、DAW、エディタを閉じてください。|それでも見つからないときは「ブートモード?」と「レポートをコピー」を押してください。",
tip_noanswer: "FM-1 を外して電源を入れ直し、もう一度つないでやり直してください。|FM-1 と通信している可能性のあるプログラム(M-VAVE アプリ、DAW、エディタ)を閉じてください。|とても古い公式ファームウェアはウェブ更新に応答しないことがあります。先に M-VAVE のアップデーターで V15 にしてください。",
tip_noupdate: "再生を止め、FM-1 の電源を入れ直してやり直してください。|ハブを使わずパソコンに直接つないでください。|繰り返す場合は M-VAVE の公式アップデーターで更新してから、ここに戻ってください。",
tip_model: "他の USB MIDI 機器を外し、FM-1 だけをつないでください。",
tip_oldstock: "下の「公式ファームウェアに戻す」を開き、M-VAVE の V15 の FM-1.fwsc を選んでボタンを押してください(公式ファームウェアにはバックアップ不要)。|「完了しました」と出たら、インストールを押してください。",
tip_newstock: "下の「公式ファームウェアに戻す」を開き、V15 の FM-1.fwsc を選んでボタンを押してください。|「完了しました」と出たら、インストールを押してください。|どのバージョンだったか知らせてください(レポートをコピー)。",
tip_skiff: "下の「公式ファームウェアに戻す」を開き、FM-1.fwsc を選んでボタンを押してください。先に Skiff のバックアップファイルを保存し(復元は Skiff のエディタのみ)、それから V15 を書き込みます。|「完了しました」と出たら、インストールを押してください。|JIANT では Skiff の曲は開けません。",
tip_felucca: "下の「公式ファームウェアに戻す」を開き、FM-1.fwsc を選んでボタンを押してください。Felucca の全体バックアップ(サンプルを含む)を保存してから V15 を書き込みます。|「完了しました」と出たら、インストールを押してください。|JIANT にはユーザーサンプルがありません。WAV は手元に残してください。曲とプリセットは JIANT エディタで復元できます。",
tip_otherfw: "下の「公式ファームウェアに戻す」を開いて進めてください。そのファームウェアがバックアップを取れない場合は、バックアップなしで続けるか確認します。|「完了しました」と出たら、インストールを押してください。",
tip_noloader: "FM-1 の電源を切らないでください。USB を挿し直し(できれば別のポート)、もう一度インストールを押すと続きから書き込みます。|Windows: 初回は書き込みモード用のドライバーのインストールに 1 分ほどかかることがあります。待ってからもう一度押してください。|それでも見つからないときは「ブートモード?」と「レポートをコピー」を押してください。",
tip_stopped: "USB をパソコンに直接挿し直し、同じボタンをもう一度押すと再開します。|書き込みモードの間は FM-1 の電源を切らないでください。",
tip_lost: "USB を挿し直し、同じボタンをもう一度押すと再開します。|別のケーブルやポートを使い、ハブは避けてください。電源は切らないでください。",
tip_noreturn: "FM-1 の電源を入れ直してください。起動すれば完了です(MENU > ABOUT にバージョン)。|画面が黒いままなら、つないでもう一度インストールを押してください。「ブートモード?」も試してください。",
tip_mismatch: "電源を入れ直し、MENU > ABOUT を確認してください。「レポートをコピー」を押して知らせてください。",
tip_loadfail: "ページを再読み込み(Ctrl+F5)するか、最新のバージョンを選んでください。|接続を確認してください。広告ブロッカーがダウンロードを止めることがあります。",
tip_stockNeedBackup: "バックアップを保存済みなら「更新中断の再開」にチェックして、もう一度押してください。|まだなら「インストール」を押してください。JIANT 自身の更新プログラムが JIANT に戻します(そのあとインストーラーが Bluetooth 部分を確認します)。バックアップしてから戻してください。",
tip_stockUnsupported: "先に最新の JIANT をインストールし(インストール)、もう一度「公式ファームウェアに戻す」を押してください。曲を保存できるようになります。",
tip_backupfail: "再生を止め(再生中はバックアップできません)、ケーブルを動かさずにやり直してください。|エディタや他の MIDI プログラムを閉じてください。",
tip_stock: "M-VAVE のダウンロードページの FM-1 から、ファームウェア V15 をダウンロードします。|展開します(右クリック → すべて展開)。|中の FM-1.fwsc(699,956 バイト)を選びます。",
tip_error: "「レポートをコピー」を押して送ってください(GitHub の Issues、またはリンクを見つけた場所)。",
});
TEXT.es = {
vnOpen: "Qué trae esta versión", vnHas: "Tiene", vnHasnt: "No tiene", vnOk: "Entendido", vnPublic: "pública", vnBeta: "beta", vnClassic: "clásica",
gateTitle: "Antes de instalar", gateLead: "Leé esto una vez: es todo lo que conviene saber antes de escribir el firmware.",
gateAccept: "Leí las advertencias y acepto instalar bajo mi responsabilidad.", gateGo: "Continuar",
gateReread: "Ver las advertencias otra vez", iStep1: "Conectá la FM-1", iStep2: "Elegí la versión", iStep3: "Instalá",
intro: "Conectá el FM-1 por USB. (Funciona en Chrome o Edge en una computadora; en Android con Chrome puede funcionar. En iPhone/iPad no.)",
warn: "No desconectes el cable USB mientras escribe.",
samples: "Atención: JIANT no tiene samples de usuario. Los samples de usuario de Felucca (USR1–3) se pierden al instalar (esa memoria ahora guarda los temas). Guardá tus WAV originales.",
dual: "Desde 0.6.71 JIANT usa los dos núcleos del FM-1 (experimental). Pasó todas las pruebas virtuales pero todavía no se probó en un equipo real. Si tu FM-1 se cuelga, se reinicia o hace más clicks que antes, mantené REC al prenderlo para tocar con un núcleo, y contanos en GitHub qué dice MENU > ABOUT (CORES 2, o CORES 1 y por qué).",
install: "Instalar",
firstTitle: "¿Venís de otro firmware custom? Primero volvé al oficial",
firstText: "Escribir JIANT directamente sobre otro firmware custom (Felucca, Skiff, baudgirl o cualquier otro) puede dejar el FM-1 sin arrancar. Primero volvé al oficial con el botón de abajo (también guarda un backup completo) y después instalá JIANT. Si el FM-1 ya tiene el V16 oficial, el V15 oficial o JIANT, seguí directo.",
darkText: "Si después de instalar la pantalla queda negra o en blanco y la computadora no ve el FM-1: conectalo directo a la computadora con un cable USB de datos y fijate si en la lista de dispositivos aparece WL80UBOOT (4C4A:8057). Si aparece, apretá el mismo botón de instalar otra vez: se puede volver a escribir. Si no aparece nada, escribinos con COPY REPORT, el firmware que tenía antes y la versión que instalaste.",
firstStock: "Primero volver al oficial",
firstOk: "Antes de instalar, el instalador revisa solo el firmware del FM-1 conectado: escribe únicamente sobre el V16 oficial, el V15 oficial o JIANT.",
checking: "Revisando el firmware del FM-1…",
oldstock: "Este FM-1 tiene un firmware oficial más viejo: no se escribió nada. Primero actualizalo al V15 oficial con el botón de abajo (desde un firmware oficial no hace falta backup) y después apretá Instalar de nuevo. Encontrado: ",
officialConfirm: "Este FM-1 tiene firmware oficial: se actualiza al V15 oficial (esta página no puede hacer backup de los temas de un firmware oficial). ¿Seguir? ",
otherfw: "Este FM-1 tiene un firmware que no es ni el V15 oficial ni JIANT: no se escribió nada. Primero volvé al oficial con el botón de abajo y después instalá de nuevo. Encontrado: ",
editor: "Editor (después de instalar: editá sonidos y secuencias desde la computadora)",
verLabel: "Versión:", verOld: "También podés volver a una versión anterior (la más nueva arriba). Un proyecto guardado por una versión más nueva puede no abrir bien en una anterior: hacé backup con el editor antes.", latest: "la última", manual: "Manual:",
direct: "Conectá el cable USB directo a la computadora. No hace falta probe ni Transporter.",
brick: "Si una instalación falla y el FM-1 ya no arranca, recuperarlo necesita un Transporter:",
beta: "JIANT FM es una versión en desarrollo; contanos los problemas en GitHub. El autor no se hace responsable si tu FM-1 se daña o funciona mal por este firmware custom. Usalo bajo tu propio riesgo.",
back: "Conseguí el FM-1 V16 (o V15) oficial de M-VAVE y elegí el FM-1.fwsc sin modificar. El navegador lo verifica localmente; no se envía a ningún servidor.",
stockV16: "También acepta el V16 oficial (FM-1.fwsc, 718.196 bytes), el que M-VAVE ofrece hoy.",
stockWhere: "En la página de descargas de M-VAVE buscá el FM-1, bajá el firmware V16 (o el V15), descomprimilo y elegí el archivo FM-1.fwsc (699.956 bytes). Esta página no puede bajarlo por vos: el firmware oficial es de M-VAVE y no podemos redistribuirlo.",
stockTitle: "Volver al oficial", stockFile: "FM-1.fwsc oficial", stockGo: "Hacer backup y volver al oficial",
stockBackup: "Primero se guardan la música actual, la música guardada, los bancos de sonido y la configuración (sin los samples de usuario). Un firmware viejo necesita actualizarse para hacer backups completos. Para restaurar un archivo después, reinstalá JIANT y usá el editor.",
stockRecovery: "Retomar una actualización interrumpida: ya guardé un backup completo en esta computadora",
stockValid: "Firmware oficial verificado", stockConfirm: "¿Se guardó el archivo de backup completo en esta computadora? Seguí para volver al oficial. El firmware oficial no puede abrir la música de JIANT.",
stockNeedBackup: "Desde el modo de actualización no se puede exportar un backup. Marcá «retomar» solo si ya guardaste un backup completo.",
stockUnsupported: "Este firmware no hace backups completos. Primero instalá el JIANT actual.",
backup: "Guardando el backup completo ", stockError: "No se puede validar el firmware oficial: ",
nomidi: "Este navegador no tiene WebMIDI. Abrí la página en Chrome o Edge.", loadfail: "No se pudo cargar: ",
nomidiIos: "En iPhone y iPad no se puede: ningún navegador ahí tiene WebMIDI (Apple no lo permite). Usá una computadora (Windows, Mac, Linux, Chromebook) con Chrome o Edge.",
nomidiSafari: "Safari no tiene WebMIDI. Abrí esta página en Chrome o Edge.",
nomidiFirefox: "Este Firefox no tiene WebMIDI. Usá Chrome o Edge (recomendado), o actualizá Firefox.",
start: "Empezando", verify: "Verificando", loader: "Pasando al modo de actualización", write: "Escribiendo",
reboot: "Reiniciando", done: "Listo", stopped: "Se detuvo. Volvé a conectar el cable USB y apretá Instalar de nuevo.",
error: "Error: ",
denied: "No se permitió el acceso a MIDI (SysEx). Permití MIDI en la configuración del sitio (barra de direcciones) y apretá el botón de nuevo.",
blocked: "MIDI está bloqueado para este sitio (si cerraste o rechazaste el aviso, el navegador ya no pregunta). Tocá el ícono a la izquierda de la dirección → Permisos (Configuración del sitio) → Dispositivos MIDI → Permitir. Recargá la página y apretá Instalar de nuevo.",
midifail: "El navegador no pudo iniciar MIDI. ",
notfound: "No se encontró el FM-1: ningún puerto MIDI de un FM-1 respondió.",
busy: "El FM-1 está conectado, pero otro programa está usando su puerto MIDI: ",
noanswer: "Hay un puerto del FM-1, pero no responde: ",
noupdate: "El FM-1 no empezó la actualización: no se escribió nada. Encontrado: ",
model: "El equipo conectado no es un FM-1. ",
lost: "Se perdió la conexión USB. Volvé a conectarlo y apretá Instalar de nuevo.",
noloader: "No se encontró el FM-1 en modo de actualización. Volvé a conectar el cable USB y apretá Instalar de nuevo (sigue en modo de actualización hasta terminar).",
noreturn: "El FM-1 no volvió. Apagalo y prendelo.",
mismatch: "Se escribió, pero el FM-1 informa otra versión: ",
badpkg: "El archivo a instalar está dañado. Recargá la página.",
leave: "Escribiendo. No cierres la página.",
license: "GPL-3.0, sin garantía. Código:",
needV16Jiant: "El JIANT de este FM-1 es anterior a la add15-beta6 y todavía no acepta el V16 oficial: no se escribió nada. Primero apretá Instalar (pone la beta6, tus proyectos quedan) y después volvé a «Volver al oficial». Encontrado: ",
tip_needV16Jiant: "Apretá Instalar (queda la beta6, tus proyectos quedan).|Después abrí otra vez «Volver al oficial» con el archivo del V16.",
stock16: "Este FM-1 tiene el V16 oficial (octubre 2026): no se escribió nada. Instalar JIANT sobre el V16 se está probando en el instalador beta; este instalador lo va a aceptar cuando esté confirmado. Encontrado: ",
tip_stock16: "Abrí el instalador beta (el link arriba de esta página) para instalar JIANT sobre el V16 ahora: es nuevo, hacé backup antes.|O esperá a que este instalador lo soporte.|M-VAVE ya no ofrece el V15: no lo necesitás.",
newstock: "Este FM-1 tiene un firmware oficial más nuevo que el V15, que este instalador todavía no conoce: no se escribió nada. Primero volvé al oficial con el botón de abajo y después instalá de nuevo. Encontrado: ",
skiff: "Este FM-1 tiene Skiff (otro firmware custom, derivado de Felucca): no se escribió nada. Primero volvé al oficial con el botón de abajo (antes guarda los temas de Skiff en un archivo) y después instalá. Encontrado: ",
felucca: "Este FM-1 tiene Felucca: no se escribió nada. Primero volvé al oficial con el botón de abajo (guarda un backup completo, samples de usuario incluidos) y después instalá JIANT. Encontrado: ",
resuming: "El FM-1 está en modo de actualización: sigue la escritura. ",
stockAgainConfirm: "Este FM-1 ya tiene el V15 oficial. ¿Escribir el V15 oficial otra vez? ",
backupFailConfirm: "No se pudo completar el backup. Aceptar = seguir al V15 oficial SIN backup (se pierden los temas del FM-1). Cancelar = parar acá, no se escribe nada. Error: ",
nobackupConfirm: "Este firmware no puede hacer un backup completo desde esta página (si necesitás tus temas, guardalos antes con sus propias herramientas). Aceptar = volver ahora al V15 oficial SIN backup (se pierden los temas del FM-1). Cancelar = parar. Firmware: ",
backupfail: "Falló el backup; no se escribió nada: ",
bktimeout: "El FM-1 dejó de responder. ",
saved: "Backup guardado (tu carpeta de Descargas): ",
stockZip: "Ese es el archivo comprimido que bajaste, no el firmware: primero descomprimilo y elegí el FM-1.fwsc de adentro. Elegido: ",
stockCustom: "Ese es el paquete de un firmware custom (JIANT, Felucca, Skiff), no el oficial: elegí el FM-1.fwsc del V16 o del V15 de M-VAVE. Elegido: ",
stockOtherVer: "Esa es otra versión oficial: esta página necesita exactamente el V15. Elegido: ",
stockNotV15: "Ese archivo no es el FM-1.fwsc del V16 o del V15 oficial (el del V15 pesa 699.956 bytes). Elegido: ",
stockModified: "El archivo tiene el tamaño del V15 pero no su contenido (modificado o dañado): bajalo de nuevo de M-VAVE. ",
tipTitle: "Qué hacer",
reportTitle: "Registro e informe.",
reportWhy: "Si no funciona, apretá COPIAR INFORME y pegalo en tu mensaje cuando pidas ayuda (GitHub, Instagram, YouTube).",
copyReport: "COPIAR INFORME", copied: "Copiado: pegalo en tu mensaje.", copyFail: "No se pudo copiar: seleccioná el texto de abajo y copialo.",
editionSample: "SAMPLE: reproduce samples en lugar de ADD. Cargalos desde el editor web. Hacé backup antes de cambiar de edición; los sonidos ADD no se convierten en samples.",
editionAdd: "ADDITIVE: síntesis aditiva, sin SAMPLE. Las funciones dependen de la revisión elegida. Hacé backup antes de cambiar de edición; los samples no se convierten en sonidos aditivos.",
editionStandard: "La versión estable, la que recomendamos. SAMPLE (samples) y ADDITIVE (síntesis aditiva) están en la lista de versiones anteriores. Hacé backup de tus proyectos antes de cambiar de versión.",
chStable: "Instalador público: versión estable y ediciones alternativas.", chPreview: "Canal PREVIEW: main tal como está ahora, todavía sin aprobar.",
toPreview: "Instalador preview (la próxima versión)", toStable: "Instalador estable",
bootCheck: "¿Está en modo boot (WL80UBOOT)?",
bootFound: "El FM-1 está en el modo boot del chip (WL80UBOOT): su firmware no arranca. Volvé a conectarlo con un buen cable de datos directo a la computadora y apretá Instalar de nuevo. Si sigue así, recuperarlo necesita FM-1 Transporter (el enlace de arriba).",
bootNone: "No se encontró (ni se eligió) ningún FM-1 en modo boot (WL80UBOOT).",
editorOpen: "El editor de JIANT estaba abierto en otra pestaña: se desconectó para la instalación.",
tip_nomidi: "Instalá Chrome (google.com/chrome) o usá Edge, y abrí ahí esta misma página.|Android: Chrome con el FM-1 en un cable OTG USB-C puede funcionar, pero una computadora es más segura.|Brave u Opera: permití los dispositivos MIDI para este sitio, o usá Chrome.",
tip_nomidiIos: "Usá una computadora con Chrome o Edge (Windows, Mac, Linux o una Chromebook).|El emulador y el manual sí andan en el iPhone; el instalador y el editor necesitan MIDI por USB.",
tip_denied: "Hacé clic en el ícono a la izquierda de la dirección (los controles o el candado) → Configuración del sitio → Dispositivos MIDI → Permitir.|Recargá la página y apretá el botón de nuevo.|Firefox: aceptá el «complemento de permisos del sitio» que ofrece. Brave: desactivá los Shields para este sitio.",
tip_midifail: "Cerrá la app de M-VAVE, los DAW y las herramientas MIDI.|Desconectá y volvé a conectar el FM-1, y recargá la página.|Reiniciá el navegador (en Windows, después de suspender, a veces MIDI lo necesita).",
tip_busy: "Cerrá la app de M-VAVE, tu DAW (Ableton, FL Studio, Reaper…), MIDI-OX y otras pestañas con el editor de JIANT u otra página MIDI.|En Windows solo un programa a la vez puede usar un puerto MIDI.|Desconectá y volvé a conectar el FM-1, recargá esta página y apretá el botón de nuevo.",
tip_notfound: "Prendé el FM-1 (con la pantalla encendida).|Usá un cable USB de datos: muchos cables solo cargan. Probá con otro.|Conectalo directo a la computadora, sin hub ni dock.|Cerrá la app de M-VAVE, los DAW y el editor.|¿Nada? Apretá «¿Está en modo boot?» y COPIAR INFORME.",
tip_noanswer: "Desconectá el FM-1, apagalo y prendelo, conectalo de nuevo y reintentá.|Cerrá los programas que puedan estar hablándole (app de M-VAVE, DAW, editor).|Un firmware oficial muy viejo puede no responder al actualizador web: primero actualizalo al V15 con el actualizador de M-VAVE.",
tip_noupdate: "Pará la reproducción, apagá y prendé el FM-1, y reintentá.|USB directo a la computadora, sin hub.|Si se repite, actualizalo con el actualizador oficial de M-VAVE y después volvé acá.",
tip_model: "Desconectá los otros equipos MIDI USB y dejá solo el FM-1.",
tip_oldstock: "Abrí «Volver al oficial» abajo, elegí el FM-1.fwsc del V16 o del V15 de M-VAVE y apretá su botón (un firmware oficial no necesita backup).|Cuando diga Listo, apretá Instalar.",
tip_newstock: "Abrí «Volver al oficial» abajo, elegí el FM-1.fwsc del V16 o del V15 y apretá su botón.|Cuando diga Listo, apretá Instalar.|Contanos qué versión era (COPIAR INFORME).",
tip_skiff: "Abrí «Volver al oficial» abajo, elegí el FM-1.fwsc y apretá su botón: primero guarda el archivo de backup de Skiff (solo el editor de Skiff lo restaura) y después escribe el V15.|Cuando diga Listo, apretá Instalar.|JIANT no puede abrir los temas de Skiff.",
tip_felucca: "Abrí «Volver al oficial» abajo, elegí el FM-1.fwsc y apretá su botón: guarda un backup completo de Felucca (con los samples) y después escribe el V15.|Cuando diga Listo, apretá Instalar.|JIANT no tiene samples de usuario: guardá tus WAV. El editor de JIANT puede restaurar los temas y presets de ese backup.",
tip_otherfw: "Abrí «Volver al oficial» abajo y seguilo. Si ese firmware no puede hacer backup, la página pregunta antes de seguir sin él.|Cuando diga Listo, apretá Instalar.",
tip_noloader: "No apagues el FM-1. Volvé a conectar el cable USB (en otro puerto si podés) y apretá Instalar de nuevo: sigue donde estaba.|Windows: la primera vez, instalar el driver del modo de actualización puede tardar un minuto. Esperá y apretá Instalar de nuevo.|¿Nada? Apretá «¿Está en modo boot?» y COPIAR INFORME.",
tip_stopped: "Volvé a conectar el cable USB directo a la computadora y apretá el mismo botón de nuevo: retoma.|No apagues el FM-1 mientras está en modo de actualización.",
tip_lost: "Volvé a conectar el cable USB y apretá el mismo botón de nuevo: retoma.|Usá otro cable u otro puerto USB; evitá los hubs. No apagues el FM-1.",
tip_noreturn: "Apagá y prendé el FM-1. Si arranca, ya está (MENU > ABOUT muestra la versión).|Si la pantalla queda negra, conectalo y apretá Instalar de nuevo; probá también «¿Está en modo boot?».",
tip_mismatch: "Apagalo y prendelo y mirá MENU > ABOUT. Apretá COPIAR INFORME y contanos.",
tip_loadfail: "Recargá la página (Ctrl+F5), o elegí la última versión.|Revisá la conexión; un bloqueador de anuncios puede frenar la descarga.",
tip_stockNeedBackup: "Si ya guardaste el backup, marcá «Retomar una actualización interrumpida» y apretá de nuevo.|Si no, apretá Instalar: el programa de actualización de JIANT termina de volver a JIANT (después el instalador revisa su parte Bluetooth). Hacé el backup y después volvé.",
tip_stockUnsupported: "Primero instalá el JIANT actual (Instalar) y después apretá «Volver al oficial» de nuevo: ahí sí guarda tus temas.",
tip_backupfail: "Pará la reproducción (no hay backup mientras suena), no muevas el cable y reintentá.|Cerrá el editor y otros programas MIDI.",
tip_stock: "En la página de descargas de M-VAVE, FM-1: bajá el firmware V15.|Descomprimilo (clic derecho → Extraer todo).|Elegí el FM-1.fwsc de adentro (699.956 bytes).",
tip_error: "Apretá COPIAR INFORME y mandánoslo (GitHub issues, o donde encontraste el enlace).",
n085Title: "Aviso antes de instalar 0.8.5",
n085What: "Nuevo en 0.8.5, las octavas de DRUM-X: en la octava central (OCT 0) el kit suena como siempre. Una octava más arriba los mismos sonidos suenan en ratchet a tempo (+1 x2, +2 x4, +3 x8); más abajo, con otro toque: −1 SHORT (la mitad del decay), −2 GHOST (corto, más suave y oscuro: notas fantasma), −3 FLAM (un golpe suave ~20 ms antes del golpe). Cada sonido del kit lleva su propia variación: un hi-hat en ratchet no repite el bombo del mismo paso.",
n085Risk: "Puede cambiar canciones existentes: las notas MIDI fuera del mapa GM (35–81) que hoy una pista DRUM toca como su octava (por ejemplo 24, o 84 y más) ahora suenan como esas variantes; las teclas con OCT movido ya no cambian de sonido sino que hacen ratchet / SHORT / GHOST / FLAM. Las notas guardadas en los pasos suenan igual que antes.",
n085Keep: "Para conservar el sonido de antes, mové esas notas a la octava central (36–47, o el mapa GM 35–81) en tu DAW o secuenciador. Antes de instalar, guardá un backup completo de tus proyectos con el editor (Backup) o con «Volver al oficial» abajo.",
n085Confirm: "0.8.5 agrega las octavas de DRUM-X: las notas de batería fuera de la octava central ahora suenan como ratchet / SHORT / GHOST / FLAM (pueden cambiar temas existentes). ¿Guardaste un backup de tus proyectos? Aceptar lo instala.",
};
/* the tips that share another's */
for (const L of Object.values(TEXT)) {
L.tip_nomidiSafari = L.tip_nomidiFirefox = L.tip_nomidi;
L.tip_blocked = L.tip_denied;
L.tip_newstock = L.tip_newstock || L.tip_oldstock;
L.tip_bktimeout = L.tip_backupfail;
L.tip_badpkg = L.tip_loadfail;
L.tip_stockError = L.tip_stockZip = L.tip_stockNotV15 = L.tip_stockOtherVer = L.tip_stockCustom = L.tip_stockModified = L.tip_stock;
}
/* (V10.6z9) the release's texts: the two cores as they are now, and the 6 songs (8 before), shown above Install */
Object.assign(TEXT.en, {
dual: "JIANT uses both of the FM-1's cores. If your FM-1 freezes, restarts or clicks more than before, hold REC while switching it on to play on one core, and tell us on GitHub what MENU > ABOUT says (CORES 2, or CORES 1 and why).",
sixTitle: "This version keeps 6 songs (8 before). Back up your projects before updating.",
sixText: "Songs 7 and 8 no longer open (that flash is kept for a drum sample bank), and projects saved before JIANT 1.0.3 are refused. Before installing, move what you need into songs 1–6, or save a complete backup with the web editor (Backup) or with Return to official below: a backup keeps all eight songs.",
});
Object.assign(TEXT.es, {
dual: "JIANT usa los dos núcleos del FM-1. Si tu FM-1 se cuelga, se reinicia o hace más clicks que antes, mantené REC al prenderlo para tocar con un núcleo, y contanos en GitHub qué dice MENU > ABOUT (CORES 2, o CORES 1 y por qué).",
sixTitle: "Esta versión guarda 6 canciones (antes 8). Hacé un backup de tus proyectos antes de actualizar.",
sixText: "Las canciones 7 y 8 ya no se abren (esa memoria queda para un banco de samples de batería), y los proyectos guardados antes de JIANT 1.0.3 se rechazan. Antes de instalar, pasá lo que necesites a las canciones 1–6, o guardá un backup completo con el editor web (Backup) o con Volver al oficial, abajo: el backup conserva las ocho canciones.",
});
Object.assign(TEXT.ja, {
dual: "JIANT は FM-1 の 2 つのコアを使います。フリーズ・再起動・クリックノイズが以前より多い場合は、REC を押しながら電源を入れると 1 コアで動きます。MENU > ABOUT の表示(CORES 2、または CORES 1 とその理由)を GitHub で知らせてください。",
sixTitle: "このバージョンは 6 曲まで保存します(以前は 8 曲)。更新の前にプロジェクトをバックアップしてください。",
sixText: "曲 7 と 8 は開けなくなります(その領域はドラムサンプルバンク用に空けます)。JIANT 1.0.3 より前に保存したプロジェクトも読み込めません。インストールの前に 1〜6 の曲へ移すか、Web エディター(Backup)または下の「公式ファームウェアに戻す」で全体バックアップを保存してください(バックアップには 8 曲すべてが残ります)。",
});
/* (V10.6z9) Return to official takes V16 (what M-VAVE offers now) or V15: the file's steps and the messages say so */
Object.assign(TEXT.en, {
stockWhere: "On M-VAVE's download page, find the FM-1, download its firmware (V16 today), unzip it and select the file FM-1.fwsc (V16: 718,196 bytes; V15, if you kept it: 699,956). This page cannot download it for you: the official firmware is M-VAVE's and not ours to redistribute.",
tip_stock: "On M-VAVE's download page, FM-1: download the firmware (V16).|Unzip it (right click → Extract all).|Select the FM-1.fwsc inside (V16: 718,196 bytes; V15: 699,956).",
stockOtherVer: "That is another official version: this page takes V16 or V15 exactly. Selected: ",
oldstock: "This FM-1 runs an older official firmware: nothing was written. Update it to official V16 (or V15) first with the button below (no backup is needed from an official firmware), then press Install again. Found: ",
newstock: "This FM-1 runs an official firmware this installer does not know yet: nothing was written. Return to official V16 or V15 first with the button below, then install again. Found: ",
backupFailConfirm: "The backup could not be completed. OK = continue to the official firmware WITHOUT a backup (the songs on the FM-1 are lost). Cancel = stop here, nothing is written. Error: ",
});
Object.assign(TEXT.es, {
stockWhere: "En la página de descargas de M-VAVE buscá el FM-1, bajá su firmware (hoy el V16), descomprimilo y elegí el archivo FM-1.fwsc (V16: 718.196 bytes; el V15, si lo guardaste: 699.956). Esta página no puede bajarlo por vos: el firmware oficial es de M-VAVE y no podemos redistribuirlo.",
tip_stock: "En la página de descargas de M-VAVE, FM-1: bajá el firmware (V16).|Descomprimilo (clic derecho → Extraer todo).|Elegí el FM-1.fwsc de adentro (V16: 718.196 bytes; V15: 699.956).",
stockOtherVer: "Esa es otra versión oficial: esta página toma exactamente el V16 o el V15. Elegido: ",
oldstock: "Este FM-1 tiene un firmware oficial más viejo: no se escribió nada. Primero actualizalo al V16 (o V15) oficial con el botón de abajo (desde un firmware oficial no hace falta backup) y apretá Instalar otra vez. Encontrado: ",
otherfw: "Este FM-1 tiene un firmware que no es ni el V16 / V15 oficial ni JIANT: no se escribió nada. Primero volvé al oficial con el botón de abajo y después instalá otra vez. Encontrado: ",
newstock: "Este FM-1 tiene un firmware oficial que este instalador todavía no conoce: no se escribió nada. Primero volvé al V16 o V15 oficial con el botón de abajo y después instalá otra vez. Encontrado: ",
backupFailConfirm: "No se pudo completar el backup. Aceptar = seguir al firmware oficial SIN backup (se pierden los temas del FM-1). Cancelar = parar acá, no se escribe nada. Error: ",
});
Object.assign(TEXT.ja, {
firstTitle: "他のカスタムファームウェアから入れる場合は、先に公式ファームウェアへ戻してください",
firstText: "Felucca・baudgirl などの別のカスタムファームウェアが入った FM-1 に直接 JIANT を書き込むと、起動しなくなることがあります。まず下のボタンで公式(V16 または V15)に戻し(全体バックアップも取れます)、それから JIANT をインストールしてください。公式V16・公式V15 か JIANT なら、そのままインストールできます。",
back: "M-VAVE から公式 FM-1 V16(または V15)を取得し、未変更の FM-1.fwsc を選んでください。ファイルはこのブラウザ内で検証し、サーバーへ送りません。",
stockConfirm: "全体バックアップファイルをパソコンに保存できましたか? 続けると公式ファームウェアへ戻します。JIANT の曲は公式ファームウェアでは開けません。",
stockWhere: "M-VAVE のダウンロードページで FM-1 のファームウェア(現在は V16)をダウンロードし、展開して FM-1.fwsc(V16: 718,196 バイト、V15: 699,956 バイト)を選んでください。公式ファームウェアは M-VAVE のもので再配布できないため、このページからはダウンロードできません。",
tip_stock: "M-VAVE のダウンロードページの FM-1 から、ファームウェア(V16)をダウンロードします。|展開します(右クリック → すべて展開)。|中の FM-1.fwsc(V16: 718,196 バイト、V15: 699,956 バイト)を選びます。",
stockOtherVer: "それは別の公式バージョンです。このページは V16 または V15 だけを受け付けます。選択: ",
stockCustom: "それはカスタムファームウェア(JIANT、Felucca、Skiff)のファイルです。M-VAVE の V16 または V15 の FM-1.fwsc を選んでください。選択: ",
otherfw: "この FM-1 には公式V16 / V15 でも JIANT でもないファームウェアが入っています。書き込みませんでした。下のボタンで先に公式ファームウェアに戻してから、もう一度インストールしてください。 ",
backupFailConfirm: "バックアップを完了できませんでした。OK = バックアップなしで公式ファームウェアへ進む(FM-1 の曲は失われます)。キャンセル = ここで中止(何も書き込みません)。エラー: ",
});
for (const L of ["en", "es", "ja"])
for (const k of ["tip_stockModified", "tip_stockCustom", "tip_stockOtherVer", "tip_stockNotV15", "tip_stockZip", "tip_stockError"])
TEXT[L][k] = TEXT[L].tip_stock;
for (const L of ["en", "es", "ja"]) TEXT[L].stockV16 = ""; /* (stockWhere names V16 itself now) */
/* (V10.7.22) the Bluetooth part: checked after the install's restart (fm1diag.js btCheck), written once more when it is
* missing; update mode with a loader that is not JIANT's (it writes no Bluetooth part) is not resumed with JIANT.
* tools/patch_installer_downloads.py copies this block, as it is, into the published installers */
Object.assign(TEXT.en, {
btcheck: "Checking the firmware's Bluetooth part…",
btrepair: "The firmware's Bluetooth part is missing (GEN, song saving, Bluetooth and USB HOST live there): installing once more to write it. Do not unplug the FM-1.",
btmissing: "Installed, but the FM-1 still reports its Bluetooth part missing (BLUETOOTH PART MISSING): GEN, song saving, Bluetooth and USB HOST will not work.",
tip_btmissing: "Switch the FM-1 off and on, plug it straight into the computer (no hub) and press Install again.|If it says the same, press COPY REPORT and send it to us (GitHub issues): it tells which update program wrote it.|Meanwhile the rest of JIANT works: any key closes the message it shows at power-on.",
foreignLoader: "The FM-1 is in update mode with another update program (the official one: a return to official or an official update stopped). Through it JIANT would be written without its Bluetooth part, so nothing was written. Found: ",
tip_foreignLoader: "Finish that update first: in 'Return to official' below select M-VAVE's FM-1.fwsc, tick 'Resume an interrupted update' and press its button.|When it says Done, press Install: JIANT is then written complete.|Do not switch the FM-1 off while it is in update mode.",
stockNeedResume: "The FM-1 is in update mode with the official update program (a return to official stopped): no backup can be made from there, and Install cannot finish it. Found: ",
tip_stockNeedResume: "Tick 'Resume an interrupted update' and press this button again: it finishes the official firmware.|Then press Install to put JIANT back.|Do not switch the FM-1 off while it is in update mode.",
tip_stockNeedBackup: "If you already saved the backup, tick 'Resume an interrupted update' and press again.|If not, press Install: JIANT's own update program finishes putting JIANT back (the installer then checks its Bluetooth part). Back up, then return.",
});
Object.assign(TEXT.es, {
btcheck: "Revisando la parte Bluetooth del firmware…",
btrepair: "Falta la parte Bluetooth del firmware (ahí viven GEN, el guardado de canciones, Bluetooth y USB HOST): instalando una vez más para escribirla. No desconectes el FM-1.",
btmissing: "Se instaló, pero el FM-1 sigue diciendo que le falta la parte Bluetooth (BLUETOOTH PART MISSING): GEN, el guardado de canciones, Bluetooth y USB HOST no van a andar.",
tip_btmissing: "Apagá y prendé el FM-1, conectalo directo a la computadora (sin hub) y apretá Instalar de nuevo.|Si dice lo mismo, apretá COPIAR INFORME y mandánoslo (GitHub issues): dice qué programa de actualización lo escribió.|Mientras tanto el resto de JIANT anda: cualquier tecla cierra el aviso que muestra al prender.",
foreignLoader: "El FM-1 está en modo de actualización con otro programa de actualización (el oficial: se cortó una vuelta al oficial o una actualización oficial). Con él, JIANT quedaría sin su parte Bluetooth, así que no se escribió nada. Encontrado: ",
tip_foreignLoader: "Primero terminá esa actualización: en «Volver al oficial», abajo, elegí el FM-1.fwsc de M-VAVE, marcá «Retomar una actualización interrumpida» y apretá su botón.|Cuando diga Listo, apretá Instalar: ahí JIANT se escribe completo.|No apagues el FM-1 mientras está en modo de actualización.",
stockNeedResume: "El FM-1 está en modo de actualización con el programa de actualización oficial (se cortó una vuelta al oficial): desde ahí no se puede hacer un backup, e Instalar no puede terminarla. Encontrado: ",
tip_stockNeedResume: "Marcá «Retomar una actualización interrumpida» y apretá este botón de nuevo: termina el firmware oficial.|Después apretá Instalar para volver a JIANT.|No apagues el FM-1 mientras está en modo de actualización.",
tip_stockNeedBackup: "Si ya guardaste el backup, marcá «Retomar una actualización interrumpida» y apretá de nuevo.|Si no, apretá Instalar: el programa de actualización de JIANT termina de volver a JIANT (después el instalador revisa su parte Bluetooth). Hacé el backup y después volvé.",
});
Object.assign(TEXT.ja, {
btcheck: "ファームウェアの Bluetooth 部分を確認中…",
btrepair: "ファームウェアの Bluetooth 部分がありません(GEN、曲の保存、Bluetooth、USB HOST はここにあります)。書き込むためにもう一度インストールします。FM-1 を抜かないでください。",
btmissing: "インストールしましたが、FM-1 はまだ Bluetooth 部分がないと報告しています(BLUETOOTH PART MISSING)。GEN、曲の保存、Bluetooth、USB HOST は動きません。",
tip_btmissing: "FM-1 の電源を入れ直し、ハブを使わずパソコンに直接つないで、もう一度「インストール」を押してください。|同じ表示なら「レポートをコピー」を押して GitHub で知らせてください(どの更新プログラムが書き込んだかが分かります)。|それ以外の JIANT は動きます。起動時の表示はどれかのキーで閉じます。",
foreignLoader: "FM-1 は別の更新プログラム(公式のもの。公式への戻しか公式アップデートが途中で止まっています)で書き込みモードになっています。これでは JIANT が Bluetooth 部分なしで書き込まれるため、何も書き込みませんでした。検出: ",
tip_foreignLoader: "先にその更新を終わらせてください。下の「公式ファームウェアに戻す」で M-VAVE の FM-1.fwsc を選び、「更新中断の再開」にチェックしてボタンを押します。|「完了」と出たら「インストール」を押してください。JIANT が完全に書き込まれます。|書き込みモードの間は FM-1 の電源を切らないでください。",
stockNeedResume: "FM-1 は公式の更新プログラムで書き込みモードになっています(公式への戻しが途中で止まっています)。この状態ではバックアップできず、「インストール」でも終わらせられません。検出: ",
tip_stockNeedResume: "「更新中断の再開」にチェックして、このボタンをもう一度押してください。公式ファームウェアの書き込みを終わらせます。|そのあと「インストール」で JIANT に戻してください。|書き込みモードの間は FM-1 の電源を切らないでください。",
tip_stockNeedBackup: "バックアップを保存済みなら「更新中断の再開」にチェックして、もう一度押してください。|まだなら「インストール」を押してください。JIANT 自身の更新プログラムが JIANT に戻します(そのあとインストーラーが Bluetooth 部分を確認します)。バックアップしてから戻してください。",
});
/* (V10.7.22) the Bluetooth part's texts end */
const LANGS = ["es", "en", "ja"];
const navLang = (navigator.language || "en").toLowerCase();
let lang = navLang.startsWith("ja") ? "ja" : navLang.startsWith("es") ? "es" : "en";
try { const q = new URLSearchParams(location.search).get("lang"); if (LANGS.includes(q)) lang = q; } catch (_) {}
const t = (k) => TEXT[lang][k] ?? TEXT.en[k] ?? k;
let lastKey = null, lastArg = "", tipKey = null;
function applyLang() {
document.documentElement.lang = lang;
document.querySelectorAll("[data-t]").forEach((e) => { e.textContent = t(e.dataset.t); });
document.querySelectorAll('[data-t="stockWhere"]').forEach((w) => { w.textContent += " " + t("stockV16"); }); /* (V10)
* official V16 too, the one M-VAVE offers now */
document.querySelectorAll("#lang button").forEach((b) => b.setAttribute("aria-pressed", String(b.dataset.lang === lang)));
if (lastKey) $("status").textContent = t(lastKey) + lastArg;
if (tipKey) showTip(tipKey);
showChannel();
}
/* (studio) the gate: accepted once in this browser (until the warnings change), then the clean installer */
const GATE_KEY = "jiant-installer-accepted-1";
function gateShow(open) { $("gate").hidden = !open; $("app").hidden = open; }
function gateInit() {
let ok = false;
try { ok = localStorage.getItem(GATE_KEY) === "1"; } catch (_) {}
gateShow(!ok);
$("gate-ok").addEventListener("change", () => { $("gate-go").disabled = !$("gate-ok").checked; });
$("gate-go").addEventListener("click", () => { try { localStorage.setItem(GATE_KEY, "1"); } catch (_) {} gateShow(false); window.scrollTo(0, 0); });
$("gate-again").addEventListener("click", () => { $("gate-ok").checked = true; $("gate-go").disabled = false; gateShow(true); window.scrollTo(0, 0); });
}
gateInit();
const sayK = (k, arg = "") => { lastKey = k; lastArg = arg; $("status").textContent = t(k) + arg; };
const say = (txt) => { lastKey = null; $("status").textContent = txt; };
const log = (s) => { $("log").textContent += `${new Date().toISOString().slice(11, 19)} ${s}\n`; };
/* the troubleshooting box of a code (tip_<code>): its steps */
function showTip(code) {
tipKey = code;
const steps = code ? (TEXT[lang]["tip_" + code] ?? TEXT.en["tip_" + code] ?? t("tip_error")) : "";
$("tip").hidden = !steps;
$("tiptext").textContent = "";
for (const s of String(steps).split("|").filter(Boolean)) { const li = document.createElement("li"); li.textContent = s; $("tiptext").appendChild(li); }
}
let image = null;
const meta = /*META*/;
const env = envOf(navigator);
const state = { flow: "", step: "", fw: null };
let lastError = null, lastUp = null, permission = "";
log(`page ${location.href}`);
log(`installer ${meta.version} ${meta.product} | ${env.browser} ${env.os} | webmidi ${env.webmidi ? "yes" : "NO"}`);
/* (0.9.11) the channel: web/STABLE's approved version (webapp/installer) or main's preview (preview/webapp/installer) */
const preview = meta.channel ? meta.channel === "preview" : /-preview$/.test(meta.version);
function showChannel() {
$("beta-banner").hidden = !preview;
const p = $("channel"); p.textContent = t(preview ? "chPreview" : "chStable") + " ";
const a = document.createElement("a");
a.href = preview ? "../../../webapp/installer/" : "../../preview/webapp/installer/";
a.textContent = t(preview ? "toStable" : "toPreview");
p.appendChild(a);
}
document.querySelectorAll("#lang button").forEach((b) => b.addEventListener("click", () => { lang = b.dataset.lang; applyLang(); fillVersions(); }));
applyLang();
/* (0.9.11) the JIANT editor in another tab of this browser talks to the FM-1 too and reconnects by itself when the
* device comes back (the update loader is a "JIANT" port): while writing, the installer asks it to let go */
/* (studio) every page of this site that uses MIDI answers too (the editors of JIANT FM and JIANT BYTE, their emulators,
* the studio: /JIANT/ and /JIANT-BYTE/ are one origin): "who" -> {type: "editor" | "emulator" | "studio", connected};
* "installer" busy -> each lets go of every MIDI port and says {type: "released", who} (letGo below waits for them) */
let bc = null, editorTabs = 0, busyBeat = null, released = 0;
const MIDI_PAGES = ["editor", "emulator", "studio"];
try {
bc = new BroadcastChannel("jiant-midi");
bc.onmessage = (e) => {
const m = e.data || {};
if (MIDI_PAGES.includes(m.type)) { editorTabs++; state.editorTabs = `${editorTabs} (${m.connected ? "connected" : "idle"})`; log(`${m.type} tab: ${m.connected ? "connected" : "idle"}`); }
if (m.type === "released") { released++; log(`${m.who || "a tab"}: MIDI let go`); }
};
bc.postMessage({ type: "who" });
} catch (_) {}
const tellEditors = (busy) => {
if (!bc) return;
try { bc.postMessage({ type: "installer", busy }); } catch (_) {}
clearInterval(busyBeat);
if (busy) busyBeat = setInterval(() => { try { bc.postMessage({ type: "installer", busy: true }); } catch (_) {} }, 20000);
};
/* before the first byte goes to the FM-1: ask the other tabs again who is there, tell them to let go, and wait until each
* said so (at most 1.5 s: a tab asleep in the background answers late, and a page from before this one never does) */
async function letGo() {
if (!bc) return;
editorTabs = 0; released = 0;
try { bc.postMessage({ type: "who" }); } catch (_) {}
await new Promise((r) => setTimeout(r, 250));
const asked = editorTabs;
tellEditors(true);
for (let t = 0; t < 1500 && released < asked; t += 50) await new Promise((r) => setTimeout(r, 50));
if (asked) log(`${released} of ${asked} MIDI tab(s) let go before writing`);
}
let writing = false, stock = null, stockFileEpoch = 0;
const lockInstaller = (on) => { writing = on; tellEditors(on); $("ver").disabled = 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"); } });
/* (0.6.46) the version to install: the current one or one of the last few (make_site.py PREV_DIR) */
const versions = meta.versions && meta.versions.length ? meta.versions : [{ version: meta.version, pkg: meta.pkg }];
/* (0.9.9-beta1) each version's own package identity (the 0.6 line is FM-1_900, later ones FM-1_909): the device must
* report it after the install */
const productOfVersion = (v) => v.product || meta.product;
let product = meta.product;
let loadEpoch = 0;
/* (V10) the version without its build's commit: "V10-4b5f5c6" -> "V10" */
const versionLabel = (v) => v.version.replace(/-preview$/, "").replace(/-[0-9a-f]{7}$/, "");
function fillVersions() {
const sel = $("ver"), at = sel.selectedIndex;
sel.textContent = "";
versions.forEach((v, i) => { const o = document.createElement("option"); o.value = i;
o.textContent = `${v.edition ? v.edition + " · " : ""}${versionLabel(v)}${v.status === "beta" ? " · BETA" : ""}${i ? "" : " (" + t("latest") + ")"}`; sel.appendChild(o); });
sel.selectedIndex = at > 0 ? at : 0;
showEdition();
}
function showEdition() {
const v = versions[+$("ver").value] || versions[0];
$("edition-info").textContent = t((v.edition || "").startsWith("SAMPLE") ? "editionSample" : (v.edition || "").startsWith("ADDITIVE") ? "editionAdd" : "editionStandard");
}
async function loadVersion(i) {
const v = versions[i] || versions[0], epoch = ++loadEpoch;
image = null; $("go").disabled = true;
for (let k = 0; k < 3; k++) { // (0.9.11) a dropped download is tried again
try {
const r = await fetch(v.pkg, k ? { cache: "reload" } : {});
if (!r.ok) throw new Error(`${v.pkg}: HTTP ${r.status}`);
const pkg = new Uint8Array(await r.arrayBuffer());
if (epoch !== loadEpoch) return;
if (productOf(pkg) !== productOfVersion(v)) { sayK("badpkg"); showTip("badpkg"); log(`package ${v.pkg}: ${productOf(pkg)}`); return; }
image = logicalImage(pkg); product = productOfVersion(v);
say(`JIANT FM ${v.edition ? v.edition + " · " : ""}${versionLabel(v)}`); showTip(null);
$("go").disabled = writing;
return;
} catch (e) {
if (epoch !== loadEpoch) return;
log(`load ${v.pkg}: ${e.message}`);
if (k === 2) { sayK("loadfail", e.message); showTip("loadfail"); lastError = e; }
else await sleep(800 * (k + 1));
}
}
}
/* (0.8.5) a release's notice before it is written: 0.8.5 (the DRUM-X octaves change how some drum notes sound), on
* either installer (the preview's and web/STABLE's) whenever the version picked is 0.8.5; never on the landing page */
function releaseNotice(version) {
return /^v?0\.8\.5(?![0-9])/.test(String(version)) ? "n085" : "";
}
const noticeOf = () => releaseNotice((versions[+$("ver").value] || versions[0]).version);
const showNotice = () => { $("notice").hidden = !noticeOf(); };
fillVersions();
showNotice();
$("ver").addEventListener("change", () => { showNotice(); showEdition(); if (!writing) loadVersion(+$("ver").value); vnShow(true); });
/* (studio) what the version picked has and has not: firmware/VERSION_NOTES.json, the longest key the version starts
* with ("V10.8.25" for "V10.8.25-f9954c4-preview"); nothing when it is not there */
let vnData = null;
const vnLoad = () => vnData || (vnData = Promise.resolve().then(() => fetch("../../firmware/VERSION_NOTES.json", { cache: "no-cache" }))
.then((r) => (r && r.ok && typeof r.json === "function" ? r.json() : null)).catch(() => null));
function vnFind(d, version) {
if (!d || !d.versions) return null;
const k = Object.keys(d.versions).filter((x) => String(version).startsWith(x)).sort((a, b) => b.length - a.length)[0];
return k ? { key: k, v: d.versions[k] } : null;
}
async function vnShow(open) {
const d = await vnLoad();
if (!d || typeof versions === "undefined" || !versions.length) return;
const cur = (versions[+$("ver").value] || versions[0]).version, f = vnFind(d, cur);
$("vn-open").hidden = !f;
if (!f || !open) return;
const L = (o) => (o ? o[lang] || o.en || o.es || "" : ""), name = (id) => L(d.features && d.features[id]) || id;
const st = { public: "vnPublic", beta: "vnBeta", classic: "vnClassic" }[f.v.status];
$("vn-meta").textContent = [st ? t(st) : "", f.v.date || ""].filter(Boolean).join(" · ");
$("vn-title").textContent = f.key;
$("vn-sum").textContent = L(f.v.summary);
const fill = (ul, ids) => ul.replaceChildren(...(ids || []).map((id) => Object.assign(document.createElement("li"), { textContent: name(id) })));
fill($("vn-has"), f.v.has); fill($("vn-hasnt"), f.v.hasnt);
$("vn-hasnt-box").hidden = !(f.v.hasnt || []).length;
$("vn-notes").textContent = L(f.v.notes); $("vn-notes").hidden = !L(f.v.notes);
const dlg = $("vn");
if (dlg.showModal && !dlg.open) dlg.showModal(); else dlg.setAttribute("open", "");
}
$("vn-open").addEventListener("click", () => vnShow(true));
$("vn-ok").addEventListener("click", () => { const dlg = $("vn"); if (dlg.close) dlg.close(); else dlg.removeAttribute("open"); });
vnShow(false);
(async () => {
try { permission = (await navigator.permissions.query({ name: "midi", sysex: true })).state; } catch (_) {}
if (!env.webmidi) { const k = nomidiCode(env); sayK(k); showTip(k); log(`no WebMIDI: ${k}`); return; }
if (permission) log(`midi permission: ${permission}`);
await loadVersion(0);
})();
$("first-stock").addEventListener("click", () => { $("stock").open = true; $("stock").scrollIntoView({ behavior: "smooth" }); });
/* ------------------------------------------------------------- the report --- */
function report() {
return makeReport({ env, page: location.href, installer: `${(versions[+$("ver").value] || versions[0]).version} (${product})${preview ? " preview" : ""}`,
state, scan: lastUp ? lastUp.lastScan : null, permission, error: lastError, log: $("log").textContent });
}
$("copy-report").addEventListener("click", async () => {
const text = report();
try { await navigator.clipboard.writeText(text); $("copy-state").textContent = t("copied"); $("report-box").hidden = true; }
catch (_) { $("report-box").hidden = false; $("report-box").value = text; $("report-box").select(); $("copy-state").textContent = t("copyFail"); }
});
/* the chip's boot mode (WL80UBOOT, USB 4C4A:...): not a MIDI device, WebMIDI never sees it; WebUSB can (Chrome) */
if (navigator.usb) {
$("boot-check").hidden = false;
$("boot-check").addEventListener("click", async () => {
try {
const d = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x4C4A }] });
log(`usb: ${d.productName || "?"} ${d.vendorId.toString(16)}:${d.productId.toString(16)}`);
state.usb = `${d.productName} ${d.vendorId.toString(16)}:${d.productId.toString(16)}`;
sayK("bootFound"); showTip("noloader");
} catch (e) { log(`usb: ${e.name}`); sayK("bootNone"); }
});
}
/* ------------------------------------------------------------- the flows --- */
function showError(e) {
lastError = e;
const code = e && e.code && TEXT.en[e.code] ? e.code : /timed out/i.test(e && e.message) ? "bktimeout" : "error";
sayK(code, code === "error" || code === "bktimeout" ? (e && e.message) || String(e) : e.detail || "");
showTip(code === "error" ? "error" : code);
log(`error ${code}: ${e && e.message}`);
if (e && e.stack && code === "error") log(String(e.stack).split("\n").slice(0, 4).join(" | "));
}
const total = 74 + 1167;
const ui = {
say: (k, a = "") => { sayK(k, a); if (k !== "backup") log(`${k} ${a}`); },
step: (k, a) => {
state.step = `${k}${a != null ? " " + a : ""}`;
if (k !== "verify" && k !== "write") log(`${k} ${a ?? ""}`);
if (k === "start") sayK("start");
if (k === "verify") { sayK("verify"); $("bar").value = (a / total) * 100; }
if (k === "loader") sayK("loader");
if (k === "write") { sayK("write"); $("bar").value = ((74 + a) / total) * 100; }
if (k === "reboot") sayK("reboot");
if (k === "done") { $("bar").value = 100; sayK("done"); }
},
confirm: (k, a = "") => confirm(t(k) + a),
save: (archive, fw) => { const name = saveArchive(archive, fw); log(`backup saved: ${name}`); sayK("saved", name); },
openStock: () => { $("stock").open = true; },
};
/* one MIDIAccess per press (refused / blocked / no WebMIDI: their messages); every port listed in the log */
async function begin() {
lastError = null; showTip(null); state.step = ""; state.fw = null; state.backupError = "";
const midi = await midiAccess(navigator, log);
state.inputs = [...midi.inputs.values()].map((p) => `${p.name} [${p.state}${p.connection ? "/" + p.connection : ""}]`);
log(`midi inputs: ${state.inputs.join(" | ") || "(none)"}`);
log(`midi outputs: ${[...midi.outputs.values()].map((p) => p.name).join(" | ") || "(none)"}`);
if (editorTabs) log(t("editorOpen"));
editorTabs = 0;
return lastUp = new Updater(midi, log, { refresh: () => navigator.requestMIDIAccess({ sysex: true }) });
}
$("go").addEventListener("click", async () => {
if (writing) return;
const nk = noticeOf();
if (nk && !confirm(t(nk + "Confirm"))) { $("notice").scrollIntoView({ behavior: "smooth" }); return; }
lockInstaller(true);
try {
await letGo();
const up = await begin();
const selected = versions[+$("ver").value] || versions[0];
const result = await runInstall({ up, image, product, ui, state, allowV16: true }); /* (V10: V16 both channels) */
if (result !== "done") return;
sayK("done");
} catch (e) { showError(e); } finally { lockInstaller(false); }
log(`firmware: ${state.fw ? `${state.fw.kind} ${state.fw.text || ""} ${state.fw.version || ""}` : "-"}`);
lockInstaller(false);
});
$("stock-file").addEventListener("change", async () => {
const epoch = ++stockFileEpoch, file = $("stock-file").files[0]; stock = null; lockInstaller(false);
if (!file) return;
try {
const bytes = new Uint8Array(await file.arrayBuffer());
log(`official file: ${file.name} ${bytes.length} B`);
const bad = stockFileProblem(file.name, bytes, STOCK_V15_SIZE, true);
if (bad) { if (epoch === stockFileEpoch) { sayK(bad.code, bad.detail); showTip(bad.code); } return; }
let verified;
try { verified = await validateStockPackage(bytes, true); }
catch (e) { if (epoch === stockFileEpoch) { sayK("stockModified", e.message); showTip("stockModified"); } return; }
if (epoch !== stockFileEpoch) return;
stock = verified; sayK("stockValid"); showTip(null); lockInstaller(false);
} catch (e) { if (epoch === stockFileEpoch) { sayK("stockError", e.message); showTip("stockError"); } }
});
function saveArchive(archive, fw) {
const url = URL.createObjectURL(new Blob([JSON.stringify(archive)], {type:"application/json"}));
const who = fw && fw.kind !== "jiant" ? `FM-1-${fw.kind}` : "JIANT";
const name = `${who}-backup-${new Date().toISOString().slice(0,10)}.json`;
const a = document.createElement("a"); a.href = url; a.download = name;
document.body.append(a); a.click(); a.remove(); setTimeout(() => URL.revokeObjectURL(url), 1000);
return name;
}
$("stock-go").addEventListener("click", async () => {
if (!stock || writing) return;
const selected = stock; lockInstaller(true);
try {
await letGo();
const up = await begin();
const r = await runStock({ up, stock: selected, recovery: $("stock-recovery").checked, ui, state });
if (r === "done") sayK("done");
} catch (e) { showError(e); }
log(`firmware: ${state.fw ? `${state.fw.kind} ${state.fw.text || ""} ${state.fw.version || ""}` : "-"}`);
lockInstaller(false);
});
</script>
</body>
</html>