Files
clipper-fm1/web/index_pkg.html
T
isod89andClaude Opus 5.5 ddd19975d3 Clipper's own identity: USB name, installer page, editor, console
- The FM-1's MIDI port is now "Clipper" (the update loader keeps "Felucca Update");
  the editor, the installer and the tools find either name.
- The installer page describes the synthesizer: 13 engines, 177 sounds, HYBRID,
  playing, sound and effects, in English, French and Japanese (FR new), with credits.
- The editor shows "CLIPPER 0.1" (INFO keeps its "FELUCCA " prefix for the tools);
  the console banner and the About screen say Clipper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RDUenQzjQ4Kk2jQVG85bwq
2026-10-09 21:33:14 -04:00

433 lines
34 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<!-- SPDX-License-Identifier: GPL-3.0-only
Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Clipper installer</title>
<style>
:root { --bg: #000; --fg: #f2f2f2; --dim: #8a8a92; --tile: #16161a; --line: #2a2a30;
--blue: #287cff; --green: #1ecc70; --yellow: #ffc618; --orange: #ff621a; --red: #ff2c34; }
:root[data-theme="light"] { --bg: #f4f4f2; --fg: #111; --dim: #666; --tile: #e6e6e2; --line: #d0d0cc; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
font: 15px/1.6 "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo svg { display: block; width: 220px; height: auto; }
.logo rect:first-child { fill: transparent; }
.lang { font-size: 12px; color: var(--dim); cursor: pointer; text-decoration: underline; background: none;
border: 0; padding: 0; text-transform: lowercase; }
.strip { display: flex; height: 4px; margin: 20px 0 24px; }
.strip i { flex: 1; } .strip i:nth-child(1) { background: var(--blue); } .strip i:nth-child(2) { background: var(--green); }
.strip i:nth-child(3) { background: var(--yellow); } .strip i:nth-child(4) { background: var(--orange); }
h1 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.lead { font-size: 20px; line-height: 1.35; margin: 0 0 24px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 28px; }
.tile { background: var(--tile); padding: 10px 10px 12px; border-top: 3px solid var(--c); min-height: 92px; }
.tile b { display: block; font-size: 22px; font-weight: 600; color: var(--c); line-height: 1.1; }
.tile span { display: block; font-size: 12px; color: var(--dim); text-transform: lowercase; margin-top: 4px; }
p { margin: 0 0 14px; }
button#go { font: 600 15px/1 inherit; font-family: inherit; background: var(--orange); color: #000; border: 0;
padding: 16px 0; width: 100%; cursor: pointer; letter-spacing: .08em; text-transform: uppercase; }
button#go:disabled { background: var(--tile); color: var(--dim); cursor: default; }
#status { margin-top: 14px; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.small { color: var(--dim); font-size: 12.5px; }
.small a, a { color: inherit; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 16px; border: 0; background: var(--tile); }
progress::-webkit-progress-bar { background: var(--tile); }
progress::-webkit-progress-value { background: var(--orange); }
progress::-moz-progress-bar { background: var(--orange); }
pre { color: var(--dim); font-size: 11px; white-space: pre-wrap; margin-top: 12px; max-height: 160px; overflow: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 18px; }
.ed { display: inline-block; margin: 8px 0 0; padding: 10px 14px; background: var(--tile); text-decoration: none; }
details { margin: 22px 0 0; } summary { cursor: pointer; font-weight: 600; }
button#stock-go { font: 600 14px/1 inherit; font-family: inherit; background: var(--tile); color: var(--fg); border: 1px solid var(--line);
padding: 12px 16px; cursor: pointer; }
button#stock-go:disabled { color: var(--dim); cursor: default; }
h2 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 32px 0 10px; }
.about ul { margin: 0; padding-left: 18px; } .about li { margin: 0 0 6px; }
.engines { margin: 0; display: grid; gap: 2px; }
.engines div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 8px 10px; background: var(--tile); }
.engines div:first-child { border-left: 3px solid var(--orange); }
.engines dt { font-weight: 600; letter-spacing: .04em; }
.engines dd { margin: 0; color: var(--fg); font-size: 14px; }
[data-l][hidden] { display: none; }
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(2, 1fr); } .logo svg { width: 170px; }
.engines div { grid-template-columns: 1fr; gap: 2px; } }
</style>
</head>
<body>
<main>
<div class="top"><div class="logo"><!--LOGO--></div><button class="lang" id="lang"></button></div>
<div class="strip"><i></i><i></i><i></i><i></i></div>
<!--STUDIO_GUIDE-->
<!--BANNER-->
<h1 data-t="kicker"></h1>
<section data-l="en">
<p class="lead">Clipper turns the FM-1 into a deep polyphonic synthesizer: 13 synthesis engines, 177 sounds, and HYBRID, a voice with three oscillators, two filters and a 16-slot modulation matrix that you can edit entirely in your browser.</p>
</section>
<section data-l="fr">
<p class="lead">Clipper fait de la FM-1 un vrai synthétiseur polyphonique : 13 moteurs de synthèse, 177 sons, et HYBRID, une voix à trois oscillateurs, deux filtres et une matrice de modulation de 16 slots, entièrement éditable dans ton navigateur.</p>
</section>
<section data-l="ja">
<p class="lead">Clipper は FM-1 を本格的なポリフォニック・シンセサイザーに変えます。13 の音源エンジン、177 の音色、そして 3 オシレーター・2 フィルター・16 スロットのモジュレーション・マトリクスを持つ HYBRID。音色はすべてブラウザから編集できます。</p>
</section>
<div class="tiles">
<div class="tile" style="--c: var(--blue)"><b>13</b><span data-t="tEng"></span></div>
<div class="tile" style="--c: var(--green)"><b>177</b><span data-t="tSnd"></span></div>
<div class="tile" style="--c: var(--yellow)"><b>3+2</b><span data-t="tHy"></span></div>
<div class="tile" style="--c: var(--orange)"><b>16</b><span data-t="tMx"></span></div>
</div>
<p data-t="intro"></p>
<p data-t="warn"></p>
<p><button id="go" disabled data-t="install"></button></p>
<progress id="bar" max="100" value="0"></progress>
<p id="status"></p>
<pre id="log"></pre>
<a class="ed" href="../editor/" data-t="editor"></a>
<section class="about" data-l="en">
<h2>Engines</h2>
<dl class="engines">
<div><dt>HYBRID</dt><dd>The Clipper voice. Three oscillators (saw, pulse, triangle, sine with feedback, morph, a seven-saw supersaw, FM, hard sync, wavefolder, noise), ring modulation, drift and drive; two filters (LP12, LP24, band-pass, high-pass, notch, peak) in series, in parallel or split; two envelopes and two tempo-synced LFOs per voice; a 16-slot modulation matrix; four macros.</dd></div>
<div><dt>ANALOG</dt><dd>Virtual analog: two band-limited oscillators with PWM, noise, drive and a resonant low-pass.</dd></div>
<div><dt>FM6</dt><dd>Six-operator FM with 32 algorithms. Load classic DX7 patches (.syx) from the editor.</dd></div>
<div><dt>DIGITAL</dt><dd>Four-operator FM with eight algorithms: bells, basses, electric pianos.</dd></div>
<div><dt>PHASE</dt><dd>Phase distortion in the tradition of the 80s CZ synths.</dd></div>
<div><dt>TRIO</dt><dd>The sound chip of the 8-bit home computers: three oscillators, ring modulation, sync and a multimode filter.</dd></div>
<div><dt>LOFI</dt><dd>Chiptune voice: pulse, triangle, wave RAM and pitch sweeps.</dd></div>
<div><dt>WHEEL</dt><dd>Tonewheel organ with nine drawbars.</dd></div>
<div><dt>VOICE</dt><dd>Formant synthesis: sung vowels from the keyboard.</dd></div>
<div><dt>PHYS</dt><dd>Physical models: plucked strings, bells and bars, drum heads, sympathetic strings (after Mutable Instruments Rings and DaisySP).</dd></div>
<div><dt>GRAIN</dt><dd>Granular synthesis over the built-in instruments and your own samples.</dd></div>
<div><dt>SAMPLE</dt><dd>Multisampled piano, strings, horns, flute, vibraphone, bass, and your own samples.</dd></div>
<div><dt>NOISE</dt><dd>From analog hiss to metallic shift-register tones, through a resonant filter.</dd></div>
</dl>
<h2>Play</h2>
<ul>
<li>Up to 8 voices of polyphony, with glide, unison and velocity.</li>
<li>Arpeggiator, step sequencer with chords and recording, scales and chords on the keys.</li>
<li>MIDI over USB and TRS on every channel: pitch bend, mod wheel, expression, sustain pedal, channel and polyphonic aftertouch, the four macros on CC 16 to 19.</li>
<li>The FM-1 is also a USB audio interface: record it straight into your computer.</li>
</ul>
<h2>Sound</h2>
<ul>
<li>44.1 kHz, band-limited oscillators (polyBLEP), level-matched presets.</li>
<li>Effects: distortion, stereo chorus, tempo-synced delay, and a modulated feedback-delay-network reverb.</li>
<li>A web editor for every parameter: the whole HYBRID patch, DX7 banks, your sound library, backups.</li>
</ul>
</section>
<section class="about" data-l="fr">
<h2>Moteurs</h2>
<dl class="engines">
<div><dt>HYBRID</dt><dd>La voix de Clipper. Trois oscillateurs (dent de scie, pulse, triangle, sinus avec feedback, morph, supersaw à sept dents de scie, FM, hard sync, wavefolder, bruit), modulation en anneau, drift et saturation ; deux filtres (LP12, LP24, passe-bande, passe-haut, notch, peak) en série, en parallèle ou séparés ; deux enveloppes et deux LFO synchronisables au tempo par voix ; une matrice de modulation de 16 slots ; quatre macros.</dd></div>
<div><dt>ANALOG</dt><dd>Analogique virtuel : deux oscillateurs à bande limitée avec PWM, bruit, saturation et passe-bas résonant.</dd></div>
<div><dt>FM6</dt><dd>FM à six opérateurs, 32 algorithmes. Charge les patchs DX7 classiques (.syx) depuis l'éditeur.</dd></div>
<div><dt>DIGITAL</dt><dd>FM à quatre opérateurs, huit algorithmes : cloches, basses, pianos électriques.</dd></div>
<div><dt>PHASE</dt><dd>Distorsion de phase, dans l'esprit des synthés CZ des années 80.</dd></div>
<div><dt>TRIO</dt><dd>La puce sonore des ordinateurs 8 bits : trois oscillateurs, modulation en anneau, sync et filtre multimode.</dd></div>
<div><dt>LOFI</dt><dd>Voix chiptune : pulse, triangle, wave RAM et balayages de hauteur.</dd></div>
<div><dt>WHEEL</dt><dd>Orgue à roues phoniques, neuf tirettes.</dd></div>
<div><dt>VOICE</dt><dd>Synthèse de formants : des voyelles chantées au clavier.</dd></div>
<div><dt>PHYS</dt><dd>Modèles physiques : cordes pincées, cloches et lames, peaux de tambour, cordes sympathiques (d'après Mutable Instruments Rings et DaisySP).</dd></div>
<div><dt>GRAIN</dt><dd>Synthèse granulaire sur les instruments intégrés et tes propres samples.</dd></div>
<div><dt>SAMPLE</dt><dd>Piano, cordes, cuivres, flûte, vibraphone et basse multi-échantillonnés, plus tes propres samples.</dd></div>
<div><dt>NOISE</dt><dd>Du souffle analogique aux sons métalliques des registres à décalage, à travers un filtre résonant.</dd></div>
</dl>
<h2>Jouer</h2>
<ul>
<li>Jusqu'à 8 voix de polyphonie, avec glide, unisson et vélocité.</li>
<li>Arpégiateur, séquenceur pas à pas avec accords et enregistrement, gammes et accords sur les touches.</li>
<li>MIDI par USB et TRS sur tous les canaux : pitch bend, molette, expression, pédale de sustain, aftertouch par canal et polyphonique, les quatre macros sur les CC 16 à 19.</li>
<li>La FM-1 devient aussi une interface audio USB : enregistre-la directement dans ton ordinateur.</li>
</ul>
<h2>Le son</h2>
<ul>
<li>44,1 kHz, oscillateurs à bande limitée (polyBLEP), presets de niveau égal.</li>
<li>Effets : distorsion, chorus stéréo, delay synchronisé au tempo, et une réverbération à réseau de retards modulée.</li>
<li>Un éditeur web pour chaque paramètre : tout le patch HYBRID, les banques DX7, ta bibliothèque de sons, les sauvegardes.</li>
</ul>
</section>
<section class="about" data-l="ja">
<h2>エンジン</h2>
<dl class="engines">
<div><dt>HYBRID</dt><dd>Clipper のボイス。3 オシレーター(ノコギリ波、パルス、三角波、フィードバック付きサイン、モーフ、7 本のスーパーソウ、FM、ハードシンク、ウェーブフォルダー、ノイズ)、リングモジュレーション、ドリフト、ドライブ。2 フィルター(LP12、LP24、BP、HP、ノッチ、ピーク)を直列・並列・スプリットで。ボイスごとに 2 エンベロープとテンポ同期できる 2 LFO、16 スロットのマトリクス、4 つのマクロ。</dd></div>
<div><dt>ANALOG</dt><dd>バーチャルアナログ:帯域制限された 2 オシレーター、PWM、ノイズ、ドライブ、レゾナンス付きローパス。</dd></div>
<div><dt>FM6</dt><dd>6 オペレーター FM、32 アルゴリズム。エディタから DX7 の音色(.syx)を読み込めます。</dd></div>
<div><dt>DIGITAL</dt><dd>4 オペレーター FM、8 アルゴリズム:ベル、ベース、エレピ。</dd></div>
<div><dt>PHASE</dt><dd>80 年代の CZ シンセの流れをくむフェイズ・ディストーション。</dd></div>
<div><dt>TRIO</dt><dd>8 ビット・パソコンの音源チップ:3 オシレーター、リングモジュレーション、シンク、マルチモード・フィルター。</dd></div>
<div><dt>LOFI</dt><dd>チップチューン:パルス、三角波、波形メモリ、ピッチスイープ。</dd></div>
<div><dt>WHEEL</dt><dd>9 本のドローバーを持つトーンホイール・オルガン。</dd></div>
<div><dt>VOICE</dt><dd>フォルマント合成:鍵盤で歌う母音。</dd></div>
<div><dt>PHYS</dt><dd>物理モデリング:弦、ベルとバー、ドラムヘッド、共鳴弦(Mutable Instruments Rings と DaisySP より)。</dd></div>
<div><dt>GRAIN</dt><dd>内蔵の楽器と自分のサンプルによるグラニュラー合成。</dd></div>
<div><dt>SAMPLE</dt><dd>マルチサンプルのピアノ、ストリングス、ホーン、フルート、ビブラフォン、ベース、そして自分のサンプル。</dd></div>
<div><dt>NOISE</dt><dd>アナログのヒスからシフトレジスターの金属音まで、レゾナンス・フィルターを通して。</dd></div>
</dl>
<h2>演奏</h2>
<ul>
<li>最大 8 ボイスのポリフォニー、グライド、ユニゾン、ベロシティ。</li>
<li>アルペジエーター、和音と録音に対応したステップシーケンサー、鍵盤上のスケールとコード。</li>
<li>USB と TRS の MIDI(全チャンネル):ピッチベンド、モジュレーション、エクスプレッション、サスティン、チャンネル/ポリ・アフタータッチ、CC 16〜19 の 4 マクロ。</li>
<li>FM-1 は USB オーディオ・インターフェースにもなり、そのままパソコンに録音できます。</li>
</ul>
<h2>サウンド</h2>
<ul>
<li>44.1 kHz、帯域制限オシレーター(polyBLEP)、音量をそろえたプリセット。</li>
<li>エフェクト:ディストーション、ステレオ・コーラス、テンポ同期ディレイ、モジュレーション付き FDN リバーブ。</li>
<li>すべてのパラメーターを編集できるウェブ・エディタ:HYBRID の音色、DX7 バンク、音色ライブラリ、バックアップ。</li>
</ul>
</section>
<hr>
<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">FM-1-transporter</a></p>
<details>
<summary data-t="stockTitle"></summary>
<p class="small" data-t="stockHelp"></p>
<p class="small"><a href="https://www.m-vave.com/download" target="_blank" rel="noopener">www.m-vave.com/download</a></p>
<p class="small" data-t="stockBackup"></p>
<p><a class="ed" href="../editor/" data-t="stockEditor"></a></p>
<p class="small"><label><input id="stock-saved" type="checkbox"> <span data-t="stockSaved"></span></label></p>
<p class="small"><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="back"></p>
</details>
<p class="small"><b>Clipper</b> by 3dSam (<a href="https://github.com/isod89" target="_blank" rel="noopener">isod89</a>), grown from <a href="https://github.com/isod89/sloop-fm1" target="_blank" rel="noopener">SLOOP</a> and based on <a href="https://github.com/hugelton/Felucca" target="_blank" rel="noopener">Felucca</a> by Leo Kuroshita (@kurogedelic), <a href="https://hugelton.com" target="_blank" rel="noopener">Hügelton Instruments</a>.
FM6: msfa / Dexed (Apache-2.0). PHYS: DaisySP and Mutable Instruments Rings (MIT). Supersaw after Adam Szabo's JP-8000 analysis.
Hold OCT− alone while switching on for USB rescue.<br>
Font: Terminus (Dimitar Toshkov Zhekov, SIL OFL 1.1). Samples: Versilian Studios VSCO-2 Community Edition and VCSL (CC0 1.0), and the Hügelton Sample Pack (© Hügelton Instruments, not CC0).<br>
M-VAVE and FM-1 are trademarks of their respective owners; Clipper is not affiliated with them.<br>
<span data-t="license"></span> <a href="https://github.com/hugelton/Felucca" target="_blank" rel="noopener">github.com/hugelton/Felucca</a></p>
</main>
<script type="module">
/*LIB*/
const $ = (id) => document.getElementById(id);
const TEXT = {
ja: {
kicker: "M-VAVE FM-1 のためのシンセサイザー・ファームウェア",
tEng: "音源エンジン", tSnd: "音色、レベル調整済み", tHy: "hybrid:オシレーターとフィルター", tMx: "モジュレーション・スロット",
intro: "FM-1 を USB で接続してください。(Chrome か Edge で使えます)",
warn: "書き込み中は USB を抜かないでください。",
install: "インストール", other: "English",
editor: "エディタ(インストール後、パソコンから音色やシーケンスを編集)",
direct: "USB ケーブルはパソコンに直接つないでください。Probe や Transporter などの機材は不要です。",
brick: "万一インストールに失敗して起動しなくなった場合は、復旧に Transporter が必要です:",
beta: "これはベータ版で、不安定な場合があります。このカスタムファームウェアを使ったことで FM-1 が壊れたり不具合が起きたりしても、作者は一切の責任を負いません。自己責任でお使いください。",
back: "公式ファームウェアに戻すには、M-VAVE 公式のアップデーター M-UPGRADE(Downloads → PC Software → M-UPGRADE)と公式ファームウェア(PC Firmware → FM-1 V15)が必要です。",
nomidi: "このブラウザでは使えません。Chrome か Edge で開いてください。", loadfail: "読み込めませんでした: ",
start: "開始します", verify: "確認中", loader: "書き込みモードに切り替え中", write: "書き込み中",
reboot: "再起動中", done: "完了しました", stopped: "途中で止まりました。USB を挿し直してもう一度押してください。",
error: "エラー: ",
denied: "MIDI(SysEx)の使用が許可されませんでした。アドレスバーのサイト設定で MIDI を許可して、もう一度押してください。",
notfound: "FM-1 が見つかりません。USB ケーブル(データ通信用か)を確かめ、MIDI を使う他のアプリを閉じてから、もう一度押してください。",
model: "接続されている機器は FM-1 ではありません。",
lost: "USB の接続が切れました。挿し直してもう一度押してください。",
noloader: "書き込みモードの FM-1 が見つかりません。USB を挿し直してもう一度押してください(終わるまで書き込みモードのままです)。",
noreturn: "FM-1 が戻ってきません。電源を入れ直してください。",
mismatch: "書き込みは終わりましたが、FM-1 が別のバージョンを報告しています: ",
foreign: "FM-1 は別のファームウェアの書き込みモードです。そのアップデーター(M-UPGRADE)で書き込みを終えてから、もう一度インストールしてください: ",
badpkg: "インストールするファイルが壊れています。ページを再読み込みしてください。",
leave: "書き込み中です。ページを閉じないでください。",
license: "GPL-3.0、無保証。ソース:",
stockTitle: "公式ファームウェア(V15)に戻す",
stockHelp: "M-VAVE のサイトから公式の FM-1 V15 をダウンロードし、中の FM-1.fwsc(変更していないもの)を選んでください。ファイルはこのブラウザの中で確認され、どこにも送られません。",
stockBackup: "公式ファームウェアは Clipper の曲・プロジェクト・サンプルを開けません。先にエディタでバックアップを保存してください(Projects → Backup)。Clipper を入れ直せば、エディタから復元できます。",
stockEditor: "エディタを開いてバックアップする", stockSaved: "バックアップをパソコンに保存しました",
stockFile: "公式の FM-1.fwsc", stockGo: "公式 V15 をインストール",
stockValid: "公式 V15 を確認しました", stockBad: "公式 V15 ではありません: ",
stockConfirm: "FM-1 に公式 V15 をインストールします。Clipper の曲は公式ファームウェアでは開けません。バックアップは保存しましたか?",
stockFinish: "FM-1 は Clipper の書き込みモードです。先に「インストール」で Clipper の書き込みを終えてから、公式 V15 に戻してください。",
back: "M-VAVE のアップデーター M-UPGRADE(Downloads → PC Software)でも戻せます。FM-1 が見つからない場合は、MIDI を使う他のアプリとブラウザのタブを閉じてください。",
},
en: {
kicker: "Synthesizer firmware for the M-VAVE FM-1",
tEng: "synthesis engines", tSnd: "sounds, level-matched", tHy: "hybrid: oscillators + filters", tMx: "modulation matrix slots",
intro: "Connect the FM-1 by USB. (Works in Chrome or Edge.)",
warn: "Do not unplug the USB cable while writing.",
install: "Install", other: "français",
editor: "Editor (after installing: edit sounds and sequences from the computer)",
direct: "Connect the USB cable directly to the computer. No probe or Transporter is needed.",
brick: "If an install fails and the FM-1 no longer starts, recovering it needs a Transporter:",
beta: "This is a beta and may be unstable. 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: "To go back to the official firmware you need M-VAVE's official updater, M-UPGRADE (Downloads → PC Software → M-UPGRADE), and the official firmware (PC Firmware → FM-1 V15).",
nomidi: "This browser cannot do it. Open the page in Chrome or Edge.", loadfail: "Could not load: ",
start: "Starting", verify: "Verifying", loader: "Switching to update mode", write: "Writing",
reboot: "Restarting", done: "Done", stopped: "Stopped. Replug the USB cable and press Install again.",
error: "Error: ",
denied: "MIDI (SysEx) access was not allowed. Allow MIDI in the site settings (address bar) and press Install again.",
notfound: "FM-1 not found. Check the USB cable (a data cable), close other apps that use MIDI, and press Install again.",
model: "The connected device is not an FM-1.",
lost: "The USB connection was lost. Replug it and press Install again.",
noloader: "The FM-1 in update mode was not found. Replug the USB cable and press Install again (it stays in update mode until it is finished).",
noreturn: "The FM-1 did not come back. Power-cycle it.",
mismatch: "Written, but the FM-1 reports another version: ",
foreign: "The FM-1 is in the update mode of another firmware. Finish that update with its own updater (M-UPGRADE), then press Install again: ",
badpkg: "The file to install is damaged. Reload the page.",
leave: "Writing. Do not close the page.",
license: "GPL-3.0, no warranty. Source:",
stockTitle: "Return to the official firmware (V15)",
stockHelp: "Download the official FM-1 V15 from M-VAVE and select the FM-1.fwsc inside it, unmodified. The file is checked in this browser; it is not sent anywhere.",
stockBackup: "The official firmware cannot open Clipper's music, projects or samples. Save a backup with the editor first (Projects → Backup); reinstall Clipper and restore it from the editor whenever you want them back.",
stockEditor: "Open the editor to back up", stockSaved: "I saved a backup on this computer",
stockFile: "The official FM-1.fwsc", stockGo: "Install the official V15",
stockValid: "Official V15 verified", stockBad: "Not the official V15: ",
stockConfirm: "Install the official V15 on the FM-1? The official firmware cannot open Clipper's music. Did you save a backup?",
stockFinish: "The FM-1 is in Clipper's update mode. Press Install to finish the Clipper update first, then return to the official V15.",
back: "M-VAVE's own updater, M-UPGRADE (Downloads → PC Software), works too. If it does not find the FM-1, close every other app and browser tab that uses MIDI.",
},
fr: {
kicker: "Firmware synthétiseur pour la M-VAVE FM-1",
tEng: "moteurs de synthèse", tSnd: "sons, niveaux égalisés", tHy: "hybrid : oscillateurs + filtres", tMx: "slots de modulation",
intro: "Branche la FM-1 en USB. (Fonctionne dans Chrome ou Edge.)",
warn: "Ne débranche pas le câble USB pendant l'écriture.",
install: "Installer", other: "日本語",
editor: "Éditeur (après l'installation : édite les sons et les séquences depuis l'ordinateur)",
direct: "Branche le câble USB directement sur l'ordinateur. Aucune sonde ni Transporter n'est nécessaire.",
brick: "Si une installation échoue et que la FM-1 ne démarre plus, il faut un Transporter pour la récupérer :",
beta: "C'est une version bêta qui peut être instable. L'auteur décline toute responsabilité si ta FM-1 est endommagée ou fonctionne mal à cause de ce firmware personnalisé. Utilise-le à tes risques.",
nomidi: "Ce navigateur ne peut pas le faire. Ouvre la page dans Chrome ou Edge.", loadfail: "Chargement impossible : ",
start: "Démarrage", verify: "Vérification", loader: "Passage en mode mise à jour", write: "Écriture",
reboot: "Redémarrage", done: "Terminé", stopped: "Arrêté. Rebranche le câble USB et appuie de nouveau sur Installer.",
error: "Erreur : ",
denied: "L'accès MIDI (SysEx) a été refusé. Autorise le MIDI dans les paramètres du site (barre d'adresse) et appuie de nouveau sur Installer.",
notfound: "FM-1 introuvable. Vérifie le câble USB (un câble de données), ferme les autres applis qui utilisent le MIDI, et appuie de nouveau sur Installer.",
model: "L'appareil branché n'est pas une FM-1.",
lost: "La connexion USB a été perdue. Rebranche-la et appuie de nouveau sur Installer.",
noloader: "La FM-1 en mode mise à jour est introuvable. Rebranche le câble USB et appuie de nouveau sur Installer (elle reste en mode mise à jour jusqu'à la fin).",
noreturn: "La FM-1 n'est pas revenue. Éteins-la et rallume-la.",
mismatch: "Écrit, mais la FM-1 annonce une autre version : ",
foreign: "La FM-1 est en mode mise à jour d'un autre firmware. Termine cette mise à jour avec son propre outil (M-UPGRADE), puis appuie de nouveau sur Installer : ",
badpkg: "Le fichier à installer est endommagé. Recharge la page.",
leave: "Écriture en cours. Ne ferme pas la page.",
license: "GPL-3.0, sans garantie. Source :",
stockTitle: "Revenir au firmware officiel (V15)",
stockHelp: "Télécharge la FM-1 V15 officielle sur le site de M-VAVE et choisis le FM-1.fwsc qu'elle contient, sans le modifier. Le fichier est vérifié dans ce navigateur ; il n'est envoyé nulle part.",
stockBackup: "Le firmware officiel ne peut pas ouvrir la musique, les projets ni les samples de Clipper. Fais d'abord une sauvegarde avec l'éditeur (Projects → Backup) ; réinstalle Clipper et restaure-la depuis l'éditeur quand tu veux les retrouver.",
stockEditor: "Ouvrir l'éditeur pour sauvegarder", stockSaved: "J'ai enregistré une sauvegarde sur cet ordinateur",
stockFile: "Le FM-1.fwsc officiel", stockGo: "Installer la V15 officielle",
stockValid: "V15 officielle vérifiée", stockBad: "Ce n'est pas la V15 officielle : ",
stockConfirm: "Installer la V15 officielle sur la FM-1 ? Le firmware officiel ne peut pas ouvrir la musique de Clipper. As-tu fait une sauvegarde ?",
stockFinish: "La FM-1 est en mode mise à jour de Clipper. Appuie d'abord sur Installer pour terminer la mise à jour de Clipper, puis reviens à la V15 officielle.",
back: "L'outil de M-VAVE, M-UPGRADE (Downloads → PC Software), fonctionne aussi. S'il ne trouve pas la FM-1, ferme toutes les autres applis et onglets qui utilisent le MIDI.",
},
};
let lang = (navigator.language || "en").toLowerCase().slice(0, 2);
if (!["ja", "fr"].includes(lang)) lang = "en";
const NEXT = { en: "fr", fr: "ja", ja: "en" };
const t = (k) => TEXT[lang][k];
let lastKey = null, lastArg = "";
function applyLang() {
document.documentElement.lang = lang;
document.querySelectorAll("[data-t]").forEach((e) => { e.textContent = t(e.dataset.t); });
document.querySelectorAll("[data-l]").forEach((e) => { e.hidden = e.dataset.l !== lang; });
$("lang").textContent = t("other");
if (lastKey) $("status").textContent = t(lastKey) + lastArg;
}
$("lang").addEventListener("click", () => { lang = NEXT[lang]; applyLang(); });
applyLang();
const sayK = (k, arg = "") => { lastKey = k; lastArg = arg; $("status").textContent = t(k) + arg; };
const say = (txt) => { lastKey = null; $("status").textContent = txt; };
const log = (t) => { $("log").textContent += t + "\n"; };
let image = null;
const meta = /*META*/;
let writing = false, stock = null;
const lockAll = (on) => {
writing = on;
$("go").disabled = on || !image;
$("stock-go").disabled = on || !stock || !$("stock-saved").checked;
$("stock-file").disabled = on;
};
window.addEventListener("beforeunload", (e) => { if (writing) { e.preventDefault(); e.returnValue = t("leave"); } });
(async () => {
if (!navigator.requestMIDIAccess) { sayK("nomidi"); return; }
try {
const r = await fetch(meta.pkg);
if (!r.ok) throw new Error(`${meta.pkg}: HTTP ${r.status}`);
const pkg = new Uint8Array(await r.arrayBuffer());
if (productOf(pkg) !== meta.product) { sayK("badpkg"); return; }
if (meta.sha256 && self.crypto && crypto.subtle) { /* a damaged download is never offered (the loader checks its CRC too) */
const h = [...new Uint8Array(await crypto.subtle.digest("SHA-256", pkg))].map((b) => b.toString(16).padStart(2, "0")).join("");
if (h !== meta.sha256) { sayK("badpkg"); log(`sha256 ${h}, expected ${meta.sha256}`); return; }
}
image = logicalImage(pkg);
say(`Clipper ${meta.version}`);
lockAll(writing);
} catch (e) { sayK("loadfail", e.message); }
})();
const total = 74 + 1179; /* reads: step 1, step 2 (head + app area, SLOOP 2.0 loader) */
const step = (k, a) => {
log(`${k} ${a ?? ""}`);
if (k === "start") sayK("start");
if (k === "verify") { sayK("verify"); $("bar").value = Math.min(100, (a / total) * 100); }
if (k === "loader") sayK("loader");
if (k === "write") { sayK("write"); $("bar").value = Math.min(100, ((74 + a) / total) * 100); }
if (k === "reboot") sayK("reboot");
if (k === "done") { $("bar").value = 100; sayK("done"); }
};
const failed = (e) => {
if (e && e.code && TEXT[lang][e.code]) sayK(e.code, e.detail || "");
else sayK("error", e && e.message);
log(String(e && e.stack || e));
};
$("go").addEventListener("click", async () => {
if (writing) return;
lockAll(true);
let midi;
try { midi = await navigator.requestMIDIAccess({ sysex: true }); }
catch (e) { sayK("denied"); lockAll(false); return; }
try {
const up = new Updater(midi, log);
const ota = await up.find((id) => /^ota-/i.test(id.model));
if (ota) {
ota.link.close();
sayK((await up.resume(image, step)) ? "done" : "stopped");
} else {
await up.install(image, meta.product, step);
}
} catch (e) { failed(e); }
lockAll(false);
});
/* back to the official V15 (after Felucca 1.0): only the exact official file, a backup first (the editor),
through the same update path as M-UPGRADE; a device left in the official updater's mode is finished */
$("stock-saved").addEventListener("change", () => lockAll(writing));
$("stock-file").addEventListener("change", async () => {
const f = $("stock-file").files[0];
stock = null;
lockAll(writing);
if (!f) return;
try { stock = await validateStockPackage(new Uint8Array(await f.arrayBuffer())); sayK("stockValid"); }
catch (e) { sayK("stockBad", e.message); }
lockAll(writing);
});
$("stock-go").addEventListener("click", async () => {
if (writing || !stock || !$("stock-saved").checked || !confirm(t("stockConfirm"))) return;
lockAll(true);
let midi;
try { midi = await navigator.requestMIDIAccess({ sysex: true }); }
catch (e) { sayK("denied"); lockAll(false); return; }
try {
const up = new Updater(midi, log);
const ota = await up.find((id) => /^ota-/i.test(id.model));
if (ota) {
ota.link.close();
if (OUR_LOADER(ota.id)) sayK("stockFinish"); /* Clipper's loader: finish Clipper first (Install) */
else sayK((await up.resume(stock.image, step, { product: stock.product })) ? "done" : "stopped");
} else {
await up.install(stock.image, stock.product, step);
}
} catch (e) { failed(e); }
lockAll(false);
});
</script>
</body>
</html>