Clipper 0.9 launch prep: GRAIN/SAMPLE sources, sound pass, new logo, docs and editor
- GRAIN and SAMPLE play out of the box: four synthesized sources of Clipper's own (VOX, GLASS, PAD, AIR; tools/gen_clipper_sets.py, ~25 KB ADPCM), 10 GRAIN and 4 SAMPLE presets, levelled; SET/SRC 0..3 stay the user's slots - Sound pass over every preset: DIGITAL's FM index capped below Nyquist and interpolated per sample (no aliasing noise, no step on mono retrigger), CLAV tamed, the master EQ's shelf corners glide; clean_test covers SAMPLE/GRAIN and checks that FLANG/CHOR come in (a 0.9 bug: they never did while sounding) - Fixed: a SLOOP 2.6 project read MOD SEQ/SPICE values past its INSERT's - New logo: a clipper under sail in the line of SLOOP's (boot splash, installer, editor, README) - Editor: device page grouping for Clipper, LAYER card, MORPH slider, per-type INSERT labels, TURNG labels, layout test against params.c - Docs: README at-a-glance, FR "En bref", BUILDING (Windows, samples, tests), installer page rewritten (23 engines, 409 sounds) in en/fr/ja - Goldens: DIGITAL renders updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RDUenQzjQ4Kk2jQVG85bwq
No files matched your search
@@ -10,11 +10,14 @@ The build makes three files in `build/`:
|
||||
|
||||
## Windows (WSL)
|
||||
|
||||
`INSTALL-CLIPPER.bat` builds in a WSL distribution and opens the installer on
|
||||
`http://localhost:8766/webapp/installer/`. It needs Python 3 with Pillow on Windows, a WSL
|
||||
distribution with the JieLi toolchain, and the three SDK files (below) in `build/deps/ac79`.
|
||||
Set `SLOOP_WSL_DISTRO` (default `Ubuntu`) and `SLOOP_TOOLCHAIN` (a Linux path, default
|
||||
`/root/.jieli/toolchain`) if yours differ.
|
||||
`INSTALL-CLIPPER.bat` (`INSTALL-CLIPPER.bat 12` or `16` for more voices) runs `build-clipper.ps1`:
|
||||
it builds in the WSL distribution `MinUI-Build` with the JieLi toolchain at
|
||||
`/root/fm1-codex-deps/jieli/toolchain` (SLOOP's setup; edit the `build_windows.py` line of
|
||||
`build-clipper.ps1` if yours differ), makes the site and opens the installer on
|
||||
`http://localhost:8767/webapp/installer/` (SLOOP uses 8766). It needs Python 3 with Pillow on
|
||||
Windows and the three SDK files (below) in `build/deps/ac79`: the first run copies them from a
|
||||
SLOOP folder next to this one (`..\sloop-fm1`, `..\SLOOP`) or from `CLIPPER_SDK`.
|
||||
`OPEN-EDITOR.bat` serves the editor of the last build on the same port.
|
||||
|
||||
## Prerequisites (macOS)
|
||||
|
||||
@@ -64,10 +67,11 @@ Build options (environment, `0` or `1`; defaults in `firmware/src/felucca.c`):
|
||||
|
||||
## Samples
|
||||
|
||||
The CC0 instrument samples that the SAMPLE engine uses are in `assets/samples-cc0/`
|
||||
(Versilian Studios, see `ATTRIBUTION.txt` there). `tools/fetch_cc0.py` downloads them
|
||||
again from the source repositories. Without that folder the build still works and the
|
||||
SAMPLE engine has only the generated drum kit.
|
||||
The Clipper synth (`CLIPPER_SYNTH 1`, the default) has no built-in samples: SAMPLE and GRAIN
|
||||
play the four user slots sent from the editor, and the flash goes to synthesis. The CC0
|
||||
instrument and drum samples in `assets/samples-cc0/` (Versilian Studios VSCO-2 CE and VCSL,
|
||||
Sonic Pi for SCRCH: see `ATTRIBUTION.txt` there) are only built into the groovebox
|
||||
(`CLIPPER_SYNTH 0`, which the tests use).
|
||||
|
||||
## Tests
|
||||
|
||||
@@ -76,12 +80,16 @@ tests/run_tests.sh
|
||||
```
|
||||
|
||||
Runs the host tests (flash storage, user presets, MIDI parser, update entry, update
|
||||
loader, a DSP render, the 4-track mix, project formats, the SLICER, the regression suite,
|
||||
the command-line installer) and, with Node.js, the web page tests. Run it after `./build.sh`
|
||||
loader, every synth engine and page, the modulation matrix, the MOD SEQ, the filter models,
|
||||
VINTAGE, the tunings, the arpeggiator, both cores, a click test of the whole mix, project
|
||||
formats, the groovebox's 4-track mix, the regression suite, the command-line installer)
|
||||
and, with Node.js, the web page tests. `HOST_ONLY=1` skips what needs the JieLi toolchain. Run it after `./build.sh`
|
||||
(it uses `build/` and needs `AC79_SDK` set as for the build).
|
||||
|
||||
The regression suite (`tests/regress.c`) renders every engine and preset and compares a
|
||||
hash of each render with `tests/golden.txt`; it also checks levels, voices and the CPU
|
||||
The regression suite (`tests/regress.c`, built as the groovebox, `CLIPPER_SYNTH 0`) renders
|
||||
each of its 13 engines and their presets and compares a hash of each render with
|
||||
`tests/golden.txt` (the synth's own engines and presets have their own tests: `synth*_test`,
|
||||
`hybrid_test`, `wave_test`, `clean_test`...); it also checks levels, voices and the CPU
|
||||
cost (`tests/cpu_baseline.txt`, `tests/target_budget.txt`). The host CPU cost is relative
|
||||
to the idle + drums mix, counted by the kernel on macOS and under callgrind on Linux when
|
||||
valgrind is installed (exact, about 45 s more); without either it is timed, a rough check.
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
# Clipper — démarrage rapide (version de test 0.9)
|
||||
|
||||
**Clipper** est un firmware de **synthétiseur** pour le M-VAVE FM-1 : un seul instrument, comme le firmware d'origine, Felucca ou Baudgirl. Ce n'est plus une groovebox : pas de pistes, pas de boîte à rythmes, pas de mode song, pas de samples intégrés. Il garde de SLOOP les 12 moteurs, les effets, l'arpégiateur, le séquenceur de pas, l'audio USB et le MIDI. Il ajoute **HYBRID**, une voix à 3 oscillateurs, 2 filtres et une matrice de modulation de 16 slots, avec 24 sons d'usine. Il ajoute aussi le pitch bend, la molette, l'aftertouch et la pédale de sustain sur tous les moteurs.
|
||||
**Clipper** est un firmware de **synthétiseur** pour le M-VAVE FM-1 : un seul instrument, comme le firmware d'origine, Felucca ou Baudgirl. Ce n'est plus une groovebox : pas de pistes, pas de boîte à rythmes, pas de mode song, pas de samples intégrés. Il garde de SLOOP les 12 moteurs, les effets, l'arpégiateur, le séquenceur de pas, l'audio USB et le MIDI. Il ajoute **HYBRID**, une voix à 3 oscillateurs, 2 filtres et une matrice de modulation de 16 slots, avec 32 sons d'usine. Il ajoute aussi le pitch bend, la molette, l'aftertouch et la pédale de sustain sur tous les moteurs.
|
||||
|
||||
> **C'est une première version de test** : elle n'a encore jamais tourné sur une vraie FM-1. Avant d'installer, fais une **sauvegarde** dans l'éditeur SLOOP (Projects → Backup → *Save a backup*).
|
||||
> **C'est une version de test.** Avant d'installer, fais une **sauvegarde** dans l'éditeur (celui de Clipper ou de SLOOP, selon ce qui est installé) : Projects → Backup → *Save a backup*.
|
||||
|
||||
## En bref
|
||||
|
||||
**23 moteurs, 409 sons**, tous au même niveau :
|
||||
|
||||
- **HYBRID** (3 oscillateurs, 2 filtres, matrice de 16 slots, 4 macros), **FMX** (6 opérateurs façon opsix, routage libre, PM / FM / RING), **FM6** (DX7, banques `.syx`), **DIGITAL** (FM 4 opérateurs), **WAVE** (tables d'ondes, et les tiennes), **WSEQ** (wave sequencing façon Wavestation), **VECTOR** (Prophet VS / joystick du Wavestation), **JUNO** (Juno-6 / 60 / 106 et son chorus I / II / I+II), **ANALOG** (analogique virtuel, 8 modèles de filtre), **ACID** (303), **STRINGS** (string machine), **MACRO** (façon Plaits), **PHASE** (façon CZ), **VPS** (vector phaseshaping), **TERRAIN** (wave terrain), **PHYS** (modèles physiques), **TRIO** (puce 8 bits), **LOFI** (chiptune), **WHEEL** (orgue à roues phoniques), **VOICE** (voyelles chantées), **NOISE**, **GRAIN** et **SAMPLE** (sur quatre sources synthétisées de Clipper, VOX, GLASS, PAD et AIR, ou sur tes propres samples).
|
||||
- **Sculpter le son** (tous les moteurs) : une **matrice de modulation** de 6 slots, **LFO 2**, **ENV 2**, le **MOD SEQ** (séquenceur de modulation à 4 pistes), **8 modèles de filtre** sur ANALOG, WAVE et VECTOR (SVF, ladder Moog, MS-20, ladder à diodes, SEM, notch, passe-bande, passe-haut), **VINTAGE** (chaque voix dérive comme sur un vrai polyphonique analogique), un effet **INSERT** par son (SOFT, HARD, FOLD, FUZZ, CRUSH, PHASER, FLANGER, CHORUS et le chorus JUNO).
|
||||
- **Effets** : distorsion, chorus stéréo, delay synchronisé, réverbs room et plate, filtre DJ, EQ 3 bandes, compresseur de bus et limiteur. Les réglages glissent au lieu de claquer.
|
||||
- **Accordage** : égal, juste, Pythagore, mésotonique, Werckmeister III, Kirnberger III, maqams Rast et Bayati, slendro, pelog, 19 / 24 / 31-EDO, et toute gamme **Scala `.scl`** envoyée depuis l'éditeur.
|
||||
- **Jouer** : 8 voix (12 ou 16 en option, sur les deux cœurs), POLY, MONO, LEGATO, UNISON et unisson polyphonique, glide ; **LAYER**, **SPLIT** et **MULTI** (deux parties sur deux canaux MIDI) ; un **arpégiateur** à 15 modes, dont une **machine de Turing** (TURNG), et les variations **SPICE / DICE** ; le séquenceur de pas avec accords et enregistrement ; gammes et accords sur les touches, KBD HOLD ; **MPE** ; MIDI USB et TRS ; interface audio USB.
|
||||
- **Travailler** : **UNDO** et **COMPARE** sur la FM-1, favoris, **MORPH** entre deux versions d'un son, **randomiseur** par section, presets utilisateur et projets qui gardent tout.
|
||||
- **L'éditeur web** (Chrome ou Edge) : chaque paramètre en direct, les patchs HYBRID et FMX en entier, les pistes du MOD SEQ, l'accordage et les fichiers `.scl`, les banques DX7, tables d'ondes et samples, une bibliothèque de sons, des outils undo / compare / A-B / random, la sauvegarde complète de la FM-1.
|
||||
|
||||
## Un dossier à part
|
||||
|
||||
@@ -30,8 +42,11 @@ Sur la FM-1, Clipper se reconnaît à son écran de démarrage et à HOME (maint
|
||||
- **VINTAGE** (VOICE 2 → **VINTG**, tous les moteurs) : chaque voix a sa propre petite erreur d'accord et de filtre (sa « carte de voix »), une lente dérive de hauteur, et chaque note un peu de la sienne. À 127 : carte ±6 cents, dérive ±5, note ±2, coupure ±1,5 pas. À 0 : identique à avant, au bit près.
|
||||
- **TUNING** (GLO → **TUNING**, pour tous les sons, gardé avec les réglages) : **EQUAL**, **JUST** (intonation juste), **PYTHA**gore, **MEANT**one (1/4 de comma), **WERCK**meister III, **KIRNB**erger III, les maqams **RAST** et **BAYAT**i (tierces neutres), **SLEND**ro et **PELOG** (gamelan), **19**, **24** et **31-EDO**, et **USER** : n'importe quelle gamme **Scala .scl** (jusqu'à 48 notes par période, n'importe quelle période, même la tritave de Bohlen-Pierce) envoyée depuis l'éditeur web. ROOT choisit la tonique.
|
||||
- **TURNG**, une machine de Turing dans l'arpégiateur (ARP MODE → TURNG, d'après la Turing Machine de Music Thing) : un registre à décalage en boucle choisit parmi les notes tenues. Sur la page SPICE : **MUTAT** (0 figé, 127 aléatoire), **SEED** (un autre motif), **LOOP** (longueur 1..16). LOOP fixe aussi sur combien de notes SPICE / DICE varient avant de se répéter.
|
||||
- **Un son propre, sans clics** (un nouveau test de 45 cas rend chaque changement et vérifie qu'aucun échantillon ne saute) : le limiteur de sortie bouge en courbe en S ; les envois (CHOR / DLY / REV) et la DIST de l'INSERT glissent au lieu de sauter ; le TIME du delay passe en fondu de l'ancienne à la nouvelle prise ; la DEPTH du chorus glisse ; le FILT du master passe par le milieu entre LP et HP ; FLANG / CHOR de l'INSERT attendent que leur ligne soit pleine ; une table WAVE, un patch FMX ou un modèle de filtre changés sur une note tenue font un creux et reviennent.
|
||||
- **3 nouveaux sons** (TURING JUNO, MS20 VECTOR, DIODE VS BASS). **395 sons, 23 moteurs.**
|
||||
- **Un son propre, sans clics** (un nouveau test de 46 cas rend chaque changement et vérifie qu'aucun échantillon ne saute) : le limiteur de sortie bouge en courbe en S ; les envois (CHOR / DLY / REV) et la DIST de l'INSERT glissent au lieu de sauter ; le TIME du delay passe en fondu de l'ancienne à la nouvelle prise ; la DEPTH du chorus glisse ; le FILT du master passe par le milieu entre LP et HP ; FLANG / CHOR de l'INSERT attendent que leur ligne soit pleine ; une table WAVE, un patch FMX ou un modèle de filtre changés sur une note tenue font un creux et reviennent.
|
||||
- **GRAIN et SAMPLE sonnent dès l'installation** : quatre sources propres à Clipper, synthétisées (aucun enregistrement, 25 Ko de flash) : **VOX** (un petit chœur qui s'ouvre de « ou » à « a » : le POS de GRAIN parcourt la voyelle), **GLASS** (un harmonica de verre), **PAD** (sept dents de scie, le filtre qui s'ouvre), **AIR** (du souffle sur les harmoniques de la note). Dix sons GRAIN (VOX CLOUD, VOWEL DRIFT, ANGEL HALO, GLASS RAIN, CRYSTAL SWELL, FROZEN PAD, DARK DRONE, SCAN PAD, WIND CHOIR, BREATH GRAIN) et quatre SAMPLE (SAMPLE CHOIR, GLASS HARP, SAW ENSEMBLE, AIR FLUTE). SET / SRC 0 à 3 restent tes emplacements USR1 à USR4 ; les sources viennent après.
|
||||
- **17 nouveaux sons** (ceux-là, TURING JUNO, MS20 VECTOR, DIODE VS BASS). **409 sons, 23 moteurs.**
|
||||
- **Une passe sur tous les sons** (chacun rendu, mesuré et son spectre regardé) : la FM de DIGITAL ne se replie plus en bruit dans les aigus (son index tenu sous la limite de Nyquist, et qui glisse dans chaque bloc : plus de marche quand une basse mono redéclenche) ; CLAV moins agressif ; les plateaux de l'EQ master font glisser leur fréquence aussi.
|
||||
- **Un nouveau logo** : un clipper sous voiles, dans la ligne de celui de SLOOP (sa voile devient quatre, une par couleur de piste), sur l'écran de démarrage, l'installeur, l'éditeur et ici.
|
||||
- **Corrigé** : un projet SLOOP 2.6 chargé dans Clipper lisait ses valeurs MOD SEQ / SPICE au-delà de celles de son INSERT (maintenant leurs valeurs par défaut).
|
||||
- **L'éditeur web** (protocole 14) : une carte **Tuning** (système, tonique, charger un .scl) et les nouveaux réglages.
|
||||
|
||||
@@ -125,7 +140,7 @@ Tous deux proposés dans les discussions de Felucca (#145, #146) comme des faço
|
||||
| **HOME** | L'écran du synthé : le nom du son, sa famille, son numéro dans la liste, le moteur et un oscilloscope. Les 4 knobs règlent les contrôles principaux du son. |
|
||||
| **PRESETS** | Tous les sons, un par un. |
|
||||
| **ALGORITHM** | Saute à la famille suivante (PAD, BASS, LEAD, PLCK, KEYS, STAB, FX…). |
|
||||
| **FX, EDIT, ARP, GLO, SAVE** | Un appui ouvre les pages. Bouton maintenu, le clavier joue toujours. Pages FX : FX, FILTER (avec MODL), DLY, REVERB, CHORUS. |
|
||||
| **FX, EDIT, ARP, GLO, SAVE** | Un appui ouvre les pages. Bouton maintenu, le clavier joue toujours. Pages FX : FX, FILTER (avec MODL, le modèle de filtre), INSERT, INSERT 2, DLY, REVERB, CHORUS, EQ+COMP. Pages GLO : GLOBAL (tempo, swing, métronome, accord fin), MASTER, **TUNING** (l'accordage), SYSTEM (MIDI, synchro, CPU / LATE / PEAK). |
|
||||
| **SEQ, SEL** | Maintenus : SEQ montre les 16 pas sur les touches, SEL la tonalité et les accords. Un appui ouvre leurs pages. |
|
||||
| **REC** | Enregistre ce que tu joues dans le pattern. REC maintenu efface le pattern. |
|
||||
| **MIDI** | Omni : tous les canaux jouent le synthé. |
|
||||
@@ -134,7 +149,7 @@ Un projet de SLOOP se charge avec seulement sa première piste.
|
||||
|
||||
## 3. Jouer HYBRID
|
||||
|
||||
- Tourne **PRESETS** (ou **ALGORITHM** pour changer de famille). Les sons HYBRID sont rangés dans les familles : **CLIPPER**, POLY PAD, STRINGS, VOX, GLASS PAD et DRONE (PAD) ; ACID, WOBBLE, REESE, FOLD BASS et 808 SUB (BASS) ; SYNC LEAD, HOOVER, CHIP LEAD et TRANCE (LEAD) ; PLUCK, SAW PLUCK, FM BELL, SPACE BEL et METAL (PLCK) ; FM KEYS (KEYS) ; BRASS (STAB) ; RISER et INIT (FX).
|
||||
- Tourne **PRESETS** (ou **ALGORITHM** pour changer de famille). Les sons HYBRID sont rangés dans les familles : **CLIPPER**, POLY PAD, STRINGS, VOX, GLASS PAD et DRONE (PAD) ; ACID, WOBBLE, REESE, FOLD BASS et 808 SUB (BASS) ; SYNC LEAD, HOOVER, CHIP LEAD et TRANCE (LEAD) ; PLUCK, SAW PLUCK, FM BELL, SPACE BEL et METAL (PLCK) ; FM KEYS (KEYS) ; BRASS (STAB) ; RISER et INIT (FX) ; et aussi MOOG BASS, MOOG LEAD, LADDER PAD, CLIP WIDE, DARK PAD, ACID HARD, BRIGHT BEL et SOFT SYNC.
|
||||
- Sur **HOME**, les 4 knobs règlent **CUT**, **RES**, **M1** et **M2**.
|
||||
- Page **EDIT** : CUT, RES, FENV (décalages sur les deux filtres), **PTCH** (le patch d'usine), et **M1 à M4**, quatre macros dont chaque patch choisit l'effet. Par exemple, sur CLIPPER, M1 ouvre le filtre et M2 élargit les supersaws.
|
||||
- Avec un clavier MIDI : pitch bend, molette (vibrato sur plusieurs patchs), aftertouch, sustain, et M1 à M4 sur les CC 16 à 19.
|
||||
@@ -149,6 +164,8 @@ Les autres boutons du panneau :
|
||||
|
||||
Un projet garde le PTCH, mais pas le patch modifié : exporte-le pour le garder.
|
||||
|
||||
Les autres panneaux de l'onglet **Sound** : **FMX patch** (les six opérateurs, le routage en grille, STORE dans la banque, fichiers `.clipper-fmx.json`), **FM6** (les banques DX7 `.syx`), **MOD SEQ** (les quatre pistes à dessiner), **Tuning** (le système, la tonique, charger une gamme `.scl`), **Sound tools** (undo / redo, comparer, A / B, randomiser, ce qui a changé, l'enveloppe dessinée). Les onglets **Library**, **Samples** (samples et tables d'ondes) et **Projects** (sauvegarde complète) complètent.
|
||||
|
||||
Pour essayer l'éditeur sans la FM-1, ouvre `web/editor.html?mock=1` dans Chrome.
|
||||
|
||||
## 5. Le test dont j'ai besoin : les deux cœurs et la charge processeur
|
||||
@@ -161,9 +178,11 @@ C'est ce qui décide combien de voix Clipper peut jouer. La FM-1 doit être bran
|
||||
4. Refais avec **POLY PAD**, **TRANCE**, un son **FMX** (FMX EP) et **ENSEMBLE** (STRINGS).
|
||||
5. Si PEAK reste sous ~70 % et LATE ne monte pas, ferme la fenêtre, puis lance **`INSTALL-CLIPPER.bat 12`** (12 voix) et refais la mesure avec 12 notes. Si ça tient encore, essaie **`INSTALL-CLIPPER.bat 16`**.
|
||||
|
||||
Pour la 0.9, refais aussi la mesure avec **VINTAGE** à 127 et le filtre en **MOOG** ou **DIODE** sur un son ANALOG (8 notes), et tourne les réglages pendant qu'un accord est tenu (MODL, les envois, TIME du delay, INSERT FLANG / CHOR) : aucun clic ne doit s'entendre.
|
||||
|
||||
Envoie-moi les chiffres (avec et sans 2ND CORE). Signale aussi un son qui craque, une note qui reste coincée, un écran **FELUCCA CRASH** (prends-le en photo : il reste 10 s) ou un écran bizarre.
|
||||
|
||||
## Revenir en arrière
|
||||
|
||||
- **Vers SLOOP** : lance `INSTALL-SLOOP.bat` depuis le dossier de SLOOP. Un son réglé sur HYBRID y jouera un autre moteur.
|
||||
- **Vers le firmware officiel** : passe par la page d'installation (« back to the official V15 »), après avoir fait une sauvegarde.
|
||||
- **Vers le firmware officiel** : passe par la page d'installation (« Revenir au firmware officiel (V15) »), après avoir fait une sauvegarde.
|
||||
@@ -7,9 +7,50 @@ Free and open source (GPL-3.0). It grew out of <a href="https://github.com/isod8
|
||||
|
||||
---
|
||||
|
||||
> **Status: 0.9, test build.** Install it at your own risk, and keep a backup made with the editor. You can go back to SLOOP or to the official V15 from the installer page.
|
||||
> **Status: 0.9, test build.** Install it at your own risk, and keep a backup made with the editor. You can go back to the official V15 from the installer page, or to SLOOP with its own `INSTALL-SLOOP.bat`.
|
||||
|
||||
SLOOP is a groovebox. **Clipper is a synthesizer** with 23 engines and 395 sounds, one instrument (two in MULTI) like the original FM-1 firmware, Felucca and Baudgirl's FM-1+VA. It has no tracks, no drum machine, no song mode and no built-in samples. It keeps SLOOP's 12 sound engines, effects, arpeggiator, step sequencer, USB audio and MIDI, and adds **HYBRID**: one voice built from three oscillators, two filters and a modulation matrix, with the whole patch editable in the browser.
|
||||
SLOOP is a groovebox. **Clipper is a synthesizer** with 23 engines and 409 sounds, one instrument (two in MULTI) like the original FM-1 firmware, Felucca and Baudgirl's FM-1+VA. It has no tracks, no drum machine, no song mode and no built-in samples. It keeps SLOOP's 12 sound engines, effects, arpeggiator, step sequencer, USB audio and MIDI, and adds **HYBRID**: one voice built from three oscillators, two filters and a modulation matrix, with the whole patch editable in the browser.
|
||||
|
||||
## At a glance
|
||||
|
||||
**23 engines, 409 sounds**, every one level-matched through the synth's own output chain:
|
||||
|
||||
| Engine | What it is |
|
||||
| --- | --- |
|
||||
| **HYBRID** | The Clipper voice: three oscillators (saw, pulse, tri, sine with feedback, morph, a seven-saw supersaw, FM, hard sync, wavefolder, noise), ring, drift, drive; two filters (LP12, LP24, a Moog ladder, BP, HP, notch, peak) in series, parallel or split; two envelopes and two tempo-synced LFOs per voice, a 16-slot matrix, four macros. |
|
||||
| **FMX** | Six operators after the Korg opsix: each its own wave (10) and mode (PM, true FM, RING), any routing with an amount per connection, 40 templates, a pitch envelope; it also plays the DX7 voices of the bank. |
|
||||
| **FM6** | DX7-style six-operator FM, 32 algorithms; loads DX7 banks (`.syx`) from the editor. |
|
||||
| **DIGITAL** | Four-operator FM, eight algorithms: electric pianos, bells, basses. |
|
||||
| **WAVE** | Wavetables: 16 tables of 16 frames, band-limited per octave, and your own (Serum-style WAV) in four user slots. |
|
||||
| **WSEQ** | Wave sequencing after the Korg Wavestation: 16 sequences of waves, pitches and levels at the song's tempo, crossfaded. |
|
||||
| **VECTOR** | Vector synthesis after the Prophet VS and the Wavestation's joystick: four waves at the corners, X / Y and paths that move by themselves. |
|
||||
| **JUNO** | The Juno-6 / 60 / 106 idea: DCO saw, pulse with PWM, sub, noise, the four-position HPF, a 24 dB ladder and the stereo BBD chorus I, II, I+II. |
|
||||
| **ANALOG** | Virtual analog: two band-limited oscillators, PWM, noise, drive, and eight filter models (below). |
|
||||
| **ACID** | A 303-style bass line: ladder, accent and its sweep, slides. |
|
||||
| **STRINGS** | A 1970s string machine: 16', 8', 4' registers through a three-line ensemble. |
|
||||
| **MACRO** | Four macro-oscillators in the spirit of Mutable Instruments Plaits: CHORD, SWARM, ADDITIVE, SPEECH, with a low-pass gate. |
|
||||
| **PHASE** | Phase distortion, CZ style. |
|
||||
| **VPS** | Vector phaseshaping (Kleimola et al., DAFx 2011): phase-distorted waves to formant sweeps, alias-free. |
|
||||
| **TERRAIN** | Wave terrain synthesis: an orbit over eight surfaces, slowly drifting timbres. |
|
||||
| **PHYS** | Physical models: plucked strings, bars and bells, drum heads, sympathetic strings (after Mutable Instruments Rings and DaisySP). |
|
||||
| **TRIO** | The 8-bit home computer sound chip: three oscillators, ring, sync, a multimode filter. |
|
||||
| **LOFI** | Chiptune: pulses, triangle, wave RAM, pitch sweeps. |
|
||||
| **WHEEL** | A tonewheel organ with nine drawbars. |
|
||||
| **VOICE** | Formant synthesis: sung vowels. |
|
||||
| **NOISE** | From analog hiss to metallic shift-register tones, through a resonant filter. |
|
||||
| **GRAIN** / **SAMPLE** | Granular clouds and sampled instruments: on four sources of Clipper's own (VOX, a small choir opening "oo" to "ah"; GLASS, a glass harmonica; PAD, seven saws whose filter opens; AIR, breath on the note's harmonics), synthesized, not recorded, or on your own samples (four slots, sent from the editor). |
|
||||
|
||||
**Shaping the sound** (every engine): a six-slot **modulation matrix** (LFO 1 and 2, ENV 1 and 2, velocity, key, mod wheel, aftertouch, random, MPE slide, the **MOD SEQ**'s four lanes) onto pitch, cutoff, shape, amp, pan, LFO 2's rate and the engine's own eight values; **LFO 2**, **ENV 2**; the **MOD SEQ**, a four-lane modulation sequencer; **eight filter models** on ANALOG, WAVE and VECTOR (SVF, Moog ladder, MS-20, diode ladder, SEM, notch, band-pass, high-pass); **VINTAGE** (each voice drifts and differs, like an analog poly); an **INSERT** effect per sound (SOFT, HARD, FOLD, FUZZ, CRUSH, PHASER, FLANGER, CHORUS, and the JUNO chorus).
|
||||
|
||||
**Effects**: distortion, stereo chorus, tempo-synced delay, room and plate reverbs (after Dattorro), a DJ filter, a master three-band EQ, a bus compressor and a look-ahead limiter. Changes glide instead of clicking.
|
||||
|
||||
**Tuning**: equal, just, Pythagorean, meantone, Werckmeister III, Kirnberger III, the maqams Rast and Bayati, slendro, pelog, 19 / 24 / 31-EDO, and any **Scala `.scl`** scale from the editor.
|
||||
|
||||
**Playing**: 8 voices (12 or 16 as a build option, on both processor cores); POLY, MONO, LEGATO, UNISON and poly unison (2 or 4 voices a note), glide; **LAYER**, **SPLIT** and **MULTI** (two parts on two MIDI channels); an **arpeggiator** with 15 modes, a **Turing machine** (TURNG) among them, and **SPICE / DICE** variations; a step sequencer with chords and recording; scales and chords on the keys, KBD HOLD; **MPE**; MIDI over USB and TRS (pitch bend, mod wheel, expression, sustain, channel and polyphonic aftertouch, macros on CC 16 to 19); the FM-1 is a USB audio interface too.
|
||||
|
||||
**Working**: **UNDO** and **COMPARE** on the FM-1, favourites, **MORPH** between two versions of a sound, a **randomizer** by section, user presets and projects that keep everything above.
|
||||
|
||||
**The web editor** (Chrome or Edge, nothing to install): every parameter live; the whole HYBRID and FMX patches; the MOD SEQ's lanes; the tuning and `.scl` files; DX7 banks; wavetables and samples; a sound library, undo / compare / A-B / randomize tools; backups of the whole FM-1.
|
||||
|
||||
## New in 0.9: filter models, VINTAGE, microtuning, a Turing machine, and a clean sound
|
||||
|
||||
@@ -17,8 +58,11 @@ SLOOP is a groovebox. **Clipper is a synthesizer** with 23 engines and 395 sound
|
||||
- **VINTAGE** (VOICE 2 → **VINTG**, every engine): the voices of an analog poly are never quite alike. Each voice gets its own small tuning error and filter offset (its "voice card", fixed), a slow random drift of its pitch, and each note a little of its own. At 127: the card ±6 cents, the drift ±5, the note ±2, the cutoff ±1.5 steps. 0: bit for bit as before.
|
||||
- **TUNING** (GLO → **TUNING**, for every sound, kept with the settings): **EQUAL**, **JUST** (5-limit), **PYTHA**gorean, **MEANT**one (1/4 comma), **WERCK**meister III, **KIRNB**erger III, the maqams **RAST** and **BAYAT**i (neutral thirds), the gamelan's **SLEND**ro and **PELOG**, **19**, **24** and **31-EDO**, and **USER**: any **Scala .scl** scale (up to 48 notes per period, any period: Bohlen-Pierce's tritave too) sent from the web editor. ROOT sets the tonic. A glide moves through the scale.
|
||||
- **TURNG**, a Turing machine in the arpeggiator (ARP MODE → TURNG, after Music Thing's Turing Machine): a looping shift register picks among the held notes. On the SPICE page, **MUTAT** is how often a bit flips (0 locked, 127 random), **SEED** another pattern, **LOOP** its length (1..16). **LOOP** also sets how many notes SPICE / DICE vary before repeating.
|
||||
- **A clean sound, no clicks** (a new test, 45 cases, renders every change and checks that no sample jumps): the master limiter's gain now moves on an S-curve; the sends (CHOR / DLY / REV) and the INSERT's DIST glide instead of jumping; the delay's TIME cross-fades the old and new tap; the chorus DEPTH glides; the master FILT goes through the middle when it crosses from LP to HP; FLANG / CHOR in the INSERT wait for their line to fill; a WAVE table, an FMX patch or a filter model changed under a held note dips and comes back.
|
||||
- **3 new sounds** (TURING JUNO, MS20 VECTOR, DIODE VS BASS), and VINTAGE on a few JUNO pads. **395 sounds, 23 engines.**
|
||||
- **A clean sound, no clicks** (a new test, 46 cases, renders every change and checks that no sample jumps): the master limiter's gain now moves on an S-curve; the sends (CHOR / DLY / REV) and the INSERT's DIST glide instead of jumping; the delay's TIME cross-fades the old and new tap; the chorus DEPTH glides; the master FILT goes through the middle when it crosses from LP to HP; FLANG / CHOR in the INSERT wait for their line to fill; a WAVE table, an FMX patch or a filter model changed under a held note dips and comes back.
|
||||
- **GRAIN and SAMPLE play out of the box**: four sources of Clipper's own, synthesized (no recording, 25 KB of flash): **VOX** (a small choir, "oo" opening to "ah": GRAIN's POS scans the vowel), **GLASS** (a glass harmonica), **PAD** (seven saws, the filter opening), **AIR** (breath on the note's harmonics). Ten GRAIN sounds (VOX CLOUD, VOWEL DRIFT, ANGEL HALO, GLASS RAIN, CRYSTAL SWELL, FROZEN PAD, DARK DRONE, SCAN PAD, WIND CHOIR, BREATH GRAIN) and four SAMPLE ones (SAMPLE CHOIR, GLASS HARP, SAW ENSEMBLE, AIR FLUTE). SET / SRC 0..3 are still your slots USR1..USR4; the sources come after.
|
||||
- **17 new sounds** (those, TURING JUNO, MS20 VECTOR, DIODE VS BASS), and VINTAGE on a few JUNO pads. **409 sounds, 23 engines.**
|
||||
- **A sound pass over every preset** (each one rendered, measured and its spectrum looked at): DIGITAL's FM no longer folds back as noise on high notes (its index held under the Nyquist limit, and gliding through each block: no step when a mono bass retriggers); CLAV less harsh; the master EQ's shelves glide their corners too.
|
||||
- **A new logo**: a clipper under sail, in the line of SLOOP's (its one sail becomes four, one per track colour), on the boot screen, the installer, the editor and here.
|
||||
- **Fixed**: a SLOOP 2.6 project loaded on Clipper read its MOD SEQ / SPICE values from past the end of its INSERT's (now their defaults).
|
||||
- **The web editor** (protocol 14): a **Tuning** card (system, root, load a .scl), and the new knobs (VINTG, LOOP, MODL's models, TURNG).
|
||||
|
||||
@@ -111,7 +155,8 @@ Both suggested in the Felucca discussions ([#145](https://github.com/hugelton/Fe
|
||||
| --- | --- |
|
||||
| **HOME** | The synth screen: the sound's name, its family, its number in the list, the engine and a live scope. The four knobs play the sound's main controls (for HYBRID: CUT, RES, M1, M2). |
|
||||
| **PRESETS** | Every sound, one by one, factory and user presets. |
|
||||
| **FX pages** | FX (sends), FILTER (the sound's DJ filter and MODL), DLY, REVERB, CHORUS. |
|
||||
| **FX pages** | FX (sends), FILTER (the sound's DJ filter and MODL, the filter model), INSERT, DLY, REVERB, CHORUS, EQ+COMP. |
|
||||
| **GLO pages** | GLOBAL (tempo, swing, CLICK the metronome, fine tune), MASTER (DUST, the master FILT), **TUNING** (the system and its root, for every sound), SYSTEM (MIDI, sync, and the CPU / LATE / PEAK readout). |
|
||||
| **ALGORITHM** | Jumps to the next family: PAD, BASS, LEAD, PLCK, KEYS, STAB, FX and the rest. |
|
||||
| **FX, EDIT, ARP, GLO, SAVE** | A tap opens the pages. While one of them is held, the keys still play, so you can hold EDIT and play. |
|
||||
| **SEQ, SEL** | Held, they are the two layers a synth needs: SEQ shows the 16 steps on the keys, SEL the key and the chords. A tap opens their pages. |
|
||||
@@ -131,7 +176,7 @@ A SLOOP project loads with only its first track playing. The four-track groovebo
|
||||
| **Matrix** | 16 slots of *source × via × amount → destination*. Sources: ENV2, ENV3, AENV, LFO1-3, velocity, key, mod wheel, aftertouch (channel or per note), bend, expression, a random value per note, the macros M1-M4. Destinations: pitch (all or per oscillator), shapes, levels, ring, cutoff (both or each), resonances, drive, amplitude, the LFO rates, filter balance. |
|
||||
| **On the FM-1** | EDIT shows CUT, RES and FENV (offsets on both filters), PTCH (the factory patch), and M1-M4: four macros whose effect each patch decides. |
|
||||
| **In the editor** | Every value above, live while you play. Patches export and import as `.clipper.json`. |
|
||||
| **24 factory patches** | CLIPPER, POLY PAD, STRINGS, ACID, SYNC LEAD, FM BELL, FM KEYS, WOBBLE, REESE, HOOVER, BRASS, VOX, PLUCK, RISER, METAL, FOLD BASS, CHIP LEAD, GLASS PAD, DRONE, 808 SUB, TRANCE, SAW PLUCK, SPACE BEL, INIT. They are level-matched with the other 153 sounds and sorted into the PRESETS list by kind. |
|
||||
| **27 factory patches, 32 sounds** | CLIPPER, POLY PAD, STRINGS, ACID, SYNC LEAD, FM BELL, FM KEYS, WOBBLE, REESE, HOOVER, BRASS, VOX, PLUCK, RISER, METAL, FOLD BASS, CHIP LEAD, GLASS PAD, DRONE, 808 SUB, TRANCE, SAW PLUCK, SPACE BEL, INIT, MOOG BASS, MOOG LEAD, LADDER PAD; five more sounds play them with their own macros (CLIP WIDE, DARK PAD, ACID HARD, BRIGHT BEL, SOFT SYNC). They are level-matched with every other sound and sorted into the PRESETS list by kind. |
|
||||
|
||||
## Playing it from a controller (new in Clipper, every engine)
|
||||
|
||||
@@ -149,7 +194,7 @@ The voices are a build option: 8 (the default, as SLOOP), 12 or 16 (`INSTALL-CLI
|
||||
|
||||
## Tests
|
||||
|
||||
`HOST_ONLY=1 tests/run_tests.sh` runs everything that does not need the JieLi toolchain (0.9: the filter models, VINTAGE, the TUNING, TURNG, and the click test of 45 cases; 0.8: JUNO and its chorus, VECTOR, the MOD SEQ, SPICE / DICE, their pages; 0.7: the voices on both cores in every mode of the host double of core 1, and under ThreadSanitizer; UNDO, COMPARE, FAV, KBD HOLD): the synth mode (HOME, presets, keys, pages, one instrument, MIDI omni), the HYBRID tests (the pitch of every oscillator, the filters, the matrix, the controllers, 300 random patches, the cost per voice), the editor's commands, golden renders of every sound, ASan and UBSan, a soak test, and the web pages.
|
||||
`HOST_ONLY=1 tests/run_tests.sh` runs everything that does not need the JieLi toolchain (0.9: the filter models, VINTAGE, the TUNING, TURNG, and the click test of 46 cases; 0.8: JUNO and its chorus, VECTOR, the MOD SEQ, SPICE / DICE, their pages; 0.7: the voices on both cores in every mode of the host double of core 1, and under ThreadSanitizer; UNDO, COMPARE, FAV, KBD HOLD): the synth mode (HOME, presets, keys, pages, one instrument, MIDI omni), the HYBRID tests (the pitch of every oscillator, the filters, the matrix, the controllers, 300 random patches, the cost per voice), the editor's commands, golden renders of every sound, ASan and UBSan, a soak test, and the web pages.
|
||||
|
||||
## Credits
|
||||
|
||||
@@ -157,6 +202,7 @@ The voices are a build option: 8 (the default, as SLOOP), 12 or 16 (`INSTALL-CLI
|
||||
- **The second core** (0.7): its HAL (`firmware/hal/fm1_cpu1.{h,S}`) is Charles Vestal's ([X0X](https://github.com/charlesvestal/fm1-x0x)), after Kerem Kilic's [Melodee](https://github.com/keremimo/melodee); brought to SLOOP by Andre Rezemini ([sloop-lab](https://github.com/andrerezemini/sloop-lab), `cpu1.c`, `tests/cpu1_host.c`); 2.7.1's hold with the bus traps off after Felucca 1.6.1. Clipper's voice split is its own.
|
||||
- **Knob acceleration, LEVEL / PAN glide** (0.7): after [JIANT FM](https://github.com/juanjiant-bit/JIANT) by juanjiant-bit, through SLOOP 2.7.
|
||||
- **[SLOOP](https://github.com/isod89/sloop-fm1)** by 3dSam: everything Clipper starts from. Its manuals are in [docs/sloop](docs/sloop/).
|
||||
- Ideas, not code: the JUNO after Roland's Juno-6 / 60 / 106, VECTOR after the Sequential Prophet VS and the Korg Wavestation, FMX after the Korg opsix, WSEQ after the Wavestation, MACRO after Mutable Instruments Plaits, the filter models after the Korg MS-20, the Oberheim SEM and the diode ladders, TURNG after Music Thing Modular's Turing Machine, SPICE / DICE after the Arturia MicroFreak; `.scl` is Manuel Op de Coul's Scala format. All of it is Clipper's own code.
|
||||
- The supersaw follows Adam Szabo's analysis of the JP-8000. The FM6 engine is msfa (Dexed), and PHYS comes from DaisySP and Mutable Instruments Rings: see [LICENSING.md](LICENSING.md).
|
||||
|
||||
M-VAVE and FM-1 are trademarks of their respective owners. Clipper is not affiliated with them.
|
||||
M-VAVE, FM-1 and the other product names in this file are trademarks of their respective owners. Clipper is not affiliated with them.
|
||||
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"name": "VOX",
|
||||
"file": "vox.wav",
|
||||
"rate": 16000,
|
||||
"root": 57,
|
||||
"ls": 7360,
|
||||
"le": 14719
|
||||
},
|
||||
{
|
||||
"name": "GLASS",
|
||||
"file": "glass.wav",
|
||||
"rate": 16000,
|
||||
"root": 72,
|
||||
"ls": 5767,
|
||||
"le": 12799
|
||||
},
|
||||
{
|
||||
"name": "PAD",
|
||||
"file": "pad.wav",
|
||||
"rate": 16000,
|
||||
"root": 60,
|
||||
"ls": 7216,
|
||||
"le": 13119
|
||||
},
|
||||
{
|
||||
"name": "AIR",
|
||||
"file": "air.wav",
|
||||
"rate": 16000,
|
||||
"root": 72,
|
||||
"ls": 2976,
|
||||
"le": 9919
|
||||
}
|
||||
]
|
||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 40 KiB |
@@ -1,19 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="240" height="240" role="img" aria-label="Clipper">
|
||||
<rect width="240" height="240" fill="#000"/>
|
||||
<path d="M49.29 190.71 A100.00 100.00 0 1 1 190.71 190.71" fill="none" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="74.00" y1="60.00" x2="74.00" y2="170.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="57.00,139.00 91.00,139.00 93.00,158.00 55.00,158.00" fill="#FF621A"/>
|
||||
<polygon points="59.50,115.00 88.50,115.00 90.50,134.00 57.50,134.00" fill="#FFC618"/>
|
||||
<polygon points="62.00,91.00 86.00,91.00 88.00,110.00 60.00,110.00" fill="#1ECC70"/>
|
||||
<line x1="120.00" y1="34.00" x2="120.00" y2="170.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="103.00,132.50 137.00,132.50 139.00,158.00 101.00,158.00" fill="#FF621A"/>
|
||||
<polygon points="105.50,102.00 134.50,102.00 136.50,127.50 103.50,127.50" fill="#FFC618"/>
|
||||
<polygon points="108.00,71.50 132.00,71.50 134.00,97.00 106.00,97.00" fill="#1ECC70"/>
|
||||
<polygon points="110.50,41.00 129.50,41.00 131.50,66.50 108.50,66.50" fill="#287CFF"/>
|
||||
<line x1="166.00" y1="60.00" x2="166.00" y2="170.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="149.00,139.00 183.00,139.00 185.00,158.00 147.00,158.00" fill="#FF621A"/>
|
||||
<polygon points="151.50,115.00 180.50,115.00 182.50,134.00 149.50,134.00" fill="#FFC618"/>
|
||||
<polygon points="154.00,91.00 178.00,91.00 180.00,110.00 152.00,110.00" fill="#1ECC70"/>
|
||||
<line x1="68.00" y1="176.00" x2="172.00" y2="176.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="82.00" y1="190.00" x2="158.00" y2="190.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<line x1="91.32" y1="171.00" x2="94.76" y2="71.24" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="125.72" y1="171.00" x2="129.16" y2="52.32" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="158.40" y1="171.00" x2="161.84" y2="76.40" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<polygon points="99.92,78.12 100.75,86.96 101.91,95.71 103.40,104.36 105.23,112.93 107.38,121.40 109.87,129.78 112.69,138.08 115.84,146.27 119.33,154.38 123.14,162.40 97.34,162.40" fill="#FFC618"/>
|
||||
<polygon points="134.32,59.20 135.49,69.91 136.99,80.53 138.82,91.06 140.99,101.51 143.49,111.88 146.32,122.15 149.48,132.34 152.98,142.45 156.82,152.47 160.98,162.40 131.74,162.40" fill="#1ECC70"/>
|
||||
<polygon points="167.00,83.28 167.66,91.60 168.64,99.83 169.96,107.96 171.62,116.01 173.60,123.97 175.92,131.83 178.56,139.61 181.54,147.30 184.86,154.89 188.50,162.40 164.42,162.40" fill="#287CFF"/>
|
||||
<polygon points="88.74,81.56 88.74,162.40 46.60,158.96 51.63,151.66 56.48,144.27 61.15,136.78 65.63,129.18 69.94,121.49 74.06,113.70 78.00,105.82 81.76,97.83 85.34,89.74" fill="#FF621A"/>
|
||||
<line x1="63.80" y1="165.84" x2="41.44" y2="157.24" stroke="#F2F2F2" stroke-width="5" stroke-linecap="round"/>
|
||||
<polygon points="48.32,162.40 62.56,163.79 76.81,165.05 91.07,166.16 105.33,167.14 119.61,167.99 133.89,168.69 148.17,169.26 162.47,169.69 176.77,169.98 191.08,170.14 185.92,182.18 174.76,183.14 163.59,183.97 152.42,184.66 141.25,185.21 130.07,185.62 118.89,185.89 107.70,186.03 96.51,186.03 85.32,185.89 74.12,185.62" fill="#F2F2F2"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 61 KiB |
@@ -1,21 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 761 260" width="761" height="260" role="img" aria-label="Clipper">
|
||||
<rect width="761" height="260" fill="#000"/>
|
||||
<path d="M59.29 200.71 A100.00 100.00 0 1 1 200.71 200.71" fill="none" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="84.00" y1="70.00" x2="84.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="67.00,149.00 101.00,149.00 103.00,168.00 65.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="69.50,125.00 98.50,125.00 100.50,144.00 67.50,144.00" fill="#FFC618"/>
|
||||
<polygon points="72.00,101.00 96.00,101.00 98.00,120.00 70.00,120.00" fill="#1ECC70"/>
|
||||
<line x1="130.00" y1="44.00" x2="130.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="113.00,142.50 147.00,142.50 149.00,168.00 111.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="115.50,112.00 144.50,112.00 146.50,137.50 113.50,137.50" fill="#FFC618"/>
|
||||
<polygon points="118.00,81.50 142.00,81.50 144.00,107.00 116.00,107.00" fill="#1ECC70"/>
|
||||
<polygon points="120.50,51.00 139.50,51.00 141.50,76.50 118.50,76.50" fill="#287CFF"/>
|
||||
<line x1="176.00" y1="70.00" x2="176.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="159.00,149.00 193.00,149.00 195.00,168.00 157.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="161.50,125.00 190.50,125.00 192.50,144.00 159.50,144.00" fill="#FFC618"/>
|
||||
<polygon points="164.00,101.00 188.00,101.00 190.00,120.00 162.00,120.00" fill="#1ECC70"/>
|
||||
<line x1="78.00" y1="186.00" x2="182.00" y2="186.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="92.00" y1="200.00" x2="168.00" y2="200.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<line x1="101.32" y1="181.00" x2="104.76" y2="81.24" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="135.72" y1="181.00" x2="139.16" y2="62.32" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="168.40" y1="181.00" x2="171.84" y2="86.40" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<polygon points="109.92,88.12 110.75,96.96 111.91,105.71 113.40,114.36 115.23,122.93 117.38,131.40 119.87,139.78 122.69,148.08 125.84,156.27 129.33,164.38 133.14,172.40 107.34,172.40" fill="#FFC618"/>
|
||||
<polygon points="144.32,69.20 145.49,79.91 146.99,90.53 148.82,101.06 150.99,111.51 153.49,121.88 156.32,132.15 159.48,142.34 162.98,152.45 166.82,162.47 170.98,172.40 141.74,172.40" fill="#1ECC70"/>
|
||||
<polygon points="177.00,93.28 177.66,101.60 178.64,109.83 179.96,117.96 181.62,126.01 183.60,133.97 185.92,141.83 188.56,149.61 191.54,157.30 194.86,164.89 198.50,172.40 174.42,172.40" fill="#287CFF"/>
|
||||
<polygon points="98.74,91.56 98.74,172.40 56.60,168.96 61.63,161.66 66.48,154.27 71.15,146.78 75.63,139.18 79.94,131.49 84.06,123.70 88.00,115.82 91.76,107.83 95.34,99.74" fill="#FF621A"/>
|
||||
<line x1="73.80" y1="175.84" x2="51.44" y2="167.24" stroke="#F2F2F2" stroke-width="5" stroke-linecap="round"/>
|
||||
<polygon points="58.32,172.40 72.56,173.79 86.81,175.05 101.07,176.16 115.33,177.14 129.61,177.99 143.89,178.69 158.17,179.26 172.47,179.69 186.77,179.98 201.08,180.14 195.92,192.18 184.76,193.14 173.59,193.97 162.42,194.66 151.25,195.21 140.07,195.62 128.89,195.89 117.70,196.03 106.51,196.03 95.32,195.89 84.12,195.62" fill="#F2F2F2"/>
|
||||
<path d="M328.98 149.28 A30.00 30.00 0 1 1 328.98 110.72" fill="none" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="364.00" y1="68.00" x2="364.00" y2="160.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="392.00" y1="100.00" x2="392.00" y2="160.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |
@@ -69,10 +69,11 @@ static const uint16_t BUS_HI_K[25] = {5395, 5997, 6660, 7388, 8187, 9062, 10018,
|
||||
static struct {
|
||||
int32_t lo[2], hi[2], m1[2], m2[2]; /* the states, << 8 */
|
||||
int32_t gl, gm, gh; /* the band gains now (10^(dB/20) - 1, Q12 << 4) */
|
||||
int32_t kl, kh; /* (0.9) the shelves' corners now (they glide too) */
|
||||
int32_t env; /* the compressor's detector (Q15 peak, << 8) */
|
||||
int32_t gc; /* its gain now, Q14 */
|
||||
uint8_t eq_on;
|
||||
} bus = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, 0, 0, 0, 0, 16384, 0};
|
||||
} bus = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, 0, 0, 0, 0, 0, 0, 16384, 0};
|
||||
|
||||
/* a TPT one-pole low-pass (k = g / (1 + g), Q16) of x; the state << 8 */
|
||||
static inline int32_t bus_lp(int32_t x8, int32_t *s, int32_t k)
|
||||
@@ -89,7 +90,7 @@ static void bus_eq(int32_t *l, int32_t *r, uint32_t n)
|
||||
int32_t dl = bus_db(song.g[G_EQLOW], EQ_LOW_C), dm = bus_db(song.g[G_EQMID], EQ_MID_C),
|
||||
dh = bus_db(song.g[G_EQHIGH], EQ_HIGH_C);
|
||||
int32_t tl = BUS_DB[dl] << 4, tm = BUS_DB[dm] << 4, th = BUS_DB[dh] << 4, kl = BUS_LO_K[dl], kh = BUS_HI_K[dh];
|
||||
int32_t gl0 = bus.gl, gm0 = bus.gm, gh0 = bus.gh, gl1, gm1, gh1;
|
||||
int32_t gl0 = bus.gl, gm0 = bus.gm, gh0 = bus.gh, gl1, gm1, gh1, kl0, kh0;
|
||||
uint32_t i, c;
|
||||
if (!tl && !tm && !th && !bus.gl && !bus.gm && !bus.gh) {
|
||||
if (bus.eq_on) { /* flat: off, the states cleared for the next time */
|
||||
@@ -99,6 +100,8 @@ static void bus_eq(int32_t *l, int32_t *r, uint32_t n)
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!bus.eq_on) /* (coming on: the corners from where they go) */
|
||||
bus.kl = BUS_LO_K[dl], bus.kh = BUS_HI_K[dh];
|
||||
bus.eq_on = 1;
|
||||
/* the gains glide: an eighth of the way a block (~6 ms), the last step exact */
|
||||
gl1 = bus.gl = gl0 + ((tl - gl0) >> 3) + (tl > gl0 ? 1 : tl < gl0 ? -1 : 0);
|
||||
@@ -108,6 +111,11 @@ static void bus_eq(int32_t *l, int32_t *r, uint32_t n)
|
||||
kl = gl1 < 0 ? BUS_LO_K[11] : BUS_LO_K[13];
|
||||
if ((gh0 < 0) != (gh1 < 0) && gh1)
|
||||
kh = gh1 < 0 ? BUS_HI_K[11] : BUS_HI_K[13];
|
||||
/* (0.9) the corners glide as the gains do, sample by sample: a corner that jumped with a 12 dB turn moved the
|
||||
* shelf's output at once (a click on a pad) */
|
||||
kl0 = bus.kl, kh0 = bus.kh;
|
||||
bus.kl = kl0 + ((kl - kl0) >> 3) + (kl > kl0 ? 1 : kl < kl0 ? -1 : 0);
|
||||
bus.kh = kh0 + ((kh - kh0) >> 3) + (kh > kh0 ? 1 : kh < kh0 ? -1 : 0);
|
||||
for (c = 0; c < 2u; c++) {
|
||||
int32_t *x = c ? r : l;
|
||||
for (i = 0; i < n; i++) {
|
||||
@@ -115,8 +123,8 @@ static void bus_eq(int32_t *l, int32_t *r, uint32_t n)
|
||||
int32_t g_l = gl0 + (((gl1 - gl0) * (int32_t)i) >> CTL_LOG2);
|
||||
int32_t g_m = gm0 + (((gm1 - gm0) * (int32_t)i) >> CTL_LOG2);
|
||||
int32_t g_h = gh0 + (((gh1 - gh0) * (int32_t)i) >> CTL_LOG2);
|
||||
lo = bus_lp(s8, &bus.lo[c], kl) >> 8;
|
||||
hp = s - (bus_lp(s8, &bus.hi[c], kh) >> 8);
|
||||
lo = bus_lp(s8, &bus.lo[c], kl0 + (((bus.kl - kl0) * (int32_t)i) >> CTL_LOG2)) >> 8;
|
||||
hp = s - (bus_lp(s8, &bus.hi[c], kh0 + (((bus.kh - kh0) * (int32_t)i) >> CTL_LOG2)) >> 8);
|
||||
v3 = s8 - bus.m2[c];
|
||||
v1 = (int32_t)(((int64_t)BUS_A1 * bus.m1[c] + (int64_t)BUS_A2 * v3) >> 16);
|
||||
v2 = bus.m2[c] + (int32_t)(((int64_t)BUS_A2 * bus.m1[c] + (int64_t)BUS_A3 * v3) >> 16);
|
||||
|
||||
@@ -16,6 +16,7 @@ static void digital_note_on(track_t *t, voice_t *v)
|
||||
v->s[7] = 0; /* op 4 phase */
|
||||
v->s[4] = 1 << 24; /* modulator envelope, Q24 */
|
||||
v->s[5] = v->s[6] = 0; /* feedback history */
|
||||
v->s[3] = -1; /* the index of the block before (-1: none, a new note) */
|
||||
}
|
||||
|
||||
/* operator increment = carrier * ratio (Q8) without 32-bit overflow; kept below Nyquist */
|
||||
@@ -34,21 +35,48 @@ static void digital_render(track_t *t, voice_t *v, int32_t *out, uint32_t n, con
|
||||
uint32_t i1 = m->inc;
|
||||
uint32_t i2 = fm_ratio_inc(m->inc, RATIO_Q8[p[P_E1] % 15]), i3 = fm_ratio_inc(m->inc, RATIO_Q8[p[P_E2] % 15]);
|
||||
uint32_t i4 = fm_ratio_inc(m->inc, RATIO_Q8[p[P_E3] % 15]);
|
||||
int32_t me, idx, fb = p[P_E6], fb1, fb2; /* fb1, fb2: op 4 feedback history */
|
||||
int32_t me, idx, fb = p[P_E6], fb1, fb2, didx, idq; /* fb1, fb2: op 4 feedback history */
|
||||
uint32_t ph0, ph1, ph2, ph4;
|
||||
/* modulator envelope: decays (MODDEC) towards 25 %, per block */
|
||||
v->s[4] += mulq16((1 << 22) - v->s[4], ENV_EXP[p[P_E5] & 127]);
|
||||
me = v->s[4] >> 9; /* Q15 */
|
||||
idx = (p[P_E4] * me) >> 15; /* 0..127 */
|
||||
idx = clamp(idx + ((m->cutoff + m->shape - (64 << 8)) >> 8) + (v->vel - 96) / 4, 0, 127);
|
||||
{ /* (Clipper 0.9) anti-aliasing: the index held where the sidebands (Carson: (index + 1) x the modulator)
|
||||
* would pass ~16 kHz, from the fastest operator that modulates in this algorithm; a high note gets a
|
||||
* little less bright instead of folding back as noise */
|
||||
static const uint8_t MODS[8] = {14, 14, 14, 14, 10, 8, 8, 0}; /* bit 1: op 2, 2: op 3, 3: op 4 */
|
||||
uint32_t mk = MODS[alg], im = 0, fm;
|
||||
if (mk & 2u)
|
||||
im = i2;
|
||||
if ((mk & 4u) && i3 > im)
|
||||
im = i3;
|
||||
if ((mk & 8u) && i4 > im)
|
||||
im = i4;
|
||||
fm = ((im >> 16) * 44100u) >> 16; /* Hz */
|
||||
if (fm > 0u) {
|
||||
int32_t cap = (int32_t)(161760u / fm) - 10; /* 16 kHz / fm - 1, in index steps (0.0989 rad) */
|
||||
idx = idx < cap ? idx : (cap > 0 ? cap : 0);
|
||||
}
|
||||
}
|
||||
{ /* (0.9) the index glides through the block from the last one: a new modulator envelope (a retriggered
|
||||
* mono bass) or a fast decay no longer steps the waveform at the block's edge */
|
||||
int32_t i0 = v->s[3] < 0 ? idx : v->s[3];
|
||||
v->s[3] = idx;
|
||||
idx = i0;
|
||||
didx = ((v->s[3] - i0) * 2048) / (int32_t)(n ? n : 1u); /* Q11 per sample */
|
||||
}
|
||||
ph0 = v->ph[0]; /* state in locals: out[] may alias v->s[] */
|
||||
ph1 = v->ph[1];
|
||||
ph2 = v->ph[2];
|
||||
ph4 = (uint32_t)v->s[7];
|
||||
fb1 = v->s[5];
|
||||
fb2 = v->s[6];
|
||||
idq = idx << 11;
|
||||
for (i = 0; i < n; i++) {
|
||||
int32_t o1, o2, o3, o4, s;
|
||||
idx = idq >> 11;
|
||||
idq += didx;
|
||||
o4 = sine_i((ph4 + digital_mod((fb1 + fb2) >> 1, fb)));
|
||||
fb2 = fb1;
|
||||
fb1 = o4;
|
||||
@@ -117,7 +145,7 @@ static const preset_t DIGITAL_PRESETS[] = {
|
||||
{"RHODES", {4, 1, 1, 14, 26, 35, 0, 0}, {0, 85, 35, 55}, 0, 0, FX(0, 30, 12, 26), XP(P_LD_AMP + 1, 26, P_LRATE + 1, 84)},
|
||||
{"DX RHODES", {4, 1, 1, 14, 85, 45, 0, 0}, {0, 82, 40, 55}, 0, 0, FX(0, 45, 20, 30)},
|
||||
{"WURLI", {4, 1, 2, 3, 62, 35, 8, 0}, {0, 75, 30, 45}, 0, 0, FX(10, 20, 10, 20), XP(P_LD_AMP + 1, 16, P_LRATE + 1, 89)},
|
||||
{"CLAV", {3, 1, 3, 5, 90, 25, 20, 0}, {0, 58, 34, 18}, 0, 0, FX(10, 10, 6, 10)},
|
||||
{"CLAV", {3, 1, 3, 5, 84, 25, 7, 0}, {0, 58, 34, 18}, 0, 0, FX(10, 10, 6, 10)},
|
||||
/* house piano: bright, fast hammer, the tine stack for the attack */
|
||||
{"M1 PIANO", {4, 1, 2, 13, 74, 30, 12, 0}, {0, 86, 30, 48}, 0, 0, FX(0, 24, 14, 26)},
|
||||
/* afro house / amapiano: round keys with a bell on top */
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
* (gr_p, in the pool section); per voice s[0] the zone, s[1] the countdown to the next grain,
|
||||
* s[2] the low-pass, voice_t's phases are unused. */
|
||||
#define GR_POLY 3 /* voices per part */
|
||||
#if CLIPPER_SYNTH
|
||||
#define GR_OUT_SH 2 /* (0.9) Clipper: +6 dB, its clouds as loud as its other pads within the trims */
|
||||
#else
|
||||
#define GR_OUT_SH 1
|
||||
#endif
|
||||
#define GR_NG 12 /* grains per part */
|
||||
#define GR_SEG_LOG2 8
|
||||
#define GR_SEG (1u << GR_SEG_LOG2) /* seek index interval, source samples */
|
||||
@@ -99,14 +104,14 @@ typedef struct {
|
||||
} gr_part_t;
|
||||
/* (its state: the part's engine arena, engines.c eng_arena_of) */
|
||||
|
||||
static uint32_t gr_nz(uint32_t src) { return src < SMP_NSETS ? SMP_SETS[src].nz : usr_nz[(src - SMP_NSETS) % SMP_USER_SLOTS]; }
|
||||
static uint32_t gr_nz(uint32_t src) { return SMP_IS_SET(src) ? SMP_SETS[SMP_SET_OF(src)].nz : usr_nz[SMP_USR_OF(src) % SMP_USER_SLOTS]; }
|
||||
static const smp_zone_t *gr_zone(uint32_t src, uint32_t zl)
|
||||
{
|
||||
return src < SMP_NSETS ? &SMP_ZONES[SMP_SETS[src].z0 + zl] : &usr_zone[(src - SMP_NSETS) % SMP_USER_SLOTS][zl & 15u];
|
||||
return SMP_IS_SET(src) ? &SMP_ZONES[SMP_SETS[SMP_SET_OF(src)].z0 + zl] : &usr_zone[SMP_USR_OF(src) % SMP_USER_SLOTS][zl & 15u];
|
||||
}
|
||||
static uint32_t gr_stamp(uint32_t src)
|
||||
{
|
||||
return src < SMP_NSETS ? 0u : usr_nz[(src - SMP_NSETS) % SMP_USER_SLOTS] ? smp_user_gen : 0xFFFFFFFFu;
|
||||
return SMP_IS_SET(src) ? 0u : usr_nz[SMP_USR_OF(src) % SMP_USER_SLOTS] ? smp_user_gen : 0xFFFFFFFFu;
|
||||
}
|
||||
static inline uint32_t gr_rnd(gr_part_t *P) { return noise32(&P->rng); }
|
||||
static inline uint32_t gr_scale(uint32_t n, uint32_t f16) { return (n >> 16) * f16 + (((n & 0xFFFFu) * f16) >> 16); }
|
||||
@@ -132,7 +137,7 @@ static inline int32_t gr_dec(const smp_zone_t *z, uint32_t pos, int32_t *pred, i
|
||||
static int32_t gr_find(uint32_t src, uint32_t note)
|
||||
{
|
||||
uint32_t i, nz = gr_nz(src);
|
||||
int32_t zl = src < SMP_NSETS ? 0 : -1;
|
||||
int32_t zl = SMP_IS_SET(src) ? 0 : -1;
|
||||
for (i = 0; i < nz && i < GR_MAXZ; i++) {
|
||||
const smp_zone_t *z = gr_zone(src, i);
|
||||
if (note >= z->lo && note <= z->hi)
|
||||
@@ -414,13 +419,29 @@ static void grain_render(track_t *t, voice_t *v, int32_t *out, uint32_t n, const
|
||||
lp = 4000 + ((clamp((p[P_E7] << 8) + m->cutoff, 0, 127 << 8) * 28767) >> 15);
|
||||
for (i = 0; i < n; i++) {
|
||||
y += mulq15(clamp(clamp(acc[i], -65535, 65535) - y, -65535, 65535), lp);
|
||||
out[i] += mulq15(mulq15(y, amp_at(m, i)), VOICE_FS) << 1;
|
||||
out[i] += mulq15(mulq15(y, amp_at(m, i)), VOICE_FS) << GR_OUT_SH;
|
||||
}
|
||||
v->s[2] = y;
|
||||
}
|
||||
|
||||
#if CLIPPER_SYNTH /* Clipper: no built-in samples: a cloud of the user's slot 1 */
|
||||
#if CLIPPER_SYNTH
|
||||
/* Clipper (0.9): clouds of its own synthesized sources (SRC 4 VOX: "oo" opening to "ah", 5 GLASS: a glass harmonica,
|
||||
* 6 PAD: seven saws, the filter opening, 7 AIR: breath on the note's harmonics; tools/gen_clipper_sets.py), then the
|
||||
* user's slot 1 (SRC 0..3: USR1..USR4). POS moves through each source: LFO DEST SHP scans it */
|
||||
static const preset_t GRAIN_PRESETS[] = {
|
||||
/* name, {SRC, POS, SIZE, DENS, PTCH, SPRD, RAND, TONE}, {A D S R}, fenv, mono, sends */
|
||||
{"VOX CLOUD", {4, 85, 96, 92, 0, 30, 8, 96}, {70, 100, 120, 95}, 0, 0, FX(0, 40, 18, 72)},
|
||||
{"VOWEL DRIFT", {4, 34, 104, 86, 0, 18, 5, 100}, {80, 100, 124, 100}, 0, 0, FX(0, 34, 22, 74),
|
||||
.x = {P_LD_SHP + 1, 44, P_LRATE + 1, 24, P_LWAVE + 1, 1}},
|
||||
{"ANGEL HALO", {4, 90, 72, 108, 12, 56, 12, 108}, {90, 100, 127, 108}, 0, 0, FX(0, 52, 30, 92)},
|
||||
{"GLASS RAIN", {5, 18, 30, 86, 0, 104, 30, 118}, {6, 100, 120, 96}, 0, 0, FX(0, 22, 46, 74)},
|
||||
{"CRYSTAL SWELL", {5, 96, 110, 100, 12, 14, 4, 112}, {96, 100, 127, 104}, 0, 0, FX(0, 36, 24, 84)},
|
||||
{"FROZEN PAD", {6, 108, 127, 127, 0, 4, 0, 100}, {80, 100, 127, 100}, 0, 0, FX(0, 50, 14, 70)},
|
||||
{"DARK DRONE", {6, 14, 116, 90, -12, 24, 18, 64}, {100, 100, 127, 110}, 0, 0, FX(0, 30, 14, 82)},
|
||||
{"SCAN PAD", {6, 60, 100, 96, 0, 12, 6, 104}, {70, 100, 124, 96}, 0, 0, FX(0, 46, 20, 70),
|
||||
.x = {P_LD_SHP + 1, 52, P_LRATE + 1, 20, P_LWAVE + 1, 1}},
|
||||
{"WIND CHOIR", {7, 60, 100, 96, 0, 44, 10, 100}, {84, 100, 124, 100}, 0, 0, FX(0, 40, 24, 86)},
|
||||
{"BREATH GRAIN", {7, 50, 26, 94, 0, 110, 40, 110}, {10, 100, 120, 90}, 0, 0, FX(0, 20, 40, 72)},
|
||||
{"USER GRAIN", {0, 40, 100, 90, 0, 30, 12, 80}, {70, 100, 120, 95}, 0, 0, FX(0, 50, 20, 75)},
|
||||
};
|
||||
#else
|
||||
|
||||
@@ -58,10 +58,19 @@ typedef struct {
|
||||
} smp_user_hdr_t; /* 32 + 16 x 28 = 480 B, data at +512 */
|
||||
static smp_zone_t usr_zone[SMP_USER_SLOTS][16]; /* RAM copy, off rebased onto SMP_DATA */
|
||||
static uint8_t usr_nz[SMP_USER_SLOTS];
|
||||
#if SMP_NSETS
|
||||
/* SET (SAMPLE) / SRC (GRAIN) -> a built-in set or a user slot. The groovebox: the sets, then USR1..USR4. Clipper
|
||||
* (0.9: its own synthesized sets, tools/gen_clipper_sets.py): USR1..USR4 first (0..3: what 0.2 .. 0.9 stored, the
|
||||
* user's slots only), then the sets */
|
||||
#if CLIPPER_SYNTH
|
||||
#define SMP_IS_SET(si) ((si) >= SMP_USER_SLOTS)
|
||||
#define SMP_SET_OF(si) ((si) - SMP_USER_SLOTS)
|
||||
#define SMP_USR_OF(si) (si)
|
||||
static const char *const SMP_ALL_NAMES[SMP_NALL] = {"USR1", "USR2", "USR3", "USR4", SMP_SET_NAMES_INIT};
|
||||
#else
|
||||
#define SMP_IS_SET(si) ((si) < SMP_NSETS)
|
||||
#define SMP_SET_OF(si) (si)
|
||||
#define SMP_USR_OF(si) ((si) - SMP_NSETS)
|
||||
static const char *const SMP_ALL_NAMES[SMP_NALL] = {SMP_SET_NAMES_INIT, "USR1", "USR2", "USR3", "USR4"};
|
||||
#else /* (Clipper: no built-in sets, the user's slots only) */
|
||||
static const char *const SMP_ALL_NAMES[SMP_NALL] = {"USR1", "USR2", "USR3", "USR4"};
|
||||
#endif
|
||||
|
||||
#ifndef SMP_USER_XIP /* host tests: a RAM image of the slots */
|
||||
@@ -149,14 +158,14 @@ static inline int32_t sample_next(const smp_zone_t *z, voice_t *v, int loop)
|
||||
static void sample_note_on(track_t *t, voice_t *v)
|
||||
{
|
||||
uint32_t si = (uint32_t)t->p[P_E0] % SMP_NALL, i, zi = 0xFFFFu;
|
||||
if (si < SMP_NSETS) {
|
||||
const smp_set_t *set = &SMP_SETS[si];
|
||||
if (SMP_IS_SET(si)) {
|
||||
const smp_set_t *set = &SMP_SETS[SMP_SET_OF(si)];
|
||||
for (i = 0; i < set->nz; i++)
|
||||
if (v->note >= SMP_ZONES[set->z0 + i].lo && v->note <= SMP_ZONES[set->z0 + i].hi)
|
||||
zi = set->z0 + i;
|
||||
v->s[4] = (int32_t)(zi == 0xFFFFu ? set->z0 : zi);
|
||||
} else { /* user slot: silent if empty */
|
||||
uint32_t k = si - SMP_NSETS;
|
||||
uint32_t k = SMP_USR_OF(si);
|
||||
for (i = 0; i < usr_nz[k]; i++)
|
||||
if (v->note >= usr_zone[k][i].lo && v->note <= usr_zone[k][i].hi)
|
||||
zi = 0x8000u | k << 5 | i;
|
||||
|
||||
@@ -8,11 +8,11 @@ static const int8_t PRESET_TRIM_CL[PTC_ENGINES][PTC_MAX] = {
|
||||
{/* 1.0 RHODES */ 23, /* 1.1 DX RHODES */ 16, /* 1.2 WURLI */ 23, /* 1.3 CLAV */ 14, /* 1.4 M1 PIANO */ 20, /* 1.5 AFRO KEYS */ 23, /* 1.6 TRAP BELL */ 6, /* 1.7 MUSIC BOX */ 7, /* 1.8 MARIMBA */ 23, /* 1.9 KALIMBA */ 23, /* 1.10 PLUGG BELL */ 16, /* 1.11 GLASS PAD */ -17, /* 1.12 FM BASS */ 11, /* 1.13 STEEL DRUM */ 23, /* 1.14 GLOCKEN */ 7, /* 1.15 CELESTA */ 12, /* 1.16 XYLOPHONE */ 23, /* 1.17 HARP */ 9, /* 1.18 BASS GTR */ 17, /* 1.19 TUBE BELL */ 1, /* 1.20 FM PLUCK */ 23, /* 1.21 FM GRAND */ 9, /* 1.22 DX BASS */ 9, /* 1.23 SUITCASE */ 11, /* 1.24 CHURCH BEL */ 0, /* 1.25 FM BRASS */ -9, /* 1.26 FM LEAD */ -4, /* 1.27 TOY PIANO */ 23, /* 1.28 SYN VIBES */ 16, /* 1.29 PERC ORGAN */ -18},
|
||||
{/* 2.0 CZ BASS */ 23, /* 2.1 SOFT KEYS */ 23, /* 2.2 CZ STRING */ -21, /* 2.3 RESO PLUCK */ 19, /* 2.4 CZ BRASS */ 15, /* 2.5 CZ LEAD */ -9, /* 2.6 CZ PAD */ -23, /* 2.7 CZ RESO */ 5, /* 2.8 CZ SYNBASS */ 1, /* 2.9 CZ ORGAN */ -30, /* 2.10 CZ BELLS */ 23, /* 2.11 CZ SWEEP */ -5, /* 2.12 CZ CHOIR */ -18, /* 2.13 CZ PLUCK */ 23, /* 2.14 CZ SOLO */ 3, /* 2.15 CZ EPIANO */ 18},
|
||||
{/* 3.0 GAME LEAD */ -4, /* 3.1 GB BASS */ 15, /* 3.2 8BIT ARP */ -4, /* 3.3 NES BASS */ 13, /* 3.4 CHIP CHORD */ 4, /* 3.5 1BIT BEEP */ 2, /* 3.6 WAVE LEAD */ 0, /* 3.7 CHIP NOISE */ 23, /* 3.8 GB PAD */ -12, /* 3.9 NES LEAD */ -6, /* 3.10 ZAP */ 23, /* 3.11 CHIP ARP */ -4},
|
||||
{/* 4.0 USER SMP */ 0},
|
||||
{/* 4.0 SAMPLE CHOIR */ 9, /* 4.1 GLASS HARP */ -9, /* 4.2 SAW ENSEMBLE */ -9, /* 4.3 AIR FLUTE */ 18, /* 4.4 USER SMP */ 0},
|
||||
{/* 5.0 CHOIR AAH */ -26, /* 5.1 SOUL OOH */ -24, /* 5.2 TALKBOX */ -7, /* 5.3 WOW BASS */ 6, /* 5.4 HARMONICA */ -5, /* 5.5 ROBOT */ -2, /* 5.6 VOX PAD */ -21, /* 5.7 MALE CHOIR */ -23, /* 5.8 WHISPER */ 13, /* 5.9 ROBO VOX */ -16, /* 5.10 AAH LEAD */ -18, /* 5.11 UH BASS */ 0},
|
||||
{/* 6.0 FAT BASS */ 23, /* 6.1 MIN STAB */ 23, /* 6.2 MIN7 STAB */ 23, /* 6.3 RAVE STAB */ 23, /* 6.4 DUB CHORD */ 23, /* 6.5 SAW PAD */ -11, /* 6.6 SYNC LEAD */ -3, /* 6.7 HOOVER */ 5, /* 6.8 ACCORDION */ 23, /* 6.9 ENSEMBLE */ -11, /* 6.10 80S POLY */ 23, /* 6.11 SQR LEAD */ -8, /* 6.12 POWER STAB */ 23, /* 6.13 PULSE PAD */ -16, /* 6.14 C64 BASS */ 4, /* 6.15 SID LEAD */ -13, /* 6.16 MAJ STAB */ 23, /* 6.17 SUS STAB */ 23, /* 6.18 BP PAD */ -8, /* 6.19 RING BELL */ 10},
|
||||
{/* 7.0 SOUL ORGAN */ -14, /* 7.1 GOSPEL */ -10, /* 7.2 JAZZ ORGAN */ -8, /* 7.3 DIRTY B3 */ -10, /* 7.4 HOUSE ORGN */ -7, /* 7.5 ROCK ORGAN */ -12, /* 7.6 CHAPEL */ 11, /* 7.7 REGGAE ORG */ 23, /* 7.8 JAZZ PERC */ 2, /* 7.9 FULL ORGAN */ -9, /* 7.10 SOFT FLUTE */ -1, /* 7.11 BLUES ORGN */ -7, /* 7.12 STRING ORG */ -9, /* 7.13 REED ORGAN */ -14},
|
||||
{/* 8.0 USER GRAIN */ 0},
|
||||
{/* 8.0 VOX CLOUD */ 8, /* 8.1 VOWEL DRIFT */ 13, /* 8.2 ANGEL HALO */ 3, /* 8.3 GLASS RAIN */ 23, /* 8.4 CRYSTAL SWELL */ 18, /* 8.5 FROZEN PAD */ 23, /* 8.6 DARK DRONE */ 14, /* 8.7 SCAN PAD */ -5, /* 8.8 WIND CHOIR */ 16, /* 8.9 BREATH GRAIN */ 23, /* 8.10 USER GRAIN */ 0},
|
||||
{/* 9.0 TINE EP */ 0, /* 9.1 GLASS BELL */ 4, /* 9.2 ROUND BASS */ 14, /* 9.3 BRASS SECT */ 23, /* 9.4 SOFT PAD */ 2, /* 9.5 WOOD BARS */ 23, /* 9.6 DRAWBARS */ 11, /* 9.7 NYLON PICK */ 23},
|
||||
{/* 10.0 BELL TREE */ -10, /* 10.1 MODAL BAR */ 23, /* 10.2 STR PLUCK */ 17, /* 10.3 BOWED MTL */ -5, /* 10.4 THUMB PNO */ 23, /* 10.5 HAND DRUM */ 8, /* 10.6 MEMB TOMS */ 14, /* 10.7 SITAR */ 23, /* 10.8 PHYS HARP */ 14, /* 10.9 NYLON GTR */ 17, /* 10.10 STEEL GTR */ 23, /* 10.11 MUTED GTR */ 23, /* 10.12 PLUCK BASS */ 23, /* 10.13 KOTO */ 3, /* 10.14 BANJO */ 23, /* 10.15 CELLO BOW */ 3, /* 10.16 TANPURA */ -24, /* 10.17 CHIMES */ -15, /* 10.18 BIG BELL */ -12, /* 10.19 VIBRA BAR */ 3, /* 10.20 GLASS BOWL */ -7, /* 10.21 STEEL PAN */ -8, /* 10.22 WOOD BLOCK */ 23, /* 10.23 TABLA */ 3, /* 10.24 CONGA */ 7, /* 10.25 TIMPANI */ -15, /* 10.26 DULCIMER */ 20, /* 10.27 WOOD MALLET */ 13, /* 10.28 GAMELAN */ -5, /* 10.29 VIOLIN BOW */ 9, /* 10.30 MBIRA */ 4, /* 10.31 HARPSICH */ 23},
|
||||
{/* 11.0 WIND */ -1, /* 11.1 RAIN */ 0, /* 11.2 NZ ARCADE */ 14, /* 11.3 NZ METAL */ 23, /* 11.4 OCEAN */ 23, /* 11.5 VINYL */ 23, /* 11.6 HISS */ -12, /* 11.7 RISER */ 0, /* 11.8 NZ SNARE */ 23, /* 11.9 BITCRUSH */ 17, /* 11.10 RADIO */ -9, /* 11.11 STATIC */ 23, /* 11.12 WHOOSH */ 10, /* 11.13 TONAL NZ */ 4},
|
||||
|
||||
@@ -544,6 +544,12 @@ static const struct { uint8_t kind, e; const char *name; } BANK[] = {
|
||||
{BK_PAD, ENGI_VECTOR, "CHOIR VS"},
|
||||
/* Clipper 0.9 (appended: the favourites keep their places) */
|
||||
{BK_PLUCK, ENGI_JUNO, "TURING JUNO"}, {BK_LEAD, ENGI_VECTOR, "MS20 VECTOR"}, {BK_BASS, ENGI_VECTOR, "DIODE VS BASS"},
|
||||
/* Clipper 0.9: GRAIN and SAMPLE on Clipper's own synthesized sources (tools/gen_clipper_sets.py) */
|
||||
{BK_PAD, ENGI_GRAIN, "VOX CLOUD"}, {BK_PAD, ENGI_GRAIN, "VOWEL DRIFT"}, {BK_PAD, ENGI_GRAIN, "ANGEL HALO"},
|
||||
{BK_FX, ENGI_GRAIN, "GLASS RAIN"}, {BK_PAD, ENGI_GRAIN, "CRYSTAL SWELL"}, {BK_PAD, ENGI_GRAIN, "FROZEN PAD"},
|
||||
{BK_PAD, ENGI_GRAIN, "DARK DRONE"}, {BK_PAD, ENGI_GRAIN, "SCAN PAD"}, {BK_PAD, ENGI_GRAIN, "WIND CHOIR"},
|
||||
{BK_FX, ENGI_GRAIN, "BREATH GRAIN"}, {BK_PAD, 4, "SAMPLE CHOIR"}, {BK_PAD, 4, "GLASS HARP"},
|
||||
{BK_PAD, 4, "SAW ENSEMBLE"}, {BK_LEAD, 4, "AIR FLUTE"},
|
||||
#endif
|
||||
};
|
||||
#define NBANK (sizeof BANK / sizeof BANK[0])
|
||||
|
||||
@@ -293,7 +293,7 @@ static void voice_start(track_t *t, voice_t *v, uint32_t note, uint32_t vel, int
|
||||
const engine_t *e = ENGINES[t->engine];
|
||||
int sounding = v->active && v->stage != 0;
|
||||
uint32_t ph0 = v->ph[0], ph1 = v->ph[1], ph2 = v->ph[2];
|
||||
int32_t s0 = v->s[0], s1 = v->s[1], s4 = v->s[4], s5 = v->s[5], s6 = v->s[6], s7 = v->s[7];
|
||||
int32_t s0 = v->s[0], s1 = v->s[1], s3 = v->s[3], s4 = v->s[4], s5 = v->s[5], s6 = v->s[6], s7 = v->s[7];
|
||||
v->note = (uint8_t)note;
|
||||
v->vel = (uint8_t)vel;
|
||||
v->gate = 1;
|
||||
@@ -335,6 +335,7 @@ static void voice_start(track_t *t, voice_t *v, uint32_t note, uint32_t vel, int
|
||||
v->s[5] = s5;
|
||||
v->s[6] = s6;
|
||||
v->s[7] = s7; /* op 4 phase; the modulator envelope restarts */
|
||||
v->s[3] = s3; /* (0.9) the index glides there from where it was */
|
||||
} else if (e == &ENG_LOFI) {
|
||||
v->s[0] = s0;
|
||||
v->s[4] = s4;
|
||||
|
||||
@@ -58,6 +58,7 @@ static void neutral(track_t *t)
|
||||
t->p[P_LD_PIT] = 0, t->p[P_AMODE] = 0, t->p[P_ATK] = t->p[P_ATK] > 40 ? 40 : t->p[P_ATK];
|
||||
}
|
||||
typedef void (*change_fn)(track_t *t, uint32_t k);
|
||||
static int attacks_ok; /* (sounds loaded: from silence, a new sound's own attack is not a click) */
|
||||
/* hold a chord, the steady sound, k changes (each followed by settle blocks), the steady sound again */
|
||||
static void check(const char *what, uint32_t eng, uint32_t pi, change_fn fn, uint32_t k, uint32_t settle)
|
||||
{
|
||||
@@ -80,7 +81,7 @@ static void check(const char *what, uint32_t eng, uint32_t pi, change_fn fn, uin
|
||||
s = d2max();
|
||||
run(150);
|
||||
steady = d2max();
|
||||
if (s > 2 * (steady > before ? steady : before) + 400 && s > worst)
|
||||
if (s > 2 * (steady > before ? steady : before) + 400 && s > worst && !(attacks_ok && before < 8))
|
||||
worst = s, at = (int32_t)j;
|
||||
before = steady;
|
||||
}
|
||||
@@ -151,11 +152,11 @@ int main(void)
|
||||
trk[1].p[P_LYMODE] = LY_OFF;
|
||||
song.g[G_BPM] = 120;
|
||||
for (e = 0; e < NENGINES; e++) { /* a sound loaded under the chord, every engine */
|
||||
char w[80];
|
||||
if (e == 4u || e == ENGI_GRAIN)
|
||||
continue; /* (the user's samples: none here) */
|
||||
char w[80]; /* (0.9: SAMPLE and GRAIN too, on Clipper's own sources) */
|
||||
attacks_ok = 1;
|
||||
snprintf(w, sizeof w, "%s: sounds loaded under a held chord", ENGINES[e]->name);
|
||||
check(w, e, 0, ch_preset, ENGINES[e]->npresets < 6u ? ENGINES[e]->npresets - 1u : 5u, 40);
|
||||
attacks_ok = 0;
|
||||
}
|
||||
check("ANALOG: VOICE steals (9 .. 12 notes on 8 voices)", 0, 12, ch_steal, 9, 30);
|
||||
check("ANALOG: MUTE on and off", 0, 13, ch_mute, 6, 30);
|
||||
|
||||
@@ -24,28 +24,28 @@ preset/ANALOG/20_SAW_BASS 647eb690094b0b06
|
||||
preset/ANALOG/21_SINE_PAD 225be334e8cf72a7
|
||||
preset/ANALOG/22_MINI_BASS cb40c9b848c2d80b
|
||||
preset/ANALOG/23_MINI_LEAD 3f6c3247b4e038f1
|
||||
preset/DIGITAL/00_RHODES b62083dd25231ad8
|
||||
preset/DIGITAL/01_DX_RHODES 81f42b810b490c21
|
||||
preset/DIGITAL/02_WURLI 634a2f11a3cca298
|
||||
preset/DIGITAL/03_CLAV bed5aa5ec1585ac2
|
||||
preset/DIGITAL/04_M1_PIANO 7bf97161428c5789
|
||||
preset/DIGITAL/05_AFRO_KEYS c849c9df5be53a46
|
||||
preset/DIGITAL/06_TRAP_BELL 70196d4ee2763876
|
||||
preset/DIGITAL/07_MUSIC_BOX fca4c22c68ae3a49
|
||||
preset/DIGITAL/08_MARIMBA 07eeca1bab86ce40
|
||||
preset/DIGITAL/09_KALIMBA 9104dc667795cadb
|
||||
preset/DIGITAL/10_PLUGG_BELL d614915cc4dfea42
|
||||
preset/DIGITAL/11_GLASS_PAD f33fd03c45bc6e7b
|
||||
preset/DIGITAL/12_FM_BASS e702f105b4e31be7
|
||||
preset/DIGITAL/13_STEEL_DRUM dca4fd954c04785a
|
||||
preset/DIGITAL/14_GLOCKEN 3df59ffe630e6ea9
|
||||
preset/DIGITAL/15_CELESTA eead7459b3169f76
|
||||
preset/DIGITAL/16_XYLOPHONE 3cbc70dc8dec34eb
|
||||
preset/DIGITAL/17_HARP 5ff3af4fdc27390c
|
||||
preset/DIGITAL/18_BASS_GTR 7734e26632d230ef
|
||||
preset/DIGITAL/19_TUBE_BELL 65e97324d50298da
|
||||
preset/DIGITAL/20_FM_PLUCK 93ca32163f7028b5
|
||||
preset/DIGITAL/21_FM_GRAND 74d924abd7c27f75
|
||||
preset/DIGITAL/00_RHODES f7254fef6dbfe89e
|
||||
preset/DIGITAL/01_DX_RHODES b3e11ac32c635a74
|
||||
preset/DIGITAL/02_WURLI 9394537d7f061bb1
|
||||
preset/DIGITAL/03_CLAV dcea84e34c6a7f80
|
||||
preset/DIGITAL/04_M1_PIANO a8dd45927ce42a74
|
||||
preset/DIGITAL/05_AFRO_KEYS 01f1715ad85b2efa
|
||||
preset/DIGITAL/06_TRAP_BELL 4dee306a492459dd
|
||||
preset/DIGITAL/07_MUSIC_BOX 3d8ec11511247465
|
||||
preset/DIGITAL/08_MARIMBA 7529b44f60f28622
|
||||
preset/DIGITAL/09_KALIMBA cb8e5deeb0d07631
|
||||
preset/DIGITAL/10_PLUGG_BELL d5b4291ac17ac596
|
||||
preset/DIGITAL/11_GLASS_PAD a4daa58074964bf9
|
||||
preset/DIGITAL/12_FM_BASS 25c7bb8546717bc7
|
||||
preset/DIGITAL/13_STEEL_DRUM b56752a03118f544
|
||||
preset/DIGITAL/14_GLOCKEN 7f7fbf491a3a4c97
|
||||
preset/DIGITAL/15_CELESTA 9f128432693e9bc4
|
||||
preset/DIGITAL/16_XYLOPHONE 55e9b99c4faca223
|
||||
preset/DIGITAL/17_HARP 3b1739b1ca299551
|
||||
preset/DIGITAL/18_BASS_GTR d10a78e5027f1830
|
||||
preset/DIGITAL/19_TUBE_BELL 9f13b4a739281c77
|
||||
preset/DIGITAL/20_FM_PLUCK e43dcb4120bd6e50
|
||||
preset/DIGITAL/21_FM_GRAND 3aabba535f98be01
|
||||
preset/PHASE/00_CZ_BASS e96706957d91ecae
|
||||
preset/PHASE/01_SOFT_KEYS 5f0e4fe55c4ce76a
|
||||
preset/PHASE/02_CZ_STRING 7db0fca714217b45
|
||||
@@ -187,10 +187,10 @@ mode/ANALOG/POLY a7a9ef2a2e63290c
|
||||
mode/ANALOG/MONO 9583d8d67d814abc
|
||||
mode/ANALOG/LEGATO 688683752bbf85f8
|
||||
mode/ANALOG/UNISON 8bb858f31b261198
|
||||
mode/DIGITAL/POLY 81f42b810b490c21
|
||||
mode/DIGITAL/MONO e79a15b9af2d8570
|
||||
mode/DIGITAL/LEGATO 979838bb49ba2760
|
||||
mode/DIGITAL/UNISON 3195a4d97b069829
|
||||
mode/DIGITAL/POLY b3e11ac32c635a74
|
||||
mode/DIGITAL/MONO 259a9063e578f0f3
|
||||
mode/DIGITAL/LEGATO af2ac0d2e697b81e
|
||||
mode/DIGITAL/UNISON c623eda546eb4034
|
||||
mode/VOICE/POLY 9d631818998e4fcf
|
||||
mode/VOICE/MONO 9450adb85fb70d90
|
||||
mode/VOICE/LEGATO 1a04dbc937476869
|
||||
@@ -201,13 +201,13 @@ sends/ANALOG/delay afca9fa890650d3c
|
||||
sends/ANALOG/reverb 7a9ee7a261797e1e
|
||||
sends/ANALOG/all a392a524049f8e91
|
||||
sends/ANALOG/dist 917a9fdf6aa27763
|
||||
sends/DIGITAL/dry 3f72412f9006460c
|
||||
sends/DIGITAL/chorus def2c63365cee4da
|
||||
sends/DIGITAL/delay 0b232f20f9015c90
|
||||
sends/DIGITAL/reverb 29b9c515f012bd0c
|
||||
sends/DIGITAL/all 25e149e3a2567b5e
|
||||
sends/DIGITAL/dist dc90f710521f8da1
|
||||
song/4track_mix f2c14e52d7d380ce
|
||||
sends/DIGITAL/dry 25f613bc779a9c24
|
||||
sends/DIGITAL/chorus 52c8d28f04b3cc3a
|
||||
sends/DIGITAL/delay 820d0499a03b854c
|
||||
sends/DIGITAL/reverb 14246300e567c350
|
||||
sends/DIGITAL/all d45af383afcc168a
|
||||
sends/DIGITAL/dist 873e64bb5e5d9d2c
|
||||
song/4track_mix 7790b3cf8db30236
|
||||
slicer/gate/ANALOG_DARK_STR 23376a6defb8ab6f
|
||||
slicer/stut/DIGITAL_RHODES 692678a659332022
|
||||
slicer/song_gate_stut 1f6869b794a1e026
|
||||
slicer/stut/DIGITAL_RHODES 8918a6dcb14114e9
|
||||
slicer/song_gate_stut ce6b4ce66d669330
|
||||
@@ -16,7 +16,8 @@ static int role_of(const char *n)
|
||||
if (has(n, "PAD") || has(n, "STR") || has(n, "CHOIR") || has(n, "OOH") || has(n, "ORGAN") || has(n, "ORGN") || has(n, "GOSPEL") ||
|
||||
has(n, "B3") || has(n, "CLOUD") || has(n, "HAZE") || has(n, "ATMOS") || has(n, "ENSEMBLE") || has(n, "DRONE") ||
|
||||
has(n, "SHIMMER") || has(n, "OCEAN") || has(n, "RISER") || has(n, "WIND") || has(n, "HISS") || has(n, "VINYL") ||
|
||||
has(n, "RAIN") || has(n, "BOWL") || has(n, "BOW") || has(n, "TANPURA"))
|
||||
has(n, "RAIN") || has(n, "BOWL") || has(n, "BOW") || has(n, "TANPURA") || has(n, "HALO") || has(n, "SWELL") ||
|
||||
has(n, "VOWEL") || has(n, "GLASS HARP")) /* (0.9: GRAIN's and SAMPLE's slow pads) */
|
||||
return R_HELD;
|
||||
if ((has(n, "STAB") && !has(n, "HORN") && !has(n, "STRING")) || has(n, "CHORD"))
|
||||
return R_ONE; /* TRIO stabs: one key plays the chord */
|
||||
|
||||
@@ -181,7 +181,7 @@ if $SYN_UB -o "$OUT/synth9_ub" tests/synth9_test.c -lm 2>/dev/null; then
|
||||
run "Clipper 0.9 under ASan + UBSan" sh -c "'$OUT/synth9_ub' >/dev/null && echo clean"
|
||||
fi
|
||||
$SYN -o "$OUT/clean_test" tests/clean_test.c -lm
|
||||
run "Clipper 0.9 audio: no click or crackle (45 cases: presets of every engine, steals, mute, level, pan, INSERT, DIST, the sends, FILT, MODL, CHOR, VINTAGE, delay TIME, reverb SIZE, EQ, WAVE TABL, FMX PTCH, engine switch, TUNING, LAYER, MOD SEQ)" "$OUT/clean_test"
|
||||
run "Clipper 0.9 audio: no click or crackle (46 cases: presets of every engine, steals, mute, level, pan, INSERT, DIST, the sends, FILT, MODL, CHOR, VINTAGE, delay TIME, reverb SIZE, EQ, WAVE TABL, FMX PTCH, engine switch, TUNING, LAYER, MOD SEQ)" "$OUT/clean_test"
|
||||
if $SYN_UB -o "$OUT/clean_ub" tests/clean_test.c -lm 2>/dev/null; then
|
||||
run "Clipper 0.9 audio under ASan + UBSan" sh -c "'$OUT/clean_ub' >/dev/null && echo clean"
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Copyright (C) 2026 3dSam (Clipper)
|
||||
"""Clipper's built-in sources for GRAIN and SAMPLE, synthesized here (no recording, no third party):
|
||||
|
||||
VOX a small choir, "oo" opening to "ah" (the vowel moves through the first third: GRAIN's POS scans it)
|
||||
GLASS a glass harmonica: beating inharmonic partials, the top fading slowly (POS: bright to pure)
|
||||
PAD a seven-saw ensemble, its low-pass opening through the first half (POS: dark to bright)
|
||||
AIR breath through resonances on the note's harmonics: a flute / whistle of air
|
||||
|
||||
tools/gen_clipper_sets.py [OUT_DIR] (default assets/clipper-sets): one mono 16-bit WAV a set and sets.json
|
||||
(name, file, rate, root, loop start / end in samples, the last one played). tools/gen_samples.py reads them
|
||||
into the Clipper build (IMA ADPCM, ~25 KB of flash). Needs numpy and scipy; the WAVs are in the tree, so the
|
||||
build does not run this. Deterministic (fixed seeds).
|
||||
|
||||
Each sound sustains on a loop whose seam is cross-faded (equal power over 90 ms): SAMPLE holds a note on it.
|
||||
Stored at 16 kHz with nothing above ~6.3 kHz: a note two octaves over the root still stays under 22 kHz.
|
||||
"""
|
||||
import json
|
||||
import sys
|
||||
import wave
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
from scipy.signal import butter, resample_poly, sosfiltfilt, sosfilt
|
||||
|
||||
FS = 48000 # synthesis rate
|
||||
OUT_SR = 16000 # stored rate
|
||||
TOP = 6300.0 # nothing above (Hz)
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def hz(m):
|
||||
return 440.0 * 2 ** ((m - 69) / 12)
|
||||
|
||||
|
||||
def smooth_noise(rng, n, rate_hz, fs=FS):
|
||||
"""slow random curve, -1..1, about rate_hz wiggles a second"""
|
||||
k = max(2, int(n / fs * rate_hz) + 3)
|
||||
pts = rng.uniform(-1, 1, k)
|
||||
x = np.linspace(0, k - 1, n)
|
||||
i = np.floor(x).astype(int).clip(0, k - 2)
|
||||
f = x - i
|
||||
f = f * f * (3 - 2 * f)
|
||||
return pts[i] * (1 - f) + pts[i + 1] * f
|
||||
|
||||
|
||||
def vib(rng, n, rate, depth_ct, onset_s):
|
||||
"""vibrato in cents: a slightly wandering rate, fading in"""
|
||||
t = np.arange(n) / FS
|
||||
r = rate * (1 + 0.06 * smooth_noise(rng, n, 0.7))
|
||||
ph = 2 * np.pi * np.cumsum(r) / FS + rng.uniform(0, 2 * np.pi)
|
||||
fade = np.clip(t / onset_s, 0, 1) ** 2
|
||||
return depth_ct * fade * np.sin(ph) + 3.0 * smooth_noise(rng, n, 3.0)
|
||||
|
||||
|
||||
def additive(f0_t, amp_fn, nmax, rng):
|
||||
"""harmonics of a time-varying f0 (array, Hz), amp_fn(k, fk) -> per-sample amplitude; band-limited to TOP"""
|
||||
phase0 = 2 * np.pi * np.cumsum(f0_t) / FS
|
||||
out = np.zeros_like(f0_t)
|
||||
for k in range(1, nmax + 1):
|
||||
fk = k * f0_t
|
||||
if fk.min() > TOP:
|
||||
break
|
||||
a = amp_fn(k, fk) * np.clip((TOP - fk) / 400.0, 0, 1)
|
||||
out += a * np.sin(k * phase0 + rng.uniform(0, 2 * np.pi))
|
||||
return out
|
||||
|
||||
|
||||
def fenv(f, formants):
|
||||
"""vowel envelope at f: sum of resonance peaks (freq, bandwidth, dB)"""
|
||||
e = np.zeros_like(f)
|
||||
for fc, bw, db in formants:
|
||||
e += 10 ** (db / 20) / (1 + ((f - fc) / (bw / 2)) ** 2)
|
||||
return e
|
||||
|
||||
|
||||
A_ = [(800, 110, 0), (1150, 120, -6), (2800, 160, -26), (3500, 180, -32), (4950, 200, -48)]
|
||||
O_ = [(450, 90, 0), (800, 100, -10), (2830, 150, -28), (3500, 170, -32), (4950, 200, -50)]
|
||||
U_ = [(350, 80, 0), (650, 90, -16), (2700, 150, -34), (3300, 170, -40), (4950, 200, -56)]
|
||||
|
||||
|
||||
def vowel_mix(t, dur):
|
||||
"""weights of U, O, A over time: oo .. oh .. ah through the first third, then ah"""
|
||||
x = np.clip(t / (0.34 * dur), 0, 1)
|
||||
x = x * x * (3 - 2 * x)
|
||||
wu = np.clip(1 - 2 * x, 0, 1)
|
||||
wa = np.clip(2 * x - 1, 0, 1)
|
||||
wo = 1 - wu - wa
|
||||
return wu, wo, wa
|
||||
|
||||
|
||||
def vox(rng, dur=0.92, root=57):
|
||||
n = int(dur * FS)
|
||||
t = np.arange(n) / FS
|
||||
wu, wo, wa = vowel_mix(t, dur)
|
||||
out = np.zeros(n)
|
||||
for v, dt in enumerate([-9, -4, 0, 3, 7, 11]):
|
||||
cents = dt + vib(rng, n, 5.1 + 0.35 * v % 1.1, 13, 0.25)
|
||||
f0 = hz(root + (12 if v % 3 == 2 else 0)) * 2 ** (cents / 1200) # two of six an octave up (altos)
|
||||
|
||||
kk = np.arange(1, 60)
|
||||
f_mean = kk * float(np.mean(f0))
|
||||
norm = [np.sqrt(np.sum((fenv(f_mean, V) / kk ** 1.15 * (f_mean < TOP)) ** 2)) for V in (U_, O_, A_)]
|
||||
|
||||
def amp(k, fk): # each vowel as loud as the others (ah is quieter: its F1 is high)
|
||||
src = 1.0 / k ** 1.15
|
||||
return src * (wu * fenv(fk, U_) / norm[0] + wo * fenv(fk, O_) / norm[1] + wa * fenv(fk, A_) / norm[2])
|
||||
sh = 1 + 0.12 * smooth_noise(rng, n, 4.0)
|
||||
out += additive(f0, amp, 60, rng) * sh * (0.7 if v % 3 == 2 else 1.0)
|
||||
br = rng.standard_normal(n) # breath: noise through the formants
|
||||
spec = np.fft.rfft(br)
|
||||
fr = np.fft.rfftfreq(n, 1 / FS)
|
||||
br = np.fft.irfft(spec * (fenv(fr, A_) * 0.7 + fenv(fr, O_) * 0.3) * (fr < TOP), n)
|
||||
out = out / np.max(np.abs(out)) + 0.035 * br / np.std(br)
|
||||
return out, root
|
||||
|
||||
|
||||
def glass(rng, dur=0.8, root=72):
|
||||
"""synthesized straight at OUT_SR, its sustain exactly periodic over the loop (N samples): every partial and
|
||||
every beat a whole number of turns in it, so the loop needs no cross-fade (two sines cross-faded out of phase
|
||||
dip and smear)"""
|
||||
f0 = hz(root)
|
||||
m = round(f0 * 0.44) # the root's turns in the loop (~0.44 s)
|
||||
N = round(m * OUT_SR / f0) # the loop, samples (the root off by < 0.5 cent)
|
||||
T = N / OUT_SR
|
||||
n = int(dur * OUT_SR)
|
||||
ls = n - N
|
||||
t = np.arange(n) / OUT_SR
|
||||
parts = [(1.0, 1.0, 1), (2.005, 0.42, 1), (2.99, 0.30, 0), (4.02, 0.18, 1), (5.41, 0.11, 0),
|
||||
(6.79, 0.065, 1), (8.21, 0.04, 0), (10.5, 0.02, 1)]
|
||||
x = np.clip(t / (ls / OUT_SR), 0, 1)
|
||||
x = x * x * (3 - 2 * x) # 0 .. 1 by the loop's start, then held
|
||||
out = np.zeros(n)
|
||||
for i, (r, a, beat) in enumerate(parts):
|
||||
k = round(f0 * r * T) # turns in the loop
|
||||
if k / T > TOP:
|
||||
continue
|
||||
level = 1.0 - (0.15 + 0.6 * i / len(parts)) * x # the top fades towards the loop, then holds
|
||||
for s in ((-1, 1) if beat else (0,)):
|
||||
kk = k + s # a beating pair: one turn apart over the loop (~2.3 Hz)
|
||||
out += (0.5 if beat else 1.0) * a * level * np.sin(2 * np.pi * kk / T * t + rng.uniform(0, 2 * np.pi))
|
||||
fi = int(0.05 * OUT_SR)
|
||||
out[:fi] *= (np.arange(fi) / fi) ** 1.5
|
||||
return out, root, ls
|
||||
|
||||
|
||||
def pad(rng, dur=0.82, root=60):
|
||||
n = int(dur * FS)
|
||||
t = np.arange(n) / FS
|
||||
cut = 700 * (4.2 ** np.clip(t / (0.45 * dur), 0, 1) ** 1.2) # 700 Hz .. ~2.9 kHz, then held
|
||||
out = np.zeros(n)
|
||||
for v, dt in enumerate([-21, -13, -6, 0, 6, 13, 21]):
|
||||
cents = dt + 4 * smooth_noise(rng, n, 1.5)
|
||||
f0 = hz(root) * 2 ** (cents / 1200)
|
||||
|
||||
def amp(k, fk):
|
||||
return (1.0 / k) / np.sqrt(1 + (fk / cut) ** 4) # 12 dB / octave over the cut
|
||||
out += additive(f0, amp, 40, rng) * (0.8 if v in (0, 6) else 1.0)
|
||||
out += 0.25 * additive(np.full(n, hz(root - 12)), lambda k, fk: (k == 1) * 1.0, 1, rng) # a little sub
|
||||
return out, root
|
||||
|
||||
|
||||
def air(rng, dur=0.62, root=72):
|
||||
n = int(dur * FS)
|
||||
t = np.arange(n) / FS
|
||||
f0 = hz(root) * 2 ** (vib(rng, n, 4.6, 6, 0.3) / 1200)
|
||||
w = rng.standard_normal(n)
|
||||
out = np.zeros(n)
|
||||
for k, (q, g) in enumerate([(70, 1.0), (55, 0.45), (45, 0.22), (40, 0.1)], start=1): # resonances on the harmonics
|
||||
fc = f0 * k
|
||||
if fc.max() > TOP:
|
||||
break
|
||||
y = np.zeros(n) # a two-pole resonator, its frequency moving with f0
|
||||
y1 = y2 = 0.0
|
||||
for i in range(n):
|
||||
th = 2 * np.pi * fc[i] / FS
|
||||
rr = 1 - th / (2 * q) * 2
|
||||
b = (1 - rr * rr) * 0.5
|
||||
yi = b * w[i] + 2 * rr * np.cos(th) * y1 - rr * rr * y2
|
||||
y2, y1 = y1, yi
|
||||
y[i] = yi
|
||||
out += g * y / np.std(y)
|
||||
breath = sosfilt(butter(2, [300, 5500], btype="band", fs=FS, output="sos"), rng.standard_normal(n))
|
||||
swell = 0.8 + 0.2 * smooth_noise(rng, n, 2.5)
|
||||
out = (out + 0.28 * breath / np.std(breath)) * swell
|
||||
return out, root
|
||||
|
||||
|
||||
def finish(x, loop_from):
|
||||
"""to OUT_SR, nothing above TOP, a 5 ms fade in, the loop [ls, le] with its seam cross-faded, -1 dBFS"""
|
||||
x = sosfiltfilt(butter(8, TOP, fs=FS, output="sos"), x)
|
||||
x = sosfiltfilt(butter(2, 40, btype="high", fs=FS, output="sos"), x)
|
||||
y = resample_poly(x, OUT_SR // 1000, FS // 1000)
|
||||
n = len(y)
|
||||
fi = int(0.005 * OUT_SR)
|
||||
y[:fi] *= np.linspace(0, 1, fi)
|
||||
ls, le = int(loop_from * n), n - 1
|
||||
L = int(0.09 * OUT_SR)
|
||||
j = np.arange(L)
|
||||
w = np.sin(0.5 * np.pi * (j + 1) / L)
|
||||
k = le - L + 1 + j
|
||||
y[k] = y[k] * np.cos(0.5 * np.pi * (j + 1) / L) + y[ls - L + j] * w # y[le] flows into y[ls]
|
||||
y *= 0.89 * 32767 / np.max(np.abs(y))
|
||||
return np.round(y).astype(np.int16), ls, le
|
||||
|
||||
|
||||
def main(out_dir):
|
||||
out_dir = Path(out_dir)
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
meta = []
|
||||
for name, fn, loop_from, seed in (("VOX", vox, 0.5, 11), ("GLASS", glass, None, 12), ("PAD", pad, 0.55, 13),
|
||||
("AIR", air, 0.3, 14)):
|
||||
r = fn(np.random.default_rng(seed))
|
||||
if loop_from is None: # (already at OUT_SR, its loop exact)
|
||||
x, root, ls = r
|
||||
y = np.round(x * 0.89 * 32767 / np.max(np.abs(x))).astype(np.int16)
|
||||
le = len(y) - 1
|
||||
else:
|
||||
x, root = r
|
||||
y, ls, le = finish(x, loop_from)
|
||||
f = out_dir / f"{name.lower()}.wav"
|
||||
with wave.open(str(f), "wb") as w:
|
||||
w.setnchannels(1)
|
||||
w.setsampwidth(2)
|
||||
w.setframerate(OUT_SR)
|
||||
w.writeframes(y.tobytes())
|
||||
meta.append(dict(name=name, file=f.name, rate=OUT_SR, root=root, ls=ls, le=le))
|
||||
print(f"{name}: {len(y)} samples, {len(y) / OUT_SR:.2f} s, root {root}, loop {ls}..{le}")
|
||||
(out_dir / "sets.json").write_text(json.dumps(meta, indent=1) + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(sys.argv[1] if len(sys.argv) > 1 else ROOT / "assets" / "clipper-sets")
|
||||
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
"""The Clipper logo: a three-masted clipper, its square sails in the four track colours (blue, green, yellow,
|
||||
orange) inside a 270-degree dial (the knobs of the UI), a hull, and a geometric monoline wordmark "clipper"
|
||||
(the line of SLOOP's, from which Clipper comes).
|
||||
"""The Clipper logo: a clipper under sail inside a 270-degree dial (the knobs of the UI), in the line of SLOOP's
|
||||
logo: the sloop's one triangular sail becomes four, a jib and three fore-and-aft sails filled by the wind, one per
|
||||
track colour (orange, yellow, green, blue), three raked masts on a long low hull with a sharp bow, and a geometric
|
||||
monoline wordmark "clipper" (SLOOP's).
|
||||
|
||||
tools/gen_logo.py OUT.h firmware boot splash (RLE, 16-colour palette, RGB565)
|
||||
tools/gen_logo.py --assets DIR clipper-logo.svg/png, clipper-icon.svg/png, clipper-splash.png
|
||||
@@ -67,26 +68,65 @@ class Pen:
|
||||
self.svg.append('<polygon points="' + " ".join(f"{x:.2f},{y:.2f}" for x, y in pts) + f'" fill="{HEX(col)}"/>')
|
||||
|
||||
|
||||
# ---- the icon: the dial, three masts with their sails, the hull ---------------------------------
|
||||
MASTS = [(-46, -58, 3), (0, -84, 4), (46, -58, 3)] # x from the centre, top, tiers of sails
|
||||
SAIL_COLS = [ORANGE, YELLOW, GREEN, BLUE] # from the lowest tier up
|
||||
BOT, HULL = 38, 52
|
||||
# ---- the icon: the dial (the UI's knobs) round a clipper under sail, the line of SLOOP's logo: its sloop's one
|
||||
# triangular sail becomes a clipper's four, one per track colour, the leeches filled by the wind; the bow to the left
|
||||
# (as the sloop sails), a jib out to the bowsprit, three raked masts, a long low hull --------------------------
|
||||
RAKE = 4 # the masts lean aft: their tops this far to the right
|
||||
|
||||
|
||||
def curve(p0, p1, bulge, n=10):
|
||||
"""points from p0 to p1 bowed out to the right of the travel by bulge (a quadratic)"""
|
||||
(x0, y0), (x1, y1) = p0, p1
|
||||
mx, my = (x0 + x1) / 2, (y0 + y1) / 2
|
||||
dx, dy = x1 - x0, y1 - y0
|
||||
L = math.hypot(dx, dy)
|
||||
cx, cy = mx - dy / L * bulge * 2, my + dx / L * bulge * 2
|
||||
return [((1 - t) ** 2 * x0 + 2 * (1 - t) * t * cx + t * t * x1, (1 - t) ** 2 * y0 + 2 * (1 - t) * t * cy + t * t * y1)
|
||||
for t in (i / n for i in range(n + 1))]
|
||||
|
||||
|
||||
class Ship:
|
||||
"""the ship drawn scaled about the dial's centre (S) and moved (SX, SY), so it sits clear inside the dial"""
|
||||
|
||||
def __init__(self, pen, cx, cy, k=0.86, sx=4, sy=8):
|
||||
self.pen, self.cx, self.cy, self.k, self.sx, self.sy = pen, cx, cy, k, sx, sy
|
||||
|
||||
def T(self, x, y):
|
||||
return self.cx + (x - self.cx) * self.k + self.sx, self.cy + (y - self.cy) * self.k + self.sy
|
||||
|
||||
def line(self, x0, y0, x1, y1, w):
|
||||
self.pen.line(*self.T(x0, y0), *self.T(x1, y1), w=w)
|
||||
|
||||
def poly(self, pts, col):
|
||||
self.pen.poly([self.T(x, y) for x, y in pts], col)
|
||||
|
||||
|
||||
def icon(pen, ox, oy):
|
||||
cx, cy = ox + 120, oy + 120
|
||||
pen.arc(cx, cy, 100, 135, 405)
|
||||
for dx, top, n in MASTS:
|
||||
mx, y0, y1 = cx + dx, cy + top, cy + BOT
|
||||
pen.line(mx, y0 - 2, mx, y1 + 12, w=8)
|
||||
gap, h = 5, (y1 - y0 - 4 * 5) / 4 # tiers of the same height on every mast
|
||||
for i in range(n): # i = 0 the lowest
|
||||
b = y1 - i * (h + gap)
|
||||
t = b - h
|
||||
wb, wt = 19 - 2.5 * i, 17 - 2.5 * i # half widths: narrower up the mast
|
||||
pen.poly([(mx - wt, t), (mx + wt, t), (mx + wb, b), (mx - wb, b)], SAIL_COLS[i])
|
||||
pen.line(cx - HULL, cy + BOT + 18, cx + HULL, cy + BOT + 18, w=12)
|
||||
pen.line(cx - HULL + 14, cy + BOT + 32, cx + HULL - 14, cy + BOT + 32, w=8)
|
||||
sh = Ship(pen, cx, cy)
|
||||
deck, foot = cy + 52, cy + 40 # the deck; the sails' feet, over the deck
|
||||
masts = [(-38, -66), (2, -88), (40, -60)] # fore, main, mizzen: x from the centre, top
|
||||
tops = []
|
||||
for dx, top in masts:
|
||||
x0, x1 = cx + dx, cx + dx + RAKE
|
||||
sh.line(x0, deck - 2, x1, cy + top, w=7)
|
||||
tops.append((x1, cy + top))
|
||||
# the sails: luff on the mast (clear of it), foot over the deck, leech bowed by the wind
|
||||
widths = [30, 34, 28]
|
||||
for (x1, ty), (dx, top), w, col in zip(tops, masts, widths, (YELLOW, GREEN, BLUE)):
|
||||
xb = cx + dx + 7 # the luff at the foot (the mast leans)
|
||||
luff_top = (x1 + 7 - 1, ty + 8)
|
||||
clew = (xb + w, foot)
|
||||
sh.poly([luff_top] + curve(luff_top, clew, 5)[1:] + [(xb, foot)], col)
|
||||
fx, fty = tops[0] # the jib: from the foremast's head to the bowsprit
|
||||
head, tack = (fx - 7, fty + 12), (cx - 90, foot - 4)
|
||||
sh.poly([head, (fx - 7, foot), tack] + curve(tack, head, 3)[1:-1], ORANGE)
|
||||
sh.line(cx - 70, deck - 8, cx - 96, foot - 6, w=5) # the bowsprit
|
||||
# the hull: long and low, a raised sharp bow forward (the clipper's), a sheer that falls aft, a short counter
|
||||
hull = curve((cx - 88, deck - 12), (cx + 78, deck - 3), 2)[:-1] + [(cx + 78, deck - 3), (cx + 72, deck + 11)] + \
|
||||
curve((cx + 72, deck + 11), (cx - 58, deck + 15), -2)[1:]
|
||||
sh.poly(hull, WHITE)
|
||||
|
||||
|
||||
# ---- the wordmark "clipper": circles of the x-height, verticals, round ends -----------------------
|
||||
|
||||
@@ -24,6 +24,7 @@ slices) is written with it: SLC_BREAK_INIT.
|
||||
The header is cached in build/gen_samples.cache under a hash of every input.
|
||||
"""
|
||||
import hashlib
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import re
|
||||
@@ -442,26 +443,61 @@ def input_key(have_cc0):
|
||||
return h.hexdigest()
|
||||
|
||||
|
||||
CLIPPER_EMPTY = """
|
||||
/* Clipper (CLIPPER_SYNTH): no built-in samples (~300 KB of flash for synthesis): SAMPLE and GRAIN play the user's
|
||||
* slots USR1..4 (sent from the editor). The groovebox (CLIPPER_SYNTH 0, the tests) keeps the sets above. */
|
||||
static const uint8_t SMP_DATA[4] = {0, 0, 0, 0};
|
||||
static const smp_zone_t SMP_ZONES[] = {{0, 0, 0, 0, 65536, 960, 0, 0, 0, 127, 0}};
|
||||
static const smp_set_t SMP_SETS[] = {{"NONE", 0, 1}};
|
||||
#define SMP_NSETS 0
|
||||
static const preset_t SMP_PRESET_TABLE[] = {
|
||||
{"USER SMP", {0, 0, 0, 1, 127, 0, 0, 0}, {0, 110, 110, 40}, 0, 0, FX(0, 10, 12, 24)},
|
||||
};
|
||||
#define SMP_SET_NAMES_INIT
|
||||
static const char *const SMP_SET_NAMES[] = {"NONE"};
|
||||
#define SLC_BREAK_INIT {0}
|
||||
"""
|
||||
CLIPPER_SETS = SRC / "assets" / "clipper-sets" # Clipper's own synthesized sources (tools/gen_clipper_sets.py)
|
||||
# Clipper's SAMPLE presets: name, set, {SET (filled in), TUNE, BITS, LOOP, CUT, -, DRV, -}, env, mono, sends, more
|
||||
CLIPPER_SMP_PRESETS = [
|
||||
("SAMPLE CHOIR", "VOX", [0, 0, 0, 1, 108, 0, 0, 0], (58, 100, 122, 84), 0, (0, 34, 18, 66), ("P_VINT", 40)),
|
||||
("GLASS HARP", "GLASS", [0, 0, 0, 1, 118, 0, 0, 0], (18, 100, 116, 80), 0, (0, 22, 30, 66), ()),
|
||||
("SAW ENSEMBLE", "PAD", [0, 0, 0, 1, 104, 0, 0, 0], (34, 100, 120, 60), 0, (0, 44, 14, 48), ("P_VINT", 50)),
|
||||
("AIR FLUTE", "AIR", [0, 0, 0, 1, 112, 0, 0, 0], (22, 100, 120, 42), 1, (0, 12, 26, 52),
|
||||
("P_LD_PIT", 1, "P_LRATE", 88, "P_LFADE", 50)),
|
||||
]
|
||||
|
||||
|
||||
def clipper_block():
|
||||
"""Clipper (CLIPPER_SYNTH): no recorded samples (~300 KB of flash for synthesis); four small synthesized sources
|
||||
for SAMPLE and GRAIN (~25 KB), then the user's slots USR1..4 (sent from the editor). The SET / SRC values: 0..3
|
||||
the user's slots (as before), 4.. these sets (eng_sample.c SMP_IS_SET)"""
|
||||
meta = json.loads((CLIPPER_SETS / "sets.json").read_text())
|
||||
blob, zones, sets = bytearray(), [], []
|
||||
for e in meta:
|
||||
sr, x = read_any_wav(CLIPPER_SETS / e["file"])
|
||||
x = [max(-32768, min(32767, int(round(v * 32768)))) for v in x] # (read_any_wav: -1..1)
|
||||
enc, st = ima_encode(x, e["ls"])
|
||||
off = len(blob)
|
||||
blob += enc
|
||||
if len(blob) & 1:
|
||||
blob.append(0)
|
||||
rate = int(round(sr / 44100 * 65536))
|
||||
sets.append((e["name"], len(zones), 1))
|
||||
zones.append(f" {{{off}, {len(x)}, {e['ls']}, {e['le']}, {rate}, {e['root'] * 16}, {st[0]}, {st[1]}, 0, 127, 1}},")
|
||||
L = ["", "/* Clipper (CLIPPER_SYNTH): its own synthesized sources (tools/gen_clipper_sets.py, assets/clipper-sets),",
|
||||
" * SET / SRC 4.. (0..3: the user's slots USR1..4, sent from the editor) */"]
|
||||
L.append(f"static const uint8_t SMP_DATA[{len(blob)}] = {{")
|
||||
for i in range(0, len(blob), 32):
|
||||
L.append(" " + ",".join(map(str, blob[i:i + 32])) + ",")
|
||||
L += ["};", "static const smp_zone_t SMP_ZONES[] = {"] + zones + ["};", "static const smp_set_t SMP_SETS[] = {"]
|
||||
L += [f' {{"{n}", {z0}, {nz}}},' for n, z0, nz in sets] + ["};", f"#define SMP_NSETS {len(sets)}"]
|
||||
L.append("static const preset_t SMP_PRESET_TABLE[] = {")
|
||||
names = [n for n, _, _ in sets]
|
||||
for pname, setname, e, env, mono, fx, more in CLIPPER_SMP_PRESETS:
|
||||
e = list(e)
|
||||
e[0] = 4 + names.index(setname)
|
||||
x = ", ".join(f"{more[j]} + 1, {more[j + 1]}" for j in range(0, len(more), 2))
|
||||
L.append(f' {{"{pname}", {{{", ".join(map(str, e))}}}, {{{", ".join(map(str, env))}}}, 0, {mono}, '
|
||||
f'FX({", ".join(map(str, fx))}){", .x = {" + x + "}" if x else ""}}},')
|
||||
L.append(' {"USER SMP", {0, 0, 0, 1, 127, 0, 0, 0}, {0, 110, 110, 40}, 0, 0, FX(0, 10, 12, 24)},')
|
||||
L.append("};")
|
||||
L.append("#define SMP_SET_NAMES_INIT " + ", ".join(f'"{n}"' for n in names))
|
||||
L.append("static const char *const SMP_SET_NAMES[] = {SMP_SET_NAMES_INIT};")
|
||||
L.append("#define SLC_BREAK_INIT {0}")
|
||||
return "\n".join(L) + "\n"
|
||||
|
||||
|
||||
def clipper_wrap(text):
|
||||
"""the sets for the groovebox; none for the Clipper synth (CLIPPER_SYNTH, core.h, defined before this header)"""
|
||||
head, sep, body = text.partition("#include <stdint.h>\n")
|
||||
return head + sep + "#if !CLIPPER_SYNTH\n" + body + "#else" + CLIPPER_EMPTY + "#endif\n"
|
||||
return head + sep + "#if !CLIPPER_SYNTH\n" + body + "#else" + clipper_block() + "#endif\n"
|
||||
|
||||
|
||||
def main(out):
|
||||
|
||||
@@ -463,21 +463,15 @@
|
||||
<a class="brand" href="#sound" aria-label="Clipper">
|
||||
<svg viewBox="20 20 731 220" role="img" aria-hidden="true">
|
||||
<path d="M59.29 200.71 A100.00 100.00 0 1 1 200.71 200.71" fill="none" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="84.00" y1="70.00" x2="84.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="67.00,149.00 101.00,149.00 103.00,168.00 65.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="69.50,125.00 98.50,125.00 100.50,144.00 67.50,144.00" fill="#FFC618"/>
|
||||
<polygon points="72.00,101.00 96.00,101.00 98.00,120.00 70.00,120.00" fill="#1ECC70"/>
|
||||
<line x1="130.00" y1="44.00" x2="130.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="113.00,142.50 147.00,142.50 149.00,168.00 111.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="115.50,112.00 144.50,112.00 146.50,137.50 113.50,137.50" fill="#FFC618"/>
|
||||
<polygon points="118.00,81.50 142.00,81.50 144.00,107.00 116.00,107.00" fill="#1ECC70"/>
|
||||
<polygon points="120.50,51.00 139.50,51.00 141.50,76.50 118.50,76.50" fill="#287CFF"/>
|
||||
<line x1="176.00" y1="70.00" x2="176.00" y2="180.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<polygon points="159.00,149.00 193.00,149.00 195.00,168.00 157.00,168.00" fill="#FF621A"/>
|
||||
<polygon points="161.50,125.00 190.50,125.00 192.50,144.00 159.50,144.00" fill="#FFC618"/>
|
||||
<polygon points="164.00,101.00 188.00,101.00 190.00,120.00 162.00,120.00" fill="#1ECC70"/>
|
||||
<line x1="78.00" y1="186.00" x2="182.00" y2="186.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="92.00" y1="200.00" x2="168.00" y2="200.00" stroke="#F2F2F2" stroke-width="8" stroke-linecap="round"/>
|
||||
<line x1="101.32" y1="181.00" x2="104.76" y2="81.24" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="135.72" y1="181.00" x2="139.16" y2="62.32" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="168.40" y1="181.00" x2="171.84" y2="86.40" stroke="#F2F2F2" stroke-width="7" stroke-linecap="round"/>
|
||||
<polygon points="109.92,88.12 110.75,96.96 111.91,105.71 113.40,114.36 115.23,122.93 117.38,131.40 119.87,139.78 122.69,148.08 125.84,156.27 129.33,164.38 133.14,172.40 107.34,172.40" fill="#FFC618"/>
|
||||
<polygon points="144.32,69.20 145.49,79.91 146.99,90.53 148.82,101.06 150.99,111.51 153.49,121.88 156.32,132.15 159.48,142.34 162.98,152.45 166.82,162.47 170.98,172.40 141.74,172.40" fill="#1ECC70"/>
|
||||
<polygon points="177.00,93.28 177.66,101.60 178.64,109.83 179.96,117.96 181.62,126.01 183.60,133.97 185.92,141.83 188.56,149.61 191.54,157.30 194.86,164.89 198.50,172.40 174.42,172.40" fill="#287CFF"/>
|
||||
<polygon points="98.74,91.56 98.74,172.40 56.60,168.96 61.63,161.66 66.48,154.27 71.15,146.78 75.63,139.18 79.94,131.49 84.06,123.70 88.00,115.82 91.76,107.83 95.34,99.74" fill="#FF621A"/>
|
||||
<line x1="73.80" y1="175.84" x2="51.44" y2="167.24" stroke="#F2F2F2" stroke-width="5" stroke-linecap="round"/>
|
||||
<polygon points="58.32,172.40 72.56,173.79 86.81,175.05 101.07,176.16 115.33,177.14 129.61,177.99 143.89,178.69 158.17,179.26 172.47,179.69 186.77,179.98 201.08,180.14 195.92,192.18 184.76,193.14 173.59,193.97 162.42,194.66 151.25,195.21 140.07,195.62 128.89,195.89 117.70,196.03 106.51,196.03 95.32,195.89 84.12,195.62" fill="#F2F2F2"/>
|
||||
<path d="M328.98 149.28 A30.00 30.00 0 1 1 328.98 110.72" fill="none" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="364.00" y1="68.00" x2="364.00" y2="160.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
<line x1="392.00" y1="100.00" x2="392.00" y2="160.00" stroke="#F2F2F2" stroke-width="12" stroke-linecap="round"/>
|
||||
@@ -551,6 +545,7 @@
|
||||
<button id="stcmp" data-t="stCompare" aria-pressed="false"></button>
|
||||
<button id="stseta" data-t="stSetA"></button> <button id="stsetb" data-t="stSetB"></button>
|
||||
<button id="stab" data-t="stAB" disabled></button>
|
||||
<label><span data-t="stMorph"></span> <input type="range" id="stmorph" min="0" max="127" value="0" disabled></label>
|
||||
<span class="dim" id="stedited"></span>
|
||||
</p>
|
||||
<p class="bar">
|
||||
@@ -596,6 +591,13 @@
|
||||
<label><span data-t="fxStoreTo"></span> <select id="fxslot"></select></label> <button id="fxstore" data-t="fxStore"></button></p>
|
||||
<div id="fxbody"></div>
|
||||
</div>
|
||||
<!-- Clipper 0.3: the LAYER (track 2's sound with the instrument's; EDIT > LAYER): its settings by TRACK_PARAM (v4) -->
|
||||
<div class="card" id="lypanel" hidden>
|
||||
<h2 data-t="lyTitle" data-ic="symbol_keyboard"></h2>
|
||||
<p class="dim" data-t="lyHelp"></p>
|
||||
<p class="dim" id="lysound"></p>
|
||||
<div class="knobs" id="lybody"></div>
|
||||
</div>
|
||||
<!-- Clipper 0.9: the TUNING (firmware protocol v14): kept with the FM-1's settings -->
|
||||
<div class="card" id="tupanel" hidden>
|
||||
<h2 data-t="tuTitle" data-ic="ui_knob"></h2>
|
||||
@@ -776,7 +778,7 @@
|
||||
<section class="panel" id="p-projects" data-tab="projects" data-dev hidden>
|
||||
<div class="card">
|
||||
<h2 data-t="projects" data-ic="symbol_folder"></h2>
|
||||
<p class="dim" data-t="projHelp"></p>
|
||||
<p class="dim" id="projhelp" data-t="projHelp"></p>
|
||||
<div class="slots" id="slots"></div>
|
||||
</div>
|
||||
<div class="card" id="bkgroup" hidden>
|
||||
@@ -1344,7 +1346,12 @@ function fmtValue(d, v) {
|
||||
case F.NOTE: return [NOTE_NAMES[((v % 12) + 12) % 12], ""];
|
||||
case F.ONOFF: return [v ? "ON" : "OFF", ""];
|
||||
case F.STEPS: return [String(v), "STEP"];
|
||||
default: return [d.names && d.names[v - d.min] != null ? d.names[v - d.min] : String(v), d.unit || ""];
|
||||
default:
|
||||
if (d.spread && d.names && d.names.length) { /* F_INT with names: the range split evenly over them (params.c) */
|
||||
const k = d.names.length, x = Math.max(d.min, Math.min(d.max, v)) - d.min;
|
||||
return [d.names[Math.trunc(x * k / (d.max - d.min + 1))], d.unit || ""];
|
||||
}
|
||||
return [d.names && d.names[v - d.min] != null ? d.names[v - d.min] : String(v), d.unit || ""];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2152,6 +2159,7 @@ const mixer = {
|
||||
const d = parse[CMD.TRACK_DUMP](await rq(req.trackDump(i)), info);
|
||||
tr.tracks[i].pan = ids.pan == null ? null : d.p[ids.pan];
|
||||
tr.tracks[i].e0 = d.p[info.pe0]; /* the drum track: its kit */
|
||||
tr.tracks[i].p = d.p; /* (Clipper: track 2's values are the LAYER's settings) */
|
||||
}
|
||||
return tr;
|
||||
},
|
||||
@@ -4098,7 +4106,8 @@ const GLYPH = {
|
||||
const HEAD_IC = { ENV: "function_env_adsr_exp", LFO: "waveform_sine", EDIT: "ui_knob", VOICE: "symbol_keyboard",
|
||||
FX: "symbol_effector", SEL: "symbol_tuning", ARP: "control_arrow_up_down", "SEQ PATTERN": "symbol_grid",
|
||||
GLOBAL: "symbol_cog", MASTER: "ui_slider_vertical", DRUMS: "symbol_drum", INSTRUMENT: "symbol_keyboard" };
|
||||
const PAGE_IC = { FLT: "function_filter_lpf_peak", FILT: "function_filter_lpf_peak", DLY: "symbol_echo", "REV/CHO": "symbol_spring", SLICER: "symbol_grid" };
|
||||
const PAGE_IC = { FLT: "function_filter_lpf_peak", FILT: "function_filter_lpf_peak", FILTER: "function_filter_lpf_peak", DLY: "symbol_echo",
|
||||
"REV/CHO": "symbol_spring", REVERB: "symbol_spring", SLICER: "symbol_grid" };
|
||||
/* WAVE / WAVE2 choices; phase-distortion shapes without a close glyph (SPLS, RSAW, RTRI, RTRP) get none */
|
||||
const WAVE_IC = { SIN: "waveform_sine", TRI: "waveform_triangle_ac", SAW: "waveform_sawtooth_ac", SQR: "waveform_square",
|
||||
PLS: "waveform_pulse_quarter", PWM: "waveform_pulse_eighth", "S&H": "waveform_noise_step", NOIS: "waveform_noise_white",
|
||||
@@ -4121,7 +4130,7 @@ const TEXT = {
|
||||
other: "English", connect: "接続", disconnect: "切断", mock: "モック(実機なし)",
|
||||
sound: "音色", engine: "エンジン", presets: "プリセット", initSound: "音色を初期化",
|
||||
stTitle: "音色ツール", stUndo: "元に戻す", stRedo: "やり直す", stCompare: "比較(読み込み時)", stSetA: "A に記憶", stSetB: "B に記憶",
|
||||
stAB: "A / B 切替", stScope: "ランダム範囲", stAmt: "量", stRandom: "ランダム", stDiff: "読み込み時からの変更",
|
||||
stAB: "A / B 切替", stMorph: "モーフ A → B", stScope: "ランダム範囲", stAmt: "量", stRandom: "ランダム", stDiff: "読み込み時からの変更",
|
||||
stEdited: "編集済み", stSteps: "ステップ", stNoDiff: "変更なし", stScopes: ["エンジン", "エンベロープ", "モジュレーション", "エフェクト", "すべて"],
|
||||
stCmpOn: "比較中: 読み込み時の音色", stCmpOff: "編集した音色に戻しました",
|
||||
smpLoop: "ループ", smpLoopHelp: "ONE SHOT: 最後まで 1 回。LOOP: 鍵盤を押している間ファイル全体をくり返す。LOOP+TAIL: 頭のあと、押している間ループ部分をくり返し、離すと残り(テール)を最後まで鳴らす。",
|
||||
@@ -4211,7 +4220,8 @@ const TEXT = {
|
||||
mixer: "ミキサー", mixHelp: "本体の TRACKS ページと同じ 4 トラック。フェーダーはレベル(ドラムは GLO > DRUMS LEVEL)。パンはどのトラックも選択を変えずに書き込みます(0.8 のファームウェアでは一瞬そのトラックを選びます)。REC は本体での録音待機の表示です。",
|
||||
level: "レベル", pan: "パン", mute: "ミュート", rec: "REC", selectTrack: "選択", selectedTrack: "選択中",
|
||||
projHelp: "プロジェクトは本体の状態をまとめて保存します: 4 トラックの音色とパターン、選択中のトラック、グローバル設定。",
|
||||
bkTitle: "バックアップ", bkHelp: "FM-1 の中身をすべて 1 つのファイルに保存します: 今の曲、プロジェクト 1〜4(ソングのセクション A〜D)、ユーザープリセット、FM6 の音色バンク、サンプル USR1〜4、設定(色、キャリブレーション、ソング、ライト)。復元すると、本体はファイルの状態に戻ります(今の内容は上書きされます)。",
|
||||
projHelpSyn: "プロジェクトはシンセの状態をまとめて保存します: メインの音色とパターン、レイヤーの音色と設定、グローバル設定(ディレイ、リバーブ、コーラス、マスター)。",
|
||||
bkTitle: "バックアップ", bkHelp: "FM-1 の中身をすべて 1 つのファイルに保存します: 今の曲、プロジェクト 1〜4(ソングのセクション A〜D)、ユーザープリセット、FM6/FMX の音色バンク、サンプル USR1〜4、設定(色、キャリブレーション、チューニング、ソング、ライト)。復元すると、本体はファイルの状態に戻ります(今の内容は上書きされます)。",
|
||||
bkSave: "バックアップを保存", bkLoad: "ファイルから復元", bkSaving: "バックアップ中 ", bkSaved: "バックアップを保存しました",
|
||||
bkRestoring: "復元中 ", bkRestored: "復元しました", bkConfirm: "FM-1 の今の内容をすべてこのバックアップで置き換えます。続けますか?",
|
||||
bkBad: "Clipper のバックアップファイルではないか、壊れています: ", bkStop: "FM-1 の再生を止めてから、もう一度復元してください。",
|
||||
@@ -4220,8 +4230,10 @@ const TEXT = {
|
||||
smpSlots: "サンプルスロット", userBank: "ユーザープリセット", none: "なし",
|
||||
fm6Title: "FM6 の音色(6 オペレーター)", fm6Help: "FM6 エンジンの音色をまるごと編集します。本体のノブ(EDIT の 8 つ)はこの音色の上にかかるマクロです。トラックへ送るとすぐ鳴り、PTCH を回すか別の音を読み込むまでそのトラックの音色になります(プロジェクトは PTCH だけを保存します)。バンク(B1〜B27)に保存すると PTCH で呼び出せます(本体を停止してから)。",
|
||||
hyTitle: "HYBRID の音色(Clipper)", hyHelp: "HYBRID エンジンの音色をまるごと編集します。ボイスごとに 3 オシレーター、2 フィルター、専用のエンベロープ 2 つと LFO 2 つ、16 スロットのモジュレーション・マトリクス。本体のノブはこの上の 8 つの値です(CUT、RES、FENV、PTCH、マクロ M1〜M4 はマトリクスのソース)。LIVE ではすぐに音が変わります。PTCH を回すか別の音を読み込むまでトラックの音色です(プロジェクトは PTCH だけ保存:残したい音色は書き出してください)。",
|
||||
msTitle: "MOD SEQ(16ステップ×4レーン)", msHelp: "サウンドのモジュレーション・シーケンサー:16ステップ(-8..7)の4レーン。RATEで進み(LFOグループのMOD SEQ 2:RATE・LEN・SMTH・START)、マトリックスのソースSEQ1..SEQ4になります。バーを上下にドラッグ、レーン名のクリックでSHAPEの対象を選択。ライブで変更ごとに送信。サウンドと一緒に保存(ユーザープリセット・プロジェクト)。",
|
||||
msTitle: "MOD SEQ(16ステップ×4レーン)", msHelp: "サウンドのモジュレーション・シーケンサー:16ステップ(-8..7)の4レーン。RATEで進み(サウンドの MOD SEQ カード:RATE・LEN・SMTH・START)、マトリックスのソースSEQ1..SEQ4になります。バーを上下にドラッグ、レーン名のクリックでSHAPEの対象を選択。ライブで変更ごとに送信。サウンドと一緒に保存(ユーザープリセット・プロジェクト)。",
|
||||
msShape: "シェイプ", msApply: "レーンに適用",
|
||||
lyTitle: "レイヤー(2つ目の音色)", lyHelp: "トラック2の音色をメインの音色と一緒に鳴らします。LAYER:すべての音を両方で。SPLIT:SPLIT より下の鍵盤をレイヤーで。MULTI:レイヤーを専用の MIDI チャンネル(CH)で鳴らす2パート。OCT はレイヤーのオクターブ、LEVEL・PAN・FILT はレイヤー自身の値。レイヤーの音色の選択と SWAP は本体の EDIT > LAYER で。",
|
||||
lySound: "レイヤーの音色:",
|
||||
tuTitle: "チューニング(音律・Scala)", tuHelp: "FM-1全体のチューニング:平均律、純正律、ピタゴラス、ミーントーン、ヴェルクマイスターIII、キルンベルガーIII、マカーム(ラースト・バヤーティー)、スレンドロ、ペロッグ、19/24/31平均律、またはScalaの.sclファイルのUSER音階(48音まで。キーごとに次の音度、C4+ROOTが1/1)。FM-1ではGLO > TUNING。",
|
||||
tuSystem: "音律", tuRoot: "ルート", tuLoad: ".sclを読み込む", tuBad: "FM-1で使えない音階(.scl、1〜48音、上昇、周期内):", tuUser: "USER音階:", tuSendBtn: "FM-1へ送信",
|
||||
fxTitle: "FMXパッチ(6オペレーター・自由なルーティング)", fxHelp: "FMXエンジンのパッチ全体:オペレーターごとの波形とモード(PM・FM・RING)、比率または固定周波数、エンベロープ。どのオペレーターも他のどれでも変調でき(自分自身はフィードバック)、どれでも出力へ。テンプレート(DX7の32種と8種)から始めて自由に変更。STOREでバンク(B1..B27)に保存(再生を止めてから)。",
|
||||
@@ -4272,6 +4284,7 @@ const TEXT = {
|
||||
kitNo4: "このファームウェアには USR4 がありません(新しいファームウェアが必要です)。",
|
||||
kitStep3: "FM-1 に送る",
|
||||
kitWhereFM1: "FM-1 では: トラック 4(ドラム)→ KIT = {x}。保存したプロジェクトもこのキットを覚えています。",
|
||||
smpIntroSyn: "FM-1 に入れる自分の音。スロットは 4 つ(USR1〜USR4)、各約 7 秒。スロットには SAMPLE エンジンで鳴らす楽器(SET = USR1〜USR4)か、WAVE エンジン用のウェーブテーブル(TABL)が入ります。",
|
||||
smpIntro: "FM-1 に入れる自分の音。スロットは 4 つ(USR1〜USR4)、各約 7 秒。スロットには楽器(トラック 1〜3 の SAMPLE エンジンで鳴らす)か、ドラムキット(「ドラムキット」ページで作る)が入ります。",
|
||||
smpStep1: "スロットを選ぶ",
|
||||
smpStep2: "音を作る",
|
||||
@@ -4299,7 +4312,7 @@ const TEXT = {
|
||||
smpPlaying: "トラック",
|
||||
smpFull: "1 スロット 16 ファイルまで",
|
||||
chopSendBelow: "送信は下の 3 で。",
|
||||
/* Clipper 2.5: DRUM SYNTH */
|
||||
/* SLOOP 2.5: DRUM SYNTH */
|
||||
tabDrumSynth: "ドラムシンセ", dsTitle: "ドラムシンセ",
|
||||
dsHelp: "自分のシンセドラムキット SYN1〜SYN4(ドラムトラックの KIT の最後)。音を選び、値を変えると FM-1 ですぐ鳴ります。「FM-1 に保存」でフラッシュに残ります(ソングを止めて)。値をダブルクリック: 元のキットの値に戻す。",
|
||||
dsOld: "この FM-1 のファームウェアにはドラムシンセがありません(新しいファームウェアが必要です)。",
|
||||
@@ -4311,7 +4324,7 @@ const TEXT = {
|
||||
dsBad: "FM-1 が受け付けませんでした", dsCopyAsk: "{k} を {x} のコピーにします。よろしいですか?", dsCopied: "コピーしました:",
|
||||
dsStop: "ソングを止めてから保存してください", dsFlash: "フラッシュに書けませんでした", dsSaved: "FM-1 に保存しました",
|
||||
dsFileBad: "Clipper のドラムシンセキットではありません", dsOpenAsk: "{x} を {k} に読み込みます。よろしいですか?", dsOpened: "読み込みました:",
|
||||
/* Clipper 2.5: length, piano roll, MIDI files, song */
|
||||
/* SLOOP 2.5: length, piano roll, MIDI files, song */
|
||||
lenLabel: "長さ(ステップ)", viewGrid: "グリッド", viewRoll: "ピアノロール",
|
||||
midiExport: "MIDI 書き出し", midiImportBtn: "MIDI 読み込み",
|
||||
rollLen: "音の長さ", rollUp: "オクターブ上", rollDown: "オクターブ下",
|
||||
@@ -4343,7 +4356,7 @@ const TEXT = {
|
||||
other: "日本語", connect: "Connect", disconnect: "Disconnect", mock: "Mock device (no hardware)",
|
||||
sound: "Sound", engine: "Engine", presets: "Presets", initSound: "Init sound",
|
||||
stTitle: "Sound tools", stUndo: "Undo", stRedo: "Redo", stCompare: "Compare with loaded", stSetA: "Store A", stSetB: "Store B",
|
||||
stAB: "Toggle A / B", stScope: "randomize", stAmt: "amount", stRandom: "Randomize", stDiff: "Changed since loaded",
|
||||
stAB: "Toggle A / B", stMorph: "morph A → B", stScope: "randomize", stAmt: "amount", stRandom: "Randomize", stDiff: "Changed since loaded",
|
||||
stEdited: "edited", stSteps: "steps", stNoDiff: "nothing changed", stScopes: ["Engine", "Envelopes", "Modulation", "Effects", "All"],
|
||||
stCmpOn: "Comparing: the sound as loaded", stCmpOff: "Back to your edits",
|
||||
smpLoop: "Loop", smpLoopHelp: "ONE SHOT: plays once to the end. LOOP: the whole file again and again while the key is held; let go, it ends its round. LOOP+TAIL: the start, then the loop again and again while held; let go, the rest (the tail) to the end.",
|
||||
@@ -4433,7 +4446,8 @@ const TEXT = {
|
||||
mixer: "Mixer", mixHelp: "The four tracks of the device's TRACKS page. The fader is the level (drums: GLO > DRUMS LEVEL). Pan is written to any track without changing the selection (firmware 0.8: by selecting it for a moment). REC shows a track armed for live recording on the device.",
|
||||
level: "Level", pan: "Pan", mute: "Mute", rec: "REC", selectTrack: "Select", selectedTrack: "Selected",
|
||||
projHelp: "A project keeps the whole device state: the sound and pattern of all four tracks, the selected track and the global settings.",
|
||||
bkTitle: "Backup", bkHelp: "Everything on the FM-1 in one file: the music you are working on, the projects 1–4 (the song sections A–D), the user presets, the FM6 patch bank, the samples USR1–USR4 and the settings (colours, calibration, the song, the lights). Restoring puts the FM-1 back as it was in the file (what is on it now is replaced).",
|
||||
projHelpSyn: "A project keeps the whole synth: the instrument's sound and pattern, the layer's sound and settings, and the global settings (delay, reverb, chorus, master).",
|
||||
bkTitle: "Backup", bkHelp: "Everything on the FM-1 in one file: the music you are working on, the projects 1–4 (the song sections A–D), the user presets, the FM6 / FMX patch bank, the samples USR1–USR4 and the settings (colours, calibration, the tuning, the song, the lights). Restoring puts the FM-1 back as it was in the file (what is on it now is replaced).",
|
||||
bkSave: "Save a backup", bkLoad: "Restore from a file", bkSaving: "Backing up ", bkSaved: "Backup saved",
|
||||
bkRestoring: "Restoring ", bkRestored: "Restored", bkConfirm: "Replace everything on the FM-1 with this backup?",
|
||||
bkBad: "Not a Clipper backup, or damaged: ", bkStop: "Stop the FM-1 (PLAY), then restore again.",
|
||||
@@ -4442,8 +4456,10 @@ const TEXT = {
|
||||
smpSlots: "Sample slots", userBank: "User presets", none: "none",
|
||||
fm6Title: "FM6 patch (six operators)", fm6Help: "Edit the whole patch of the FM6 engine. The device's knobs (the eight EDIT values) are macros on top of it. Sent to a track it plays at once and stays that track's patch until PTCH turns or another sound loads (a project keeps PTCH only); stored in the bank (B1..B27) it is a PTCH value (stop the device first).",
|
||||
hyTitle: "HYBRID patch (Clipper)", hyHelp: "The whole patch of the HYBRID engine: three oscillators, two filters, two envelopes and two LFOs of its own per voice, and a 16-slot modulation matrix. The device's knobs play eight values on top of it (CUT, RES, FENV, PTCH and the macros M1..M4: matrix sources). With LIVE each change is heard at once; the patch stays the track's until PTCH turns or another sound loads (a project keeps PTCH: export the patch to keep it).",
|
||||
msTitle: "MOD SEQ (four lanes of 16 steps)", msHelp: "The sound's modulation sequencer: four lanes of 16 steps (-8..7), stepping at RATE (MOD SEQ 2 in the LFO group: RATE, LEN, SMTH, START), read by the matrix as SEQ1..SEQ4. Drag a bar up or down; click a lane's name to pick it for SHAPE. LIVE sends each change. Kept with the sound (user presets, projects).",
|
||||
msTitle: "MOD SEQ (four lanes of 16 steps)", msHelp: "The sound's modulation sequencer: four lanes of 16 steps (-8..7), stepping at RATE (the sound's MOD SEQ card: RATE, LEN, SMTH, START), read by the matrix as SEQ1..SEQ4. Drag a bar up or down; click a lane's name to pick it for SHAPE. LIVE sends each change. Kept with the sound (user presets, projects).",
|
||||
msShape: "shape", msApply: "Apply to the lane",
|
||||
lyTitle: "Layer (a second sound)", lyHelp: "Track 2's sound played with the instrument's. LAYER: every note on both. SPLIT: the keys below SPLIT on the layer. MULTI: the layer on its own MIDI channel (CH), two parts. OCT shifts the layer's notes; LEVEL, PAN and FILT are its own. The layer's sound and SWAP: on the FM-1, EDIT > LAYER.",
|
||||
lySound: "Layer sound:",
|
||||
tuTitle: "Tuning (scales, temperaments, Scala)", tuHelp: "The FM-1's tuning, for every sound: equal temperament, just intonation, Pythagorean, meantone, Werckmeister III, Kirnberger III, the maqams Rast and Bayati, slendro, pelog, 19 / 24 / 31-EDO, or a USER scale from a Scala .scl file (up to 48 notes; each key the next degree, C4 + ROOT its 1/1). On the FM-1: GLO > TUNING.",
|
||||
tuSystem: "system", tuRoot: "root", tuLoad: "Load a .scl", tuBad: "Not a scale the FM-1 takes (.scl, 1..48 notes, rising, inside the period):", tuUser: "USER scale:", tuSendBtn: "send to the FM-1",
|
||||
fxTitle: "FMX patch (six operators, any routing)", fxHelp: "The whole patch of the FMX engine: each operator its own wave (sine, triangle, saw, square, OPL halves and quarters, pulse, 8-bit sine, noise) and its own mode (PM as the DX7, true FM, RING), a ratio or a fixed frequency, an envelope; any operator into any other (its own: feedback) and any to the output. Start from a template (the DX7's 32 and 8 more), then change any connection. The device's EDIT knobs are macros on top (PTCH, ALG, MOD, FB, TIME, DTN, VEL, KTRK). With LIVE each change is heard at once; STORE keeps it in a bank slot (B1..B27, stop the device first): then it is a PTCH value, kept with presets and projects.",
|
||||
@@ -4494,6 +4510,7 @@ const TEXT = {
|
||||
kitNo4: "This firmware has no USR4 (a newer firmware).",
|
||||
kitStep3: "Send it to the FM-1",
|
||||
kitWhereFM1: "On the FM-1: track 4 (drums) → KIT = {x}. A project you save remembers the kit.",
|
||||
smpIntroSyn: "Your own sounds on the FM-1. Four slots (USR1–USR4) of about 7 s each. A slot holds an instrument, played with the SAMPLE engine (SET = USR1–USR4), or a wavetable for the WAVE engine (TABL).",
|
||||
smpIntro: "Your own sounds on the FM-1. Four slots (USR1–USR4) of about 7 s each. A slot holds an instrument, played by a synth track with the SAMPLE engine, or a drum kit (made on the Drum kit page).",
|
||||
smpStep1: "Choose a slot",
|
||||
smpStep2: "Make the sound",
|
||||
@@ -4521,7 +4538,7 @@ const TEXT = {
|
||||
smpPlaying: "Track",
|
||||
smpFull: "A slot takes 16 files at most",
|
||||
chopSendBelow: "Sending: step 3 below.",
|
||||
/* Clipper 2.5: DRUM SYNTH */
|
||||
/* SLOOP 2.5: DRUM SYNTH */
|
||||
tabDrumSynth: "Drum synth", dsTitle: "Drum synth",
|
||||
dsHelp: "Your own synthesised drum kits, SYN1 to SYN4 (the last kits of the drum track's KIT). Pick a sound, change its values: the FM-1 plays it at once. Store on the FM-1 keeps them in flash (stop the song first). Double-click a value: back to the kit it started from.",
|
||||
dsOld: "This FM-1's firmware has no drum synth (a newer firmware).",
|
||||
@@ -4533,7 +4550,7 @@ const TEXT = {
|
||||
dsBad: "The FM-1 refused it", dsCopyAsk: "Make {k} a copy of {x}?", dsCopied: "Copied:",
|
||||
dsStop: "Stop the song first, then store", dsFlash: "Could not write the flash", dsSaved: "Stored on the FM-1",
|
||||
dsFileBad: "Not a Clipper drum synth kit", dsOpenAsk: "Load {x} into {k}?", dsOpened: "Loaded:",
|
||||
/* Clipper 2.5: length, piano roll, MIDI files, song */
|
||||
/* SLOOP 2.5: length, piano roll, MIDI files, song */
|
||||
lenLabel: "Length (steps)", viewGrid: "Grid", viewRoll: "Piano roll",
|
||||
midiExport: "Export MIDI", midiImportBtn: "Import MIDI",
|
||||
rollLen: "Note length", rollUp: "Octave up", rollDown: "Octave down",
|
||||
@@ -4636,6 +4653,8 @@ function renderPanels() {
|
||||
if (hint) $("hint").textContent = t(hint);
|
||||
$("trackbar").hidden = !(ready && hasTracks() && !syn && TRACK_TABS.has(want));
|
||||
$("navtrack").textContent = t(syn ? "navSynth" : "navTrack");
|
||||
$("projhelp").dataset.t = syn ? "projHelpSyn" : "projHelp"; /* (Clipper: one instrument and its layer) */
|
||||
$("projhelp").textContent = t($("projhelp").dataset.t);
|
||||
const nb = $("tabs").querySelector(`button[data-tab="${want}"]`); /* the page's title: its name in the side bar */
|
||||
$("pagetitle").textContent = nb ? t(nb.dataset.t) : "";
|
||||
if (want === "kits") renderKits();
|
||||
@@ -4700,25 +4719,81 @@ const layoutKnown = (info) => EXPECT.gcount.includes(info.gcount) &&
|
||||
[EXPECT, EXPECT_04, EXPECT_06, EXPECT_08, EXPECT_09].some((x) => info.pcount === x.pcount && info.pe0 === x.pe0);
|
||||
const MX_PAGES = [1, 2, 3, 4, 5, 6].map((k) => ["MATRIX " + k, 0, [57 + 3 * k, 58 + 3 * k, 59 + 3 * k]]);
|
||||
const P = { LEVEL: 0, SLEN: 29, CHORD: 49 };
|
||||
const LAYOUT = (pe0) => [
|
||||
{ t: "ENV", pages: [["ENV", 0, [1, 2, 3, 4]], ["ENV DEST", 0, [5, 6, 7, 8]], ...(pe0 >= 78 ? [["ENV 2", 0, [56, 57, 58, 59]]] : [])] },
|
||||
{ t: "LFO", pages: [["LFO", 0, [9, 10, 11, 12]], ["LFO DEST", 0, [13, 14, 15, 16]], ...(pe0 >= 78 ? [["LFO 2", 0, [53, 54, 55]]] : [])] },
|
||||
...(pe0 >= 78 ? [{ t: "LFO", title: "MATRIX", pages: MX_PAGES }] : []),
|
||||
/* Clipper (pe0 >= 78) as its device pages (params.c PAGES, CLIPPER_SYNTH): the slicer's slots are LFO > MOD (VEL>F MW>
|
||||
AT>) and FX > FILTER's MODL; the drum globals the master EQ+COMP, DUCK / ROLL the reverb's TYPE / PRE; no MUTE (one
|
||||
instrument). SYSTEM: MIDI OUT, SYNC, MIDI IN (kept with the FM-1's settings) */
|
||||
const LAYOUT = (pe0) => pe0 >= 78 ? [
|
||||
{ t: "ENV", pages: [["ENV", 0, [1, 2, 3, 4]], ["ENV DEST", 0, [5, 6, 7, 8]], ["ENV 2", 0, [56, 57, 58, 59]]] },
|
||||
{ t: "LFO", pages: [["LFO", 0, [9, 10, 11, 12]], ["LFO DEST", 0, [13, 14, 15, 16]], ["MOD", 0, [45, 47, 48]], ["LFO 2", 0, [53, 54, 55]]] },
|
||||
{ t: "LFO", title: "MATRIX", pages: MX_PAGES },
|
||||
...(pe0 >= 89 ? [{ t: "LFO", title: "MOD SEQ", pages: [["MOD SEQ 2", 0, [83, 84, 85, 86]]] }] : []),
|
||||
{ t: "EDIT", engine: true, pages: [["EDIT 1", 0, [pe0, pe0 + 1, pe0 + 2, pe0 + 3]], ["EDIT 2", 0, [pe0 + 4, pe0 + 5, pe0 + 6, pe0 + 7]]] },
|
||||
{ t: "VOICE", pages: [["LEVEL", 0, [0]], ["VOICE", 0, [37, 38, 41, 42]], ["VOICE 2", 0, [43, 44, 39, 40]],
|
||||
...(pe0 >= 91 ? [["VINTAGE", 0, [89]]] : [])] },
|
||||
{ t: "FX", pages: [["FX", 0, [33, 34, 35, 36]], ["FILTER", 0, [50]], ...(pe0 >= 83 ? [["INSERT", 0, [78, 79, 80, 81]], ["INSERT 2", 0, [82]]] : []),
|
||||
["SLICER", 0, [45, 46, 47, 48]], ["DLY", 1, [4, 5, 6, 7]], ["REV/CHO", 1, [8, 9, 10, 11]]] },
|
||||
{ t: "VOICE", pages: [["LEVEL", 0, [0]], ["VOICE", 0, [37, 38, 41, 42]], ["VOICE 2", 0, pe0 >= 91 ? [43, 44, 39, 89] : [43, 44, 39]]] },
|
||||
{ t: "FX", pages: [["FX", 0, [33, 34, 35, 36]], ["FILTER", 0, [50, 46]], ...(pe0 >= 83 ? [["INSERT", 0, [78, 79, 80, 81]], ["INSERT 2", 0, [82]]] : []),
|
||||
["DLY", 1, [4, 5, 6, 7]], ["REVERB", 1, [28, 8, 9, 30]], ["CHORUS", 1, [10, 11]]] },
|
||||
{ t: "SEL", pages: [["SEL", 0, [25, 26, 27, 49]], ["SEL 2", 0, [28, 51, 52]]] },
|
||||
{ t: "ARP", pages: [["ARP", 0, [17, 18, 19, 20]], ["ARP 2", 0, [21, 22, 23, 24]], ...(pe0 >= 89 ? [["SPICE", 0, pe0 >= 91 ? [87, 88, 90] : [87, 88]]] : [])] },
|
||||
{ t: "SEQ PATTERN", tab: "seqgroups", pages: [["PATTERN", 0, [29, 30, 31, 32]]] },
|
||||
{ t: "GLOBAL", tab: "setgroups", pages: [["GLOBAL", 1, [0, 1, 2, 3]]] },
|
||||
{ t: "MASTER", tab: "setgroups", pages: [["MASTER", 1, [27, 29]]] },
|
||||
{ t: "MASTER", title: "EQ+COMP", tab: "setgroups", pages: [["EQ+COMP", 1, [25, 24, 26, 32]]] },
|
||||
{ t: "GLOBAL", title: "SYSTEM", tab: "setgroups", sys: true, pages: [["SYSTEM", 1, [12, 13, 14]]] },
|
||||
] : [
|
||||
{ t: "ENV", pages: [["ENV", 0, [1, 2, 3, 4]], ["ENV DEST", 0, [5, 6, 7, 8]]] },
|
||||
{ t: "LFO", pages: [["LFO", 0, [9, 10, 11, 12]], ["LFO DEST", 0, [13, 14, 15, 16]]] },
|
||||
{ t: "EDIT", engine: true, pages: [["EDIT 1", 0, [pe0, pe0 + 1, pe0 + 2, pe0 + 3]], ["EDIT 2", 0, [pe0 + 4, pe0 + 5, pe0 + 6, pe0 + 7]]] },
|
||||
{ t: "VOICE", pages: [["LEVEL", 0, [0]], ["VOICE", 0, [37, 38, 41, 42]], ["VOICE 2", 0, [43, 44, 39, 40]]] },
|
||||
{ t: "FX", pages: [["FX", 0, [33, 34, 35, 36]], ["FILTER", 0, [50]],
|
||||
["SLICER", 0, [45, 46, 47, 48]], ["DLY", 1, [4, 5, 6, 7]], ["REV/CHO", 1, [8, 9, 10, 11]]] },
|
||||
{ t: "SEL", pages: [["SEL", 0, [25, 26, 27, 49]], ["SEL 2", 0, [28, 51, 52]]] },
|
||||
{ t: "ARP", pages: [["ARP", 0, [17, 18, 19, 20]], ["ARP 2", 0, [21, 22, 23, 24]]] },
|
||||
{ t: "SEQ PATTERN", tab: "seqgroups", pages: [["PATTERN", 0, [29, 30, 31, 32]]] },
|
||||
{ t: "GLOBAL", tab: "setgroups", pages: [["GLOBAL", 1, [0, 1, 2, 3]]] },
|
||||
{ t: "MASTER", tab: "setgroups", pages: [["MASTER", 1, [27, 28, 29, 30]]] },
|
||||
{ t: "DRUMS", tab: "setgroups", pages: [["DRUMS", 1, [24, 25, 26, 32]]] },
|
||||
];
|
||||
/* globals that are actions or placeholders on the device: buttons instead, or hidden */
|
||||
const G_SKIP = new Set(["SLOT", "NAME", "LOAD", "SAVE", "ENG", "SET", "CLRSQ", "INIT", "MIDI", "SYNC", "ROUT", "IN", "CPU", "NEW"]);
|
||||
/* Clipper: what the device shows and DESC does not (params.c track_desc; ed_tdesc gives the static ones): a matrix DST's
|
||||
E1..E8 named as the engine's EDIT values; the INSERT's A B C as its TYPE means them (ins_desc: SOFT..FUZZ, CRUSH, the
|
||||
swept ones, the JUNO chorus); 0.9: SPICE / DICE as MUTAT / SEED while the arp's MODE is TURNG (15) */
|
||||
const INS_BITS = Array.from({ length: 16 }, (_, i) => String(i + 1));
|
||||
const INS_RATE = ["689", "919", "1.1k", "1.4k", "1.8k", "2.2k", "2.8k", "3.7k", "4.4k", "5.5k", "7.4k", "8.8k", "11k", "15k", "22k", "44k"];
|
||||
const INS_DESC = [
|
||||
[["DRIVE", F.PCT, 64], ["TONE", F.CUTOFF, 96], ["LEVEL", F.DB, 96]],
|
||||
[["BITS", F.INT, 64, INS_BITS], ["RATE", F.INT, 96, INS_RATE, "Hz"], ["LPF", F.CUTOFF, 96]],
|
||||
[["RATE", F.LFOHZ, 64], ["DEPTH", F.PCT, 96], ["FDBK", F.PCT, 96]],
|
||||
[["WIDTH", F.PCT, 127], ["TONE", F.CUTOFF, 100], ["NOISE", F.PCT, 0]],
|
||||
];
|
||||
const INS_NTYPE = 12, AM_TURING = 15; /* (params.c N_ITYPE: OFF .. JUN12; seq.c AM_TURING) */
|
||||
function synDesc(id, d, info = dev && dev.info, p = dev && dev.dump && dev.dump.p, pdesc = dev && dev.pdesc) {
|
||||
if (!d || !info || info.pe0 < 78 || !p) return d;
|
||||
const pe0 = info.pe0;
|
||||
if (id >= 60 && id <= 77 && (id - 60) % 3 === 1 && d.names.length >= 15) {
|
||||
const names = d.names.slice();
|
||||
for (let k = 0; k < 8; k++) { const e = pdesc && pdesc[pe0 + k]; if (e && e.label && e.label[0] !== "-") names[7 + k] = e.label; }
|
||||
return { ...d, names };
|
||||
}
|
||||
if (id >= 79 && id <= 81 && pe0 >= 83) {
|
||||
const ty = p[78];
|
||||
if (!(ty > 0 && ty < INS_NTYPE)) return d;
|
||||
const [label, fmt, def, names, unit] = INS_DESC[ty < 5 ? 0 : ty === 5 ? 1 : ty < 9 ? 2 : 3][id - 79];
|
||||
return { ...d, label, fmt, min: 0, max: 127, def, names: names || [], spread: !!names, unit: unit || "" };
|
||||
}
|
||||
if ((id === 87 || id === 88) && pe0 >= 91 && p[17] === AM_TURING) return { ...d, label: id === 87 ? "MUTAT" : "SEED" };
|
||||
return d;
|
||||
}
|
||||
/* the INSERT's TYPE or the arp's MODE changed: the dependent controls' labels and values again */
|
||||
function synRelabel() {
|
||||
for (const id of [79, 80, 81, 87, 88]) {
|
||||
const k = key(0, id), c = ctl.get(k), d = c && synDesc(id, dev.pdesc[id]);
|
||||
if (!d || (d.label === c.desc.label && d.fmt === c.desc.fmt && d.def === c.desc.def)) continue;
|
||||
c.desc = d;
|
||||
c.row.querySelector(".kl").textContent = d.label;
|
||||
c.input.title = c.out.title = d.label;
|
||||
showValue(k, dev.dump.p[id], false);
|
||||
}
|
||||
}
|
||||
const key = (s, id) => s + ":" + id;
|
||||
const gEng = () => { const i = dev.gdesc.findIndex((d) => d && d.label === "ENG"); return i >= 0 ? i : 20; };
|
||||
const pSlen = () => { const i = dev.pdesc.findIndex((d) => d && d.fmt === F.STEPS); return i >= 0 ? i : P.SLEN; };
|
||||
@@ -5024,7 +5099,7 @@ function buildGroups() {
|
||||
g.engine ? `EDIT ${info.engines[dev.dump.engine] || ""}` : g.title || g.t));
|
||||
let pages = 0;
|
||||
for (const [title, s, ids] of g.pages) {
|
||||
const rows = ids.map((id) => paramRow(s, id)).filter(Boolean);
|
||||
const rows = ids.map((id) => paramRow(s, id, g.sys)).filter(Boolean);
|
||||
if (!rows.length) continue;
|
||||
const tt = g.engine && (dev.titles[dev.dump.engine] || [])[g.pages.findIndex((x) => x[0] === title)];
|
||||
if (g.pages.length > 1) div.append(el("h3", { ic: PAGE_IC[tt || title], text: tt || title }));
|
||||
@@ -5049,9 +5124,9 @@ function buildGroups() {
|
||||
for (const [id, divs] of Object.entries(groups)) $(id).replaceChildren(...divs);
|
||||
}
|
||||
|
||||
function paramRow(s, id) {
|
||||
const d = s ? dev.gdesc[id] : dev.pdesc[id];
|
||||
if (!visible(d) || (s === 1 && G_SKIP.has(d.label))) return null;
|
||||
function paramRow(s, id, sys = false) { /* sys: SYSTEM's MIDI / SYNC / IN shown (G_SKIP elsewhere) */
|
||||
const d = s ? dev.gdesc[id] : synDesc(id, dev.pdesc[id]);
|
||||
if (!visible(d) || (s === 1 && !sys && G_SKIP.has(d.label))) return null;
|
||||
const k = key(s, id);
|
||||
let input;
|
||||
if (d.fmt === F.ENUM || d.fmt === F.NOTE || d.fmt === F.ONOFF) {
|
||||
@@ -5070,7 +5145,7 @@ function paramRow(s, id) {
|
||||
input.addEventListener("pointerdown", () => { dragging = k; });
|
||||
input.addEventListener("input", () => userSet(s, id, +input.value, false));
|
||||
input.addEventListener("change", () => userSet(s, id, +input.value, true));
|
||||
input.addEventListener("dblclick", () => { input.value = d.def; userSet(s, id, d.def, true); });
|
||||
input.addEventListener("dblclick", () => { const df = (ctl.get(k) || { desc: d }).desc.def; input.value = df; userSet(s, id, df, true); });
|
||||
/* fine adjust: wheel over the focused slider, Shift+arrows in steps of 10 (plain arrows are native) */
|
||||
const nudge = (dv) => {
|
||||
const nv = Math.max(d.min, Math.min(d.max, +input.value + dv));
|
||||
@@ -5135,6 +5210,7 @@ function showValue(k, v, force) {
|
||||
c.input.style.setProperty("--a", Math.min(p, z).toFixed(1) + "%");
|
||||
c.input.style.setProperty("--p", Math.max(p, z).toFixed(1) + "%");
|
||||
}
|
||||
if (!c.scope && (c.id === 78 || c.id === 17) && dev && dev.info.pe0 >= 78) synRelabel(); /* (Clipper: INSERT TYPE, ARP MODE) */
|
||||
}
|
||||
/* the user is working on this control: polling and pushes must not move it */
|
||||
function touched(k) {
|
||||
@@ -5236,8 +5312,9 @@ function stGroups() {
|
||||
if (g.tab || g.t === "SEL") continue;
|
||||
const dst = g.engine ? out.engine : g.t === "ENV" ? out.env : g.t === "LFO" ? out.mod : g.t === "FX" ? out.fx : out.other;
|
||||
for (const [, sc, ids] of g.pages) if (!sc) for (const id of ids)
|
||||
if (!skip.has(id) && visible(dev.pdesc[id]) && !(g.t === "ENV" && dev.pdesc[id].label === "FX")) dst.push(id); /* (ENV > FX: the
|
||||
sound's level trim, the device's: not a sound value to move) */
|
||||
if (!skip.has(id) && visible(dev.pdesc[id]) && !(g.t === "ENV" && /^(FX|TRIM)$/.test(dev.pdesc[id].label))) dst.push(id); /* (ENV >
|
||||
FX, TRIM since: the sound's level trim, the presets': not a sound value
|
||||
to move) */
|
||||
}
|
||||
return out;
|
||||
}
|
||||
@@ -5346,7 +5423,7 @@ function stRender() {
|
||||
if (!on) return;
|
||||
$("stundo").disabled = !ST.hist.length;
|
||||
$("stredo").disabled = !ST.fut.length;
|
||||
$("stab").disabled = !(ST.a && ST.b);
|
||||
$("stab").disabled = $("stmorph").disabled = !(ST.a && ST.b);
|
||||
$("sthist").textContent = `${ST.hist.length} / ${ST.fut.length} ${t("stSteps")}`;
|
||||
const sc = $("stscope");
|
||||
if (sc.options.length !== 5) sc.replaceChildren(...t("stScopes").map((n, i) => el("option", { value: i, text: n })));
|
||||
@@ -5368,6 +5445,30 @@ $("stab").addEventListener("click", async () => {
|
||||
$("stab").classList.toggle("on", !!ST.ab);
|
||||
await stApply(ST.ab ? ST.b : ST.a);
|
||||
});
|
||||
/* EDIT > MORPH (ui_synth.c syn_morph_apply): between A and B, 0..127; a switch (a name list) at the half way, two engines:
|
||||
the nearer end's sound */
|
||||
function stMorph(m) {
|
||||
const a = ST.a, b = ST.b;
|
||||
if (!dev || !a || !b) return;
|
||||
if (a.e !== b.e || dev.dump.engine !== a.e) {
|
||||
const s = a.e !== b.e && m >= 64 ? b : a;
|
||||
if (dev.dump.engine !== s.e && !busy) stApply(s);
|
||||
return;
|
||||
}
|
||||
ST.busy = true;
|
||||
try {
|
||||
for (const id of stIds()) {
|
||||
const d = dev.pdesc[id], x = a.p[id], y = b.p[id];
|
||||
if (x === y || x == null || y == null) continue;
|
||||
const sw = d.fmt === F.ENUM || d.fmt === F.ONOFF || d.fmt === F.NOTE || (d.names && d.names.length);
|
||||
const v = sw ? (m < 64 ? x : y) : x + Math.trunc(((y - x) * m + (y > x ? 63 : -63)) / 127);
|
||||
if (dev.dump.p[id] !== v) userSet(0, id, v, true);
|
||||
}
|
||||
} finally { ST.busy = false; }
|
||||
stLater();
|
||||
}
|
||||
$("stmorph").addEventListener("pointerdown", () => { if (dev && ST.a && ST.b) stPush(stSnap()); });
|
||||
$("stmorph").addEventListener("input", () => stMorph(+$("stmorph").value));
|
||||
$("strand").addEventListener("click", stRandom);
|
||||
$("stamt").addEventListener("input", () => { $("stamtv").textContent = $("stamt").value; });
|
||||
window.addEventListener("keydown", (e) => {
|
||||
@@ -6528,7 +6629,7 @@ function renderSamples() {
|
||||
u.where = el("p", { class: "dim" });
|
||||
box.replaceChildren(el("div", { class: "card" },
|
||||
el("h2", { ic: "symbol_waves" }, t("samples")),
|
||||
el("p", { class: "dim", text: t("smpIntro") }),
|
||||
el("p", { class: "dim", text: t(synthOnly() ? "smpIntroSyn" : "smpIntro") }),
|
||||
step(1, t("smpStep1"), u.slots, el("div", { class: "bar" }, u.erase), u.slotNote),
|
||||
step(2, t("smpStep2"), u.modes, u.modeHelp, u.filesPane, u.chopPane, u.wavePane),
|
||||
step(3, t("smpStep3"), el("div", { class: "bar" }, el("span", { class: "dim", text: t("smpName") }), u.name, u.send, u.prog),
|
||||
@@ -7551,6 +7652,7 @@ function mixToSound(i) {
|
||||
}
|
||||
|
||||
function renderMixer() {
|
||||
lyRender(); /* (Clipper: the LAYER card reads the same TRACK_DUMPs) */
|
||||
const box = $("mixer");
|
||||
if (!dev || !dev.mix) { box.replaceChildren(); mixCtl.length = 0; return; }
|
||||
const m = dev.mix;
|
||||
@@ -7818,6 +7920,7 @@ setInterval(async () => {
|
||||
showValue(k, v, false);
|
||||
}
|
||||
d.dump = dump;
|
||||
if (d.info.pe0 >= 78) synRelabel(); /* (the labels by the new INSERT TYPE / ARP MODE) */
|
||||
if (engineChanged) await rereadEngineDesc();
|
||||
if (hasTracks()) await readMixer(); /* the strips (other tracks push nothing) */
|
||||
if (soundChanged) { updateBrowser(); await loadSteps(); sayK("ready"); return; }
|
||||
@@ -8632,6 +8735,73 @@ $("hyfile").addEventListener("change", async (e) => {
|
||||
sayK("hyImported", ` ${hyv.name}`);
|
||||
} catch (err) { sayK("hyBadFile", ` ${f.name}`); }
|
||||
});
|
||||
/* ----------------------------------------------------------------- LAYER --- */
|
||||
/* Clipper 0.3: the LAYER (voice.c layer_*, ui_synth.c X_LY*): track 2's sound under or beside track 1's. Its settings
|
||||
are track 2's values (core.h P_LYMODE = P_SSWING, P_LYSPLIT = P_SGATE, P_LYOCT = P_SDIV, P_LYCH = P_SLEN; LEVEL,
|
||||
PAN, TFLT its own), read with the mixer's TRACK_DUMP, written with TRACK_PARAM (v4: the selection stays). Its sound
|
||||
and SWAP: on the FM-1 (no protocol for another track's sound) */
|
||||
const LY_MODE = 31, LY_MULTI = 3;
|
||||
const LY_CTL = [
|
||||
[LY_MODE, { label: "MODE", fmt: F.ENUM, min: 0, max: 3, def: 0, names: ["OFF", "LAYER", "SPLIT", "MULTI"] }],
|
||||
[32, { label: "SPLIT", fmt: F.SPLIT, min: 16, max: 127, def: 64, names: [] }],
|
||||
[30, { label: "OCT", fmt: F.ENUM, min: 0, max: 4, def: 2, names: ["-2", "-1", "0", "+1", "+2"] }],
|
||||
[0, { label: "LEVEL", fmt: F.DB, min: 0, max: 127, def: 104, names: [] }],
|
||||
[39, { label: "PAN", fmt: F.BIPCT, min: -64, max: 63, def: 0, names: [] }],
|
||||
[50, { label: "FILT", fmt: F.FILT, min: -64, max: 63, def: 0, names: [] }],
|
||||
];
|
||||
const LY_CH = [29, { label: "CH", fmt: F.INT, min: 1, max: 16, def: 2, names: [] }]; /* (MULTI: SPLIT's knob, 0.6) */
|
||||
const lyCtls = (p) => LY_CTL.map((c, i) => (i === 1 && p[LY_MODE] === LY_MULTI ? LY_CH : c));
|
||||
const ly = { rows: new Map(), multi: null, t: {} }; /* t: id -> the user's last change (performance.now()) */
|
||||
const lyOk = () => synthOnly() && dev.info.proto >= 4 && dev.info.ntrk >= 2 && (dev.info.pe0 >= 78 || bkFwAtLeast(dev.info.version, [0, 3, 0]));
|
||||
const lyTrack = () => (dev && dev.mix && dev.mix.tracks[1] && dev.mix.tracks[1].p ? dev.mix.tracks[1] : null);
|
||||
function lyShowVal(c, v, force) {
|
||||
const [txt, unit] = fmtValue(c.d, v);
|
||||
c.out.replaceChildren(String(txt), ...(unit ? [el("small", { text: unit })] : []));
|
||||
if (force || document.activeElement !== c.input) c.input.value = String(v);
|
||||
if (c.input.type === "range") {
|
||||
const d = c.d, pc = (x) => ((x - d.min) / (d.max - d.min)) * 100, p = pc(+c.input.value), z = d.min < 0 ? pc(0) : 0;
|
||||
c.input.style.setProperty("--a", Math.min(p, z).toFixed(1) + "%");
|
||||
c.input.style.setProperty("--p", Math.max(p, z).toFixed(1) + "%");
|
||||
}
|
||||
}
|
||||
function lyRender() {
|
||||
const on = !!dev && !!dev.info && lyOk(), x = on && lyTrack();
|
||||
$("lypanel").hidden = !x;
|
||||
if (!x) { ly.rows.clear(); ly.multi = null; return; }
|
||||
const multi = x.p[LY_MODE] === LY_MULTI;
|
||||
if (ly.multi !== multi || !ly.rows.size) {
|
||||
ly.multi = multi;
|
||||
ly.rows.clear();
|
||||
$("lybody").replaceChildren(...lyCtls(x.p).map(([id, d]) => {
|
||||
const sel = d.fmt === F.ENUM;
|
||||
const input = sel ? el("select", {}, ...d.names.map((n, i) => el("option", { value: d.min + i, text: n })))
|
||||
: el("input", { type: "range", min: d.min, max: d.max, step: 1 });
|
||||
const c = { d, input, out: el("span", { class: "v", title: d.label }) };
|
||||
input.title = d.label;
|
||||
input.addEventListener(sel ? "change" : "input", () => lySet(id, +input.value));
|
||||
if (!sel) input.addEventListener("dblclick", () => { input.value = String(d.def); lySet(id, d.def); });
|
||||
ly.rows.set(id, c);
|
||||
return el("div", { class: "knob" + (sel ? " enum" : "") }, el("span", { class: "kl", text: d.label }), c.out, input);
|
||||
}));
|
||||
}
|
||||
const now = performance.now();
|
||||
for (const [id, c] of ly.rows) if (now - (ly.t[id] || 0) > 800) lyShowVal(c, Math.max(c.d.min, Math.min(c.d.max, x.p[id])), false);
|
||||
const nm = (dev.names[x.engine] || [])[x.preset];
|
||||
$("lysound").textContent = `${t("lySound")} ${nm || ""} (${String(dev.info.engines[x.engine] || "").toLowerCase()})`;
|
||||
}
|
||||
async function lySet(id, v) {
|
||||
const x = lyTrack();
|
||||
if (!x) return;
|
||||
ly.t[id] = performance.now();
|
||||
x.p[id] = v;
|
||||
const c = ly.rows.get(id);
|
||||
if (c) lyShowVal(c, v, false);
|
||||
if (id === LY_MODE) lyRender(); /* (MULTI: SPLIT's knob is the channel) */
|
||||
try {
|
||||
const r = parse[CMD.TRACK_PARAM](await rq(req.trackParam(1, id, v), { key: "ly:" + id }));
|
||||
if (lyTrack() === x && x.p[id] === v) x.p[id] = r.value; /* (clamped by the device) */
|
||||
} catch (e) { if (e.message !== "closed") console.warn(e); }
|
||||
}
|
||||
/* ---------------------------------------------------------------- TUNING --- */
|
||||
/* Clipper 0.9: the FM-1's tuning (firmware v14): a system and its root, or a USER scale from a Scala .scl file */
|
||||
const TU_NAMES = ["EQUAL", "JUST", "PYTHAG", "MEANTONE", "WERCK III", "KIRNB III", "RAST", "BAYATI", "SLENDRO", "PELOG",
|
||||
|
||||
@@ -66,19 +66,19 @@
|
||||
<!--BANNER-->
|
||||
<h1 data-t="kicker"></h1>
|
||||
<section data-l="en">
|
||||
<p class="lead">Clipper turns the FM-1 into a deep polyphonic synthesizer: 17 synthesis engines, 308 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>
|
||||
<p class="lead">Clipper turns the FM-1 into a deep polyphonic synthesizer: 23 synthesis engines and 409 sounds, from HYBRID (three oscillators, two filters, a 16-slot matrix) to FM, wavetables, vector, wave sequencing, a Juno with its chorus and physical models; a modulation matrix and sequencer on every sound, eight filter models, microtuning with Scala scales, and every parameter editable in your browser.</p>
|
||||
</section>
|
||||
<section data-l="fr">
|
||||
<p class="lead">Clipper fait de la FM-1 un vrai synthétiseur polyphonique : 17 moteurs de synthèse, 308 sons, et HYBRID, une voix à trois oscillateurs, deux filtres et une matrice de modulation de 16 slots, entièrement éditable dans ton navigateur.</p>
|
||||
<p class="lead">Clipper fait de la FM-1 un vrai synthétiseur polyphonique : 23 moteurs de synthèse et 409 sons, de HYBRID (trois oscillateurs, deux filtres, une matrice de 16 slots) à la FM, aux tables d'ondes, au vectoriel, au wave sequencing, à un Juno avec son chorus et aux modèles physiques ; une matrice et un séquenceur de modulation sur chaque son, huit modèles de filtre, le micro-accordage avec les gammes Scala, et chaque paramètre éditable dans ton navigateur.</p>
|
||||
</section>
|
||||
<section data-l="ja">
|
||||
<p class="lead">Clipper は FM-1 を本格的なポリフォニック・シンセサイザーに変えます。17 の音源エンジン、308 の音色、そして 3 オシレーター・2 フィルター・16 スロットのモジュレーション・マトリクスを持つ HYBRID。音色はすべてブラウザから編集できます。</p>
|
||||
<p class="lead">Clipper は FM-1 を本格的なポリフォニック・シンセサイザーに変えます。23 の音源エンジンと 409 の音色:HYBRID(3 オシレーター、2 フィルター、16 スロットのマトリクス)から FM、ウェーブテーブル、ベクター、ウェーブ・シーケンス、コーラス付きの Juno、物理モデリングまで。すべての音色にモジュレーション・マトリクスとシーケンサー、8 種類のフィルター・モデル、Scala 音階によるマイクロチューニング。すべてのパラメーターをブラウザから編集できます。</p>
|
||||
</section>
|
||||
<div class="tiles">
|
||||
<div class="tile" style="--c: var(--blue)"><b>17</b><span data-t="tEng"></span></div>
|
||||
<div class="tile" style="--c: var(--green)"><b>308</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 class="tile" style="--c: var(--blue)"><b>23</b><span data-t="tEng"></span></div>
|
||||
<div class="tile" style="--c: var(--green)"><b>409</b><span data-t="tSnd"></span></div>
|
||||
<div class="tile" style="--c: var(--yellow)"><b>8</b><span data-t="tHy"></span></div>
|
||||
<div class="tile" style="--c: var(--orange)"><b>13</b><span data-t="tMx"></span></div>
|
||||
</div>
|
||||
<p data-t="intro"></p>
|
||||
<p data-t="warn"></p>
|
||||
@@ -91,117 +91,141 @@
|
||||
<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, a Moog ladder, 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>FMX</dt><dd>Six operators after the Korg opsix: each its own wave (ten) and mode (PM, true linear FM or RING), a ratio or a fixed frequency, its own envelope; any operator into any other with its own amount, 40 templates to start from, a pitch envelope. It also plays the DX7 voices of the bank.</dd></div>
|
||||
<div><dt>FM6</dt><dd>Six-operator FM with the DX7's 32 algorithms. Load classic DX7 banks (.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>WAVE</dt><dd>Wavetables: 16 tables of 16 frames (classic shapes, PWM, sync, FM, fold, formants, PPG-style sweeps…) morphed by POS, the envelope and the LFO, band-limited by octave so they never alias. Import your own (Serum-style WAV) from the editor.</dd></div>
|
||||
<div><dt>WSEQ</dt><dd>Wave sequencing after the Korg Wavestation: each note plays a sequence of waves, pitches and levels at the song's tempo, each step crossfading into the next. 16 sequences.</dd></div>
|
||||
<div><dt>VECTOR</dt><dd>Vector synthesis after the Sequential Prophet VS and the Wavestation's joystick: four waves at the corners of a square, a point (X, Y) mixing them, and paths that move it by themselves from each note.</dd></div>
|
||||
<div><dt>JUNO</dt><dd>The Juno-6 / 60 / 106 idea: one DCO per voice with saw, pulse (PWM) or both, a sub and noise; the four-position high-pass, a 24 dB ladder, and the stereo BBD chorus I, II and I+II. The chorus is also an insert effect for any sound.</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>Virtual analog: two band-limited oscillators with PWM, noise and drive, into one of eight filter models: SVF, Moog ladder, MS-20, diode ladder, SEM, notch, band-pass, high-pass.</dd></div>
|
||||
<div><dt>ACID</dt><dd>A 303-style bass line voice: saw or square into a self-oscillating ladder, the filter envelope, accent (louder, sharper, and the sweep that climbs over a run of accents), slides that glide without retriggering, and drive.</dd></div>
|
||||
<div><dt>STRINGS</dt><dd>A 70s string machine: divide-down 16', 8' and 4' registers through a three-line ensemble chorus (slow sweep and fast shimmer), saw to square, a key-tracked filter.</dd></div>
|
||||
<div><dt>MACRO</dt><dd>Four macro-oscillator models inspired by Mutable Instruments Plaits, each on three knobs: CHORD (eleven chords and inversions), SWARM (eight drifting oscillators), ADDITIVE (16 harmonics under a moving bump), SPEECH (formants speaking words), with a low-pass gate.</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>Virtual analog: two band-limited oscillators with PWM, noise, drive, and a resonant low-pass: a 12 dB SVF or a 24 dB Moog ladder.</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>MACRO</dt><dd>Four macro-oscillator models inspired by Mutable Instruments Plaits, each on three knobs: CHORD, SWARM (eight drifting oscillators), ADDITIVE (16 harmonics under a moving bump), SPEECH (formants speaking words), with a low-pass gate.</dd></div>
|
||||
<div><dt>PHASE</dt><dd>Phase distortion in the tradition of the 80s CZ synths.</dd></div>
|
||||
<div><dt>VPS</dt><dd>Vector phaseshaping (after Kleimola, Lazzarini, Timoney and Välimäki): a sine through a bent phase, from phase-distorted waves to formant sweeps, alias-free.</dd></div>
|
||||
<div><dt>TERRAIN</dt><dd>Wave terrain synthesis: an orbit circles over one of eight surfaces; its position and size choose the harmonics, and it drifts for timbres that keep evolving.</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>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 your own samples.</dd></div>
|
||||
<div><dt>SAMPLE</dt><dd>Your own multisampled instruments, sent from the editor (four slots).</dd></div>
|
||||
<div><dt>NOISE</dt><dd>From analog hiss to metallic shift-register tones, through a resonant filter.</dd></div>
|
||||
<div><dt>GRAIN</dt><dd>Granular clouds: on four sources of Clipper's own (a choir, a glass harmonica, a saw ensemble, breath), synthesized, or on your own samples.</dd></div>
|
||||
<div><dt>SAMPLE</dt><dd>Clipper's four sources as playable instruments, or your own multisampled ones sent from the editor (four slots).</dd></div>
|
||||
</dl>
|
||||
<h2>Play</h2>
|
||||
<ul>
|
||||
<li>Up to 8 voices of polyphony, with glide, velocity, mono unison and poly unison (2 or 4 voices a note) on every engine.</li>
|
||||
<li>Layer two sounds or split the keyboard between them; swap them to edit either one.</li>
|
||||
<li>Morph between two versions of a sound (MIDI CC 20), or let the randomizer suggest a new one (and undo it).</li>
|
||||
<li>Velocity, mod wheel and aftertouch routings on every engine: vibrato, cutoff, shape, wah, tremolo.</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>8 voices of polyphony (12 or 16 as a build option, rendered on both processor cores), with glide, velocity, mono, legato, unison and poly unison (2 or 4 voices a note) on every engine.</li>
|
||||
<li>Layer two sounds, split the keyboard between them, or play them as two parts on two MIDI channels (MULTI).</li>
|
||||
<li>An arpeggiator with 15 modes, among them a Turing machine (TURNG) that loops and mutates a melody from the held notes; SPICE and DICE vary the arp's and the sequencer's notes the same way each time round.</li>
|
||||
<li>A step sequencer with chords and recording, scales and chords on the keys, KBD HOLD.</li>
|
||||
<li>Undo and compare on the FM-1, favourites, morph between two versions of a sound (MIDI CC 20), a randomizer by section.</li>
|
||||
<li>MPE (per-note bend, pressure and slide), and MIDI over USB and TRS: pitch bend, mod wheel, expression, sustain pedal, channel and polyphonic aftertouch, the four HYBRID 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 everywhere: polyBLEP saws and pulses, polyBLAMP triangles, a band-limited hard sync, FM, feedback and wavefolding held below 20 kHz.</li>
|
||||
<li>Zero-delay-feedback filters: a 24 dB Moog ladder that self-oscillates, SVFs whose resonance saturates softly.</li>
|
||||
<li>Effects: distortion, stereo chorus, tempo-synced delay, a room reverb and a plate reverb (after Dattorro) with pre-delay. A master 3-band EQ and a bus compressor. Level-matched presets.</li>
|
||||
<li>A web editor for every parameter: the whole HYBRID patch, DX7 banks, your sound library, backups.</li>
|
||||
<li>Zero-delay-feedback filters: a 24 dB Moog ladder that self-oscillates, SVFs whose resonance saturates softly, and on ANALOG, WAVE and VECTOR eight models to choose from (SVF, Moog, MS-20, diode ladder, SEM, notch, band-pass, high-pass).</li>
|
||||
<li>Modulation on every engine: a six-slot matrix, a second LFO and envelope, and the MOD SEQ, a four-lane modulation sequencer. VINTAGE gives each voice its own small tuning, filter offset and drift, like an analog poly.</li>
|
||||
<li>Tunings: equal, just, Pythagorean, meantone, Werckmeister III, Kirnberger III, the maqams Rast and Bayati, slendro, pelog, 19, 24 and 31-EDO, and any Scala (.scl) scale sent from the editor.</li>
|
||||
<li>Effects: an insert per sound (drive, fuzz, fold, crush, phaser, flanger, chorus, the Juno chorus), distortion, stereo chorus, tempo-synced delay, room and plate reverbs (after Dattorro). A master 3-band EQ, a bus compressor, a look-ahead limiter. Level-matched presets; settings glide instead of clicking.</li>
|
||||
<li>A web editor for every parameter: the whole HYBRID and FMX patches, the MOD SEQ, tunings and .scl files, DX7 banks, wavetables and samples, 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, ladder Moog, 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>FMX</dt><dd>Six opérateurs dans l'esprit du Korg opsix : chacun sa forme d'onde (dix) et son mode (PM, vraie FM linéaire ou RING), un rapport ou une fréquence fixe, son enveloppe ; n'importe quel opérateur vers n'importe quel autre avec sa quantité, 40 modèles de départ, une enveloppe de hauteur. Il joue aussi les voix DX7 de la banque.</dd></div>
|
||||
<div><dt>FM6</dt><dd>FM à six opérateurs avec les 32 algorithmes du DX7. Charge les banques 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>WAVE</dt><dd>Tables d'ondes : 16 tables de 16 frames (formes classiques, PWM, sync, FM, fold, formants, balayages façon PPG…) parcourues par POS, l'enveloppe et le LFO, à bande limitée par octave : jamais de repliement. Importe les tiennes (WAV façon Serum) depuis l'éditeur.</dd></div>
|
||||
<div><dt>WSEQ</dt><dd>Le wave sequencing du Korg Wavestation : chaque note joue une suite de formes d'onde, de hauteurs et de niveaux au tempo du morceau, chaque pas en fondu dans le suivant. 16 suites.</dd></div>
|
||||
<div><dt>VECTOR</dt><dd>La synthèse vectorielle du Sequential Prophet VS et du joystick du Wavestation : quatre formes d'onde aux coins d'un carré, un point (X, Y) qui les mélange, et des trajets qui le déplacent tout seuls à chaque note.</dd></div>
|
||||
<div><dt>JUNO</dt><dd>L'idée des Juno-6 / 60 / 106 : un DCO par voix avec dent de scie, impulsion (PWM) ou les deux, un sub et du bruit ; le passe-haut à quatre positions, un ladder 24 dB, et le chorus BBD stéréo I, II et I+II. Le chorus existe aussi en effet insert pour n'importe quel son.</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>Analogique virtuel : deux oscillateurs à bande limitée avec PWM, bruit et saturation, dans un des huit modèles de filtre : SVF, ladder Moog, MS-20, ladder à diodes, SEM, notch, passe-bande, passe-haut.</dd></div>
|
||||
<div><dt>ACID</dt><dd>Une voix de basse façon 303 : dent de scie ou carré dans un ladder qui auto-oscille, l'enveloppe de filtre, l'accent (plus fort, plus vif, et le balayage qui grimpe sur une suite d'accents), des slides qui glissent sans relancer l'enveloppe, et la saturation.</dd></div>
|
||||
<div><dt>STRINGS</dt><dd>Une string machine des années 70 : registres 16', 8' et 4' à division, un chorus d'ensemble à trois lignes (balayage lent et vibrato rapide), de la dent de scie au carré, un filtre qui suit le clavier.</dd></div>
|
||||
<div><dt>MACRO</dt><dd>Quatre modèles de macro-oscillateurs inspirés de Mutable Instruments Plaits, chacun sur trois boutons : CHORD (onze accords et leurs renversements), SWARM (huit oscillateurs qui dérivent), ADDITIVE (16 harmoniques sous une bosse mobile), SPEECH (des formants qui disent des mots), avec un low-pass gate.</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>Analogique virtuel : deux oscillateurs à bande limitée avec PWM, bruit, saturation, et un passe-bas résonant : SVF 12 dB ou ladder Moog 24 dB.</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>MACRO</dt><dd>Quatre modèles de macro-oscillateurs inspirés de Mutable Instruments Plaits, chacun sur trois boutons : CHORD, SWARM (huit oscillateurs qui dérivent), ADDITIVE (16 harmoniques sous une bosse mobile), SPEECH (des formants qui disent des mots), avec un low-pass gate.</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>VPS</dt><dd>Le vector phaseshaping (d'après Kleimola, Lazzarini, Timoney et Välimäki) : un sinus lu à travers une phase pliée, des ondes à distorsion de phase jusqu'aux balayages de formants, sans repliement.</dd></div>
|
||||
<div><dt>TERRAIN</dt><dd>La synthèse par wave terrain : une orbite tourne au-dessus d'une de huit surfaces ; sa position et sa taille choisissent les harmoniques, et elle dérive pour des timbres qui évoluent sans cesse.</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>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 tes propres samples.</dd></div>
|
||||
<div><dt>SAMPLE</dt><dd>Tes propres instruments multi-échantillonnés, envoyés depuis l'éditeur (quatre emplacements).</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>
|
||||
<div><dt>GRAIN</dt><dd>Des nuages granulaires : sur quatre sources propres à Clipper (un chœur, un harmonica de verre, un ensemble de dents de scie, du souffle), synthétisées, ou sur tes propres samples.</dd></div>
|
||||
<div><dt>SAMPLE</dt><dd>Les quatre sources de Clipper en instruments, ou tes propres instruments multi-échantillonnés envoyés depuis l'éditeur (quatre emplacements).</dd></div>
|
||||
</dl>
|
||||
<h2>Jouer</h2>
|
||||
<ul>
|
||||
<li>Jusqu'à 8 voix de polyphonie, avec glide, vélocité, unisson mono et unisson polyphonique (2 ou 4 voix par note) sur tous les moteurs.</li>
|
||||
<li>Superpose deux sons (layer) ou partage le clavier entre eux (split) ; échange-les pour éditer l'un ou l'autre.</li>
|
||||
<li>Morph entre deux versions d'un son (MIDI CC 20), ou laisse le randomiseur en proposer un nouveau (et annule-le).</li>
|
||||
<li>Vélocité, molette et aftertouch sur tous les moteurs : vibrato, cutoff, forme, wah, trémolo.</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>8 voix de polyphonie (12 ou 16 en option de compilation, calculées sur les deux cœurs du processeur), avec glide, vélocité, mono, legato, unisson et unisson polyphonique (2 ou 4 voix par note) sur tous les moteurs.</li>
|
||||
<li>Superpose deux sons, partage le clavier entre eux, ou joue-les comme deux parties sur deux canaux MIDI (MULTI).</li>
|
||||
<li>Un arpégiateur à 15 modes, dont une machine de Turing (TURNG) qui fait tourner et muter une mélodie à partir des notes tenues ; SPICE et DICE font varier les notes de l'arpège et du séquenceur, de la même façon à chaque tour.</li>
|
||||
<li>Un séquenceur pas à pas avec accords et enregistrement, gammes et accords sur les touches, KBD HOLD.</li>
|
||||
<li>Undo et comparaison sur la FM-1, favoris, morph entre deux versions d'un son (MIDI CC 20), randomiseur par section.</li>
|
||||
<li>MPE (bend, pression et slide par note), et MIDI par USB et TRS : pitch bend, molette, expression, pédale de sustain, aftertouch par canal et polyphonique, les quatre macros HYBRID 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 partout : dents de scie et pulses polyBLEP, triangles polyBLAMP, hard sync à bande limitée, FM, feedback et wavefolding tenus sous 20 kHz.</li>
|
||||
<li>Filtres à retour sans délai (ZDF) : un ladder Moog 24 dB qui auto-oscille, des SVF dont la résonance sature en douceur.</li>
|
||||
<li>Effets : distorsion, chorus stéréo, delay synchronisé au tempo, une réverb room et une réverb plate (d'après Dattorro) avec pré-délai. Un EQ 3 bandes et un compresseur de bus sur le master. Presets de niveau égal.</li>
|
||||
<li>Un éditeur web pour chaque paramètre : tout le patch HYBRID, les banques DX7, ta bibliothèque de sons, les sauvegardes.</li>
|
||||
<li>Filtres à retour sans délai (ZDF) : un ladder Moog 24 dB qui auto-oscille, des SVF dont la résonance sature en douceur, et sur ANALOG, WAVE et VECTOR huit modèles au choix (SVF, Moog, MS-20, ladder à diodes, SEM, notch, passe-bande, passe-haut).</li>
|
||||
<li>La modulation sur tous les moteurs : une matrice de 6 slots, un 2e LFO et une 2e enveloppe, et le MOD SEQ, un séquenceur de modulation à 4 pistes. VINTAGE donne à chaque voix son petit écart d'accord et de filtre et sa dérive, comme un vrai polyphonique analogique.</li>
|
||||
<li>Accordages : égal, juste, Pythagore, mésotonique, Werckmeister III, Kirnberger III, les maqams Rast et Bayati, slendro, pelog, 19, 24 et 31-EDO, et toute gamme Scala (.scl) envoyée depuis l'éditeur.</li>
|
||||
<li>Effets : un insert par son (saturation, fuzz, fold, crush, phaser, flanger, chorus, le chorus Juno), distorsion, chorus stéréo, delay synchronisé au tempo, réverbs room et plate (d'après Dattorro). Sur le master, un EQ 3 bandes, un compresseur de bus et un limiteur. Presets de niveau égal ; les réglages glissent au lieu de claquer.</li>
|
||||
<li>Un éditeur web pour chaque paramètre : les patchs HYBRID et FMX en entier, le MOD SEQ, les accordages et fichiers .scl, les banques DX7, tables d'ondes et samples, 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、Moog ラダー、BP、HP、ノッチ、ピーク)を直列・並列・スプリットで。ボイスごとに 2 エンベロープとテンポ同期できる 2 LFO、16 スロットのマトリクス、4 つのマクロ。</dd></div>
|
||||
<div><dt>FMX</dt><dd>Korg opsix に着想を得た 6 オペレーター。オペレーターごとに波形(10 種)とモード(PM、リニア FM、リング)、レシオまたは固定周波数、専用エンベロープ。どのオペレーターからどのオペレーターへも量を決めて接続でき、40 のテンプレート、ピッチ・エンベロープ付き。バンクの DX7 音色も演奏できます。</dd></div>
|
||||
<div><dt>FM6</dt><dd>DX7 の 32 アルゴリズムを持つ 6 オペレーター FM。エディタから DX7 のバンク(.syx)を読み込めます。</dd></div>
|
||||
<div><dt>DIGITAL</dt><dd>4 オペレーター FM、8 アルゴリズム:ベル、ベース、エレピ。</dd></div>
|
||||
<div><dt>WAVE</dt><dd>ウェーブテーブル:16 フレームのテーブルが 16 種類(基本波形、PWM、シンク、FM、フォールド、フォルマント、PPG 風スイープ…)。POS、エンベロープ、LFO でモーフィングし、オクターブごとに帯域制限して折り返しなし。エディタから自分のテーブル(Serum 形式の WAV)も読み込めます。</dd></div>
|
||||
<div><dt>WSEQ</dt><dd>Korg Wavestation に着想を得たウェーブ・シーケンス:ノートごとに波形・ピッチ・レベルのステップを曲のテンポで鳴らし、ステップ間はクロスフェード。16 シーケンス。</dd></div>
|
||||
<div><dt>VECTOR</dt><dd>Sequential Prophet VS と Wavestation のジョイスティックに着想を得たベクター合成:正方形の四隅に 4 つの波形、その中の点(X、Y)で混ぜ、点はノートごとに自動で動かすこともできます。</dd></div>
|
||||
<div><dt>JUNO</dt><dd>Juno-6 / 60 / 106 のアイデア:ボイスごとに 1 つの DCO(ノコギリ波、PWM 付きパルス、両方)、サブとノイズ。4 段階のハイパス、24 dB ラダー、ステレオ BBD コーラス I・II・I+II。コーラスはどの音色にもインサート・エフェクトとして使えます。</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>バーチャルアナログ:帯域制限された 2 オシレーター、PWM、ノイズ、ドライブ、8 種類のフィルター・モデル(SVF、Moog ラダー、MS-20、ダイオード・ラダー、SEM、ノッチ、BP、HP)。</dd></div>
|
||||
<div><dt>ACID</dt><dd>303 風ベースライン:ノコギリ波または矩形波を自己発振するラダーへ。フィルター・エンベロープ、アクセント(大きく鋭く、続くアクセントで上がっていくスイープ)、エンベロープを再トリガーしないスライド、ドライブ。</dd></div>
|
||||
<div><dt>STRINGS</dt><dd>70 年代のストリング・マシン:分周の 16'・8'・4' レジスター、3 ラインのアンサンブル・コーラス(ゆっくりしたスイープと速いシマー)、ノコギリ波から矩形波へ、キートラックするフィルター。</dd></div>
|
||||
<div><dt>MACRO</dt><dd>Mutable Instruments Plaits に着想を得た 4 つのマクロ・オシレーター。それぞれ 3 つのノブで:CHORD(11 のコードと転回形)、SWARM(揺らぐ 8 オシレーター)、ADDITIVE(動くピークの下の 16 倍音)、SPEECH(言葉を話すフォルマント)。ローパス・ゲート付き。</dd></div>
|
||||
<div><dt>ANALOG</dt><dd>バーチャルアナログ:帯域制限された 2 オシレーター、PWM、ノイズ、ドライブ、レゾナンス付きローパス(12 dB SVF または 24 dB Moog ラダー)。</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>MACRO</dt><dd>Mutable Instruments Plaits に着想を得た 4 つのマクロ・オシレーター。それぞれ 3 つのノブで:CHORD、SWARM(揺らぐ 8 オシレーター)、ADDITIVE(動くピークの下の 16 倍音)、SPEECH(言葉を話すフォルマント)。ローパス・ゲート付き。</dd></div>
|
||||
<div><dt>PHASE</dt><dd>80 年代の CZ シンセの流れをくむフェイズ・ディストーション。</dd></div>
|
||||
<div><dt>VPS</dt><dd>ベクター・フェイズシェイピング(Kleimola、Lazzarini、Timoney、Välimäki による):曲げた位相で読むサイン波。フェイズ・ディストーション波形からフォルマント・スイープまで、折り返しなし。</dd></div>
|
||||
<div><dt>TERRAIN</dt><dd>ウェーブ・テレイン合成:8 種類の曲面の上を軌道が回り、その位置と大きさで倍音が決まります。軌道はゆっくり動き、音色が変化し続けます。</dd></div>
|
||||
<div><dt>PHYS</dt><dd>物理モデリング:弦、ベルとバー、ドラムヘッド、共鳴弦(Mutable Instruments Rings と DaisySP より)。</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>エディタから送る自分のマルチサンプル楽器(4 スロット)。</dd></div>
|
||||
<div><dt>NOISE</dt><dd>アナログのヒスからシフトレジスターの金属音まで、レゾナンス・フィルターを通して。</dd></div>
|
||||
<div><dt>GRAIN</dt><dd>グラニュラー・クラウド:Clipper 独自に合成した 4 つの素材(コーラス、グラス・ハーモニカ、ノコギリ波アンサンブル、ブレス)、または自分のサンプルで。</dd></div>
|
||||
<div><dt>SAMPLE</dt><dd>Clipper の 4 つの素材を楽器として、またはエディタから送る自分のマルチサンプル楽器(4 スロット)。</dd></div>
|
||||
</dl>
|
||||
<h2>演奏</h2>
|
||||
<ul>
|
||||
<li>最大 8 ボイスのポリフォニー、グライド、ベロシティ。全エンジンでモノ・ユニゾンとポリ・ユニゾン(1 音に 2 または 4 ボイス)。</li>
|
||||
<li>2 つの音色をレイヤー、または鍵盤をスプリット。スワップでどちらの音色も編集できます。</li>
|
||||
<li>音色の 2 つのバージョン間をモーフィング(MIDI CC 20)、またはランダマイザーで新しい音色を(元に戻すことも可能)。</li>
|
||||
<li>全エンジンでベロシティ、モジュレーション・ホイール、アフタータッチ:ビブラート、カットオフ、シェイプ、ワウ、トレモロ。</li>
|
||||
<li>アルペジエーター、和音と録音に対応したステップシーケンサー、鍵盤上のスケールとコード。</li>
|
||||
<li>USB と TRS の MIDI(全チャンネル):ピッチベンド、モジュレーション、エクスプレッション、サスティン、チャンネル/ポリ・アフタータッチ、CC 16〜19 の 4 マクロ。</li>
|
||||
<li>8 ボイスのポリフォニー(ビルド・オプションで 12 または 16、プロセッサーの 2 コアで計算)。全エンジンでグライド、ベロシティ、モノ、レガート、ユニゾン、ポリ・ユニゾン(1 音に 2 または 4 ボイス)。</li>
|
||||
<li>2 つの音色をレイヤー、鍵盤をスプリット、または 2 つの MIDI チャンネルで 2 パートとして演奏(MULTI)。</li>
|
||||
<li>15 モードのアルペジエーター。押さえた音からメロディーをループさせ変化させるチューリング・マシン(TURNG)も。SPICE と DICE がアルペジエーターとシーケンサーの音を毎回同じように変化させます。</li>
|
||||
<li>和音と録音に対応したステップシーケンサー、鍵盤上のスケールとコード、KBD HOLD。</li>
|
||||
<li>FM-1 本体でアンドゥと比較、お気に入り、音色の 2 つのバージョン間のモーフィング(MIDI CC 20)、セクション別ランダマイザー。</li>
|
||||
<li>MPE(ノートごとのベンド、プレッシャー、スライド)。USB と TRS の MIDI:ピッチベンド、モジュレーション、エクスプレッション、サスティン、チャンネル/ポリ・アフタータッチ、CC 16〜19 の HYBRID マクロ。</li>
|
||||
<li>FM-1 は USB オーディオ・インターフェースにもなり、そのままパソコンに録音できます。</li>
|
||||
</ul>
|
||||
<h2>サウンド</h2>
|
||||
<ul>
|
||||
<li>44.1 kHz。すべて帯域制限オシレーター:polyBLEP のノコギリ波とパルス、polyBLAMP の三角波、帯域制限ハードシンク、20 kHz 以下に抑えた FM・フィードバック・ウェーブフォールド。</li>
|
||||
<li>ゼロディレイ・フィードバック・フィルター:自己発振する 24 dB Moog ラダー、レゾナンスがやわらかく飽和する SVF。</li>
|
||||
<li>エフェクト:ディストーション、ステレオ・コーラス、テンポ同期ディレイ、ルームとプレート(Dattorro 方式、プリディレイ付き)の 2 種類のリバーブ。マスターに 3 バンド EQ とバス・コンプレッサー。音量をそろえたプリセット。</li>
|
||||
<li>すべてのパラメーターを編集できるウェブ・エディタ:HYBRID の音色、DX7 バンク、音色ライブラリ、バックアップ。</li>
|
||||
<li>ゼロディレイ・フィードバック・フィルター:自己発振する 24 dB Moog ラダー、レゾナンスがやわらかく飽和する SVF。ANALOG、WAVE、VECTOR では 8 種類のモデル(SVF、Moog、MS-20、ダイオード・ラダー、SEM、ノッチ、BP、HP)から選べます。</li>
|
||||
<li>全エンジンでモジュレーション:6 スロットのマトリクス、2 つ目の LFO とエンベロープ、4 レーンのモジュレーション・シーケンサー MOD SEQ。VINTAGE はボイスごとに少しずつ違うチューニング、フィルター、ドリフトを与え、アナログ・ポリのように鳴らします。</li>
|
||||
<li>チューニング:平均律、純正律、ピタゴラス、ミーントーン、ヴェルクマイスター III、キルンベルガー III、マカーム(ラースト、バヤーティー)、スレンドロ、ペロッグ、19・24・31 平均律、そしてエディタから送る Scala(.scl)音階。</li>
|
||||
<li>エフェクト:音色ごとのインサート(ドライブ、ファズ、フォールド、クラッシュ、フェイザー、フランジャー、コーラス、Juno コーラス)、ディストーション、ステレオ・コーラス、テンポ同期ディレイ、ルームとプレート(Dattorro 方式)のリバーブ。マスターに 3 バンド EQ、バス・コンプレッサー、ルックアヘッド・リミッター。音量をそろえたプリセット。設定はクリックせずになめらかに変わります。</li>
|
||||
<li>すべてのパラメーターを編集できるウェブ・エディタ:HYBRID と FMX の音色全体、MOD SEQ、チューニングと .scl、DX7 バンク、ウェーブテーブルとサンプル、音色ライブラリ、バックアップ。</li>
|
||||
</ul>
|
||||
</section>
|
||||
<hr>
|
||||
@@ -221,10 +245,10 @@
|
||||
<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; ladder after Vadim Zavalishin; plate after Jon Dattorro.
|
||||
FM6: msfa / Dexed (Apache-2.0). PHYS: DaisySP and Mutable Instruments Rings (MIT). Supersaw after Adam Szabo's JP-8000 analysis; ladder after Vadim Zavalishin; plate after Jon Dattorro. JUNO, VECTOR, FMX, WSEQ, MACRO, the filter models and TURNG are Clipper's own code after the ideas of the Roland Juno, the Prophet VS and Wavestation, the Korg opsix, Mutable Instruments Plaits, the MS-20, SEM and diode ladders, Music Thing Modular's Turing Machine, and SPICE / DICE after the Arturia MicroFreak; .scl is the Scala format.
|
||||
Hold OCT− alone while switching on for USB rescue.<br>
|
||||
Font: Terminus (Dimitar Toshkov Zhekov, SIL OFL 1.1).<br>
|
||||
M-VAVE and FM-1 are trademarks of their respective owners; Clipper is not affiliated with them.<br>
|
||||
M-VAVE, FM-1 and the other product names above 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">
|
||||
@@ -233,7 +257,7 @@ const $ = (id) => document.getElementById(id);
|
||||
const TEXT = {
|
||||
ja: {
|
||||
kicker: "M-VAVE FM-1 のためのシンセサイザー・ファームウェア",
|
||||
tEng: "音源エンジン", tSnd: "音色、レベル調整済み", tHy: "hybrid:オシレーターとフィルター", tMx: "モジュレーション・スロット",
|
||||
tEng: "音源エンジン", tSnd: "音色、レベル調整済み", tHy: "フィルター・モデル", tMx: "チューニング+自分の Scala 音階",
|
||||
intro: "FM-1 を USB で接続してください。(Chrome か Edge で使えます)",
|
||||
warn: "書き込み中は USB を抜かないでください。",
|
||||
install: "インストール", other: "English",
|
||||
@@ -241,7 +265,6 @@ const TEXT = {
|
||||
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 を挿し直してもう一度押してください。",
|
||||
@@ -269,7 +292,7 @@ const TEXT = {
|
||||
},
|
||||
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",
|
||||
tEng: "synthesis engines", tSnd: "sounds, level-matched", tHy: "filter models", tMx: "tunings + your own Scala scales",
|
||||
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",
|
||||
@@ -277,7 +300,6 @@ const TEXT = {
|
||||
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.",
|
||||
@@ -305,7 +327,7 @@ const TEXT = {
|
||||
},
|
||||
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",
|
||||
tEng: "moteurs de synthèse", tSnd: "sons, niveaux égalisés", tHy: "modèles de filtre", tMx: "accordages + tes gammes Scala",
|
||||
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: "日本語",
|
||||
|
||||
@@ -1285,6 +1285,73 @@ function editorTabs() {
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------- editor: Clipper's pages == the device's (params.c PAGES, CLIPPER_SYNTH) --- */
|
||||
function editorClipperPages() {
|
||||
const lay = html.slice(html.indexOf("const EXPECT = {"), html.indexOf("/* globals that are actions"));
|
||||
const syn = html.slice(html.indexOf("const INS_BITS"), html.indexOf("/* the INSERT's TYPE or the arp's MODE changed"));
|
||||
const X = vm.runInNewContext(lay + syn + ";({ LAYOUT, layoutKnown, synDesc, INS_DESC, INS_RATE, INS_NTYPE, AM_TURING })", { F: E.F, dev: null });
|
||||
const ch = readFileSync(join(HERE, "../firmware/src/core.h"), "utf8"), pc = readFileSync(join(HERE, "../firmware/src/params.c"), "utf8");
|
||||
/* the synth build's ids (core.h, CLIPPER_SYNTH 1) and its aliases */
|
||||
const P = {}; let k = 0;
|
||||
for (const nm of (/enum \{\s*\/\* per-track parameters \*\/([^}]*)\}/.exec(ch) || [])[1].replace(/#(if|endif)[^\n]*/g, "").replace(/\/\*[\s\S]*?\*\//g, "").split(",").map((x) => x.trim()).filter(Boolean)) P[nm] = k++;
|
||||
const G = {}; k = 0;
|
||||
for (const nm of (/enum \{\s*\/\* global parameters \*\/([^}]*)\}/.exec(ch) || [])[1].replace(/\/\*[\s\S]*?\*\//g, "").split(",").map((x) => x.trim()).filter(Boolean)) G[nm] = k++;
|
||||
for (const [, a, b] of ch.matchAll(/#define ([PG]_\w+) ([PG]_\w+)/g)) (a[0] === "P" ? P : G)[a] = (b[0] === "P" ? P : G)[b];
|
||||
/* PAGES as the synth build has it: #if CLIPPER_SYNTH kept, its #else and #if !CLIPPER_SYNTH dropped */
|
||||
const src = pc.slice(pc.indexOf("static const page_t PAGES[]"), pc.indexOf("#define NPAGES"));
|
||||
let keep = [true]; const lines = [];
|
||||
for (const l of src.split("\n")) {
|
||||
if (/^#if !CLIPPER_SYNTH/.test(l)) keep.push(false);
|
||||
else if (/^#if CLIPPER_SYNTH/.test(l)) keep.push(true);
|
||||
else if (/^#else/.test(l)) keep[keep.length - 1] = !keep[keep.length - 1];
|
||||
else if (/^#endif/.test(l)) keep.pop();
|
||||
else if (keep.every(Boolean)) lines.push(l);
|
||||
}
|
||||
const pages = [...lines.join("\n").matchAll(/\{"([^"]+)", [\w ?:]+, (SC_TRACK|SC_GLOBAL), GR_\w+, \{([^}]*)\}\}/g)]
|
||||
.map(([, t, sc, ids]) => [t, sc, ids.split(",").map((x) => x.trim()).filter((x) => x !== "0xFF").map((x) => (sc === "SC_TRACK" ? P : G)[x])]);
|
||||
const L = X.LAYOUT(P.P_E0), on = (s) => new Set(L.flatMap((g) => g.pages.filter((x) => x[1] === s).flatMap((x) => x[2])));
|
||||
const p0 = on(0), g1 = on(1), all0 = L.flatMap((g) => g.pages.filter((x) => !x[1]).flatMap((x) => x[2]));
|
||||
const devP = new Set(pages.filter((x) => x[1] === "SC_TRACK").flatMap((x) => x[2]));
|
||||
const devG = pages.filter((x) => x[1] === "SC_GLOBAL").flatMap((x) => x[2]).filter((id) => ![G.G_INFO, G.G_SLOT, G.G_LOAD, G.G_SAVE, G.G_CLRSEQ, G.G_INITSND, G.G_NEWPRJ].includes(id));
|
||||
const missP = [...devP].filter((id) => !p0.has(id)), missG = devG.filter((id) => !g1.has(id));
|
||||
const notOn = Array.from({ length: P.P_COUNT }, (_, i) => i).filter((i) => !p0.has(i));
|
||||
ok(pages.length > 20 && P.P_E0 === 91 && P.P_COUNT === 99 && X.layoutKnown({ pcount: 99, pe0: 91, gcount: G.G_COUNT })
|
||||
&& !missP.length && !missG.length && js(notOn) === js([P.P_MUTE]) && all0.length === new Set(all0).size,
|
||||
`editor: Clipper 0.9's pages hold every value of the device's (params.c PAGES; not on one: MUTE${missP.length || missG.length ? `; missing P ${missP} G ${missG}` : ""}${notOn.length !== 1 ? `; off the pages ${notOn}` : ""})`);
|
||||
const title = (id, s) => (L.flatMap((g) => g.pages).find((x) => x[1] === s && x[2].includes(id)) || [])[0];
|
||||
ok(title(P.P_FMODEL, 0) === "FILTER" && title(P.P_VELF, 0) === "MOD" && title(P.P_VINT, 0) === "VOICE 2" && title(P.P_SLOOP, 0) === "SPICE"
|
||||
&& title(G.G_RTYPE, 1) === "REVERB" && title(G.G_RPRE, 1) === "REVERB" && title(G.G_EQLOW, 1) === "EQ+COMP" && title(G.G_SYNC, 1) === "SYSTEM"
|
||||
&& !L.some((g) => g.pages.some((x) => x[0] === "SLICER" || x[0] === "DRUMS")),
|
||||
"editor: ... grouped as the device (FILTER MODL, LFO > MOD, VOICE 2 VINTG, SPICE LOOP, REVERB TYPE PRE, EQ+COMP, SYSTEM)");
|
||||
/* the labels the device shows and DESC does not (params.c track_desc) */
|
||||
const pcs = (re) => ((re.exec(pc) || [])[1] || "").match(/"[^"]*"/g).map((x) => x.slice(1, -1));
|
||||
const amode = pcs(/N_AMODE\[\] = \{([^}]*)\}/), itype = pcs(/N_ITYPE\[\] = \{([^}]*)\}/), irate = pcs(/N_IRATE\[\] = \{([^}]*)\}/);
|
||||
const insc = [...((/INS_DESC\[4\]\[3\] = \{([\s\S]*?)\n\};/.exec(pc) || [])[1] || "").matchAll(/PU\("([^"]+)"/g)].map((x) => x[1]);
|
||||
ok(amode.indexOf("TURNG") === X.AM_TURING && itype.length === X.INS_NTYPE && itype[9] === "JUNO1" && js(irate) === js(X.INS_RATE)
|
||||
&& js(insc) === js(X.INS_DESC.flat().map((x) => x[0])),
|
||||
"editor: TURNG, the INSERT's types, CRUSH's RATE names and the A B C labels as params.c");
|
||||
const info = { pe0: 91 }, pd = [];
|
||||
pd[91] = { label: "CUT" }; pd[92] = { label: "-" }; pd[98] = { label: "PTCH" };
|
||||
const dst = { label: "DST", fmt: E.F.ENUM, min: 0, max: 14, def: 0, names: ["OFF", "PITCH", "CUT", "SHAPE", "AMP", "PAN", "LFO2", "E1", "E2", "E3", "E4", "E5", "E6", "E7", "E8"] };
|
||||
const insA = { label: "INS A", fmt: E.F.PCT, min: 0, max: 127, def: 64, names: [] }, spice = { label: "SPICE", fmt: E.F.PCT, min: 0, max: 127, def: 0, names: [] };
|
||||
const p = new Array(99).fill(0);
|
||||
const d1 = X.synDesc(61, dst, info, p, pd);
|
||||
p[78] = 5; const crB = X.synDesc(79, insA, info, p, pd), crR = X.synDesc(80, insA, info, p, pd);
|
||||
p[78] = 10; const ju = X.synDesc(79, insA, info, p, pd);
|
||||
p[78] = 0; const off = X.synDesc(79, insA, info, p, pd);
|
||||
p[17] = 15; const mu = X.synDesc(87, spice, info, p, pd), sd = X.synDesc(88, { ...spice, label: "DICE" }, info, p, pd);
|
||||
p[17] = 14; const ch14 = X.synDesc(87, spice, info, p, pd);
|
||||
ok(d1.names[7] === "CUT" && d1.names[8] === "E2" && d1.names[14] === "PTCH" && dst.names[7] === "E1"
|
||||
&& crB.label === "BITS" && E.fmtValue(crB, 0)[0] === "1" && E.fmtValue(crB, 127)[0] === "16" && E.fmtValue(crB, 64)[0] === "9"
|
||||
&& crR.label === "RATE" && E.fmtValue(crR, 127).join() === "44k,Hz" && ju.label === "WIDTH" && ju.def === 127 && off === insA
|
||||
&& mu.label === "MUTAT" && sd.label === "SEED" && ch14 === spice && X.synDesc(87, spice, { pe0: 53 }, p, pd) === spice,
|
||||
"editor: Clipper's labels: a matrix DST as the engine's values, the INSERT's A B C by TYPE (CRUSH BITS 1..16), TURNG's MUTAT SEED");
|
||||
/* a Clipper 0.8 sound (97 values, P_E0 89) into 0.9 (99, 91): VINTAGE and LOOP left as the device has them */
|
||||
const v8 = Array.from({ length: 97 }, (_, i) => 3000 + i), q = E.patchByCount(v8, 89, 99, 91), r = E.patchByCount(q.map((x) => x ?? 0), 91, 97, 89);
|
||||
ok(q[88] === 3088 && q[89] === null && q[90] === null && q[91] === 3089 && q[98] === 3096 && r[88] === 3088 && r[89] === 3089 && r[96] === 3096,
|
||||
"patchByCount: Clipper 0.8 <-> 0.9: up to DICE by place, the engine's 8 by theirs, VINTAGE and LOOP left out");
|
||||
}
|
||||
|
||||
/* ------------------------------------------------- editor icons (Fukiai) --- */
|
||||
function editorIcons() {
|
||||
const blk = html.slice(html.indexOf("const GLYPH = {"), html.indexOf("};", html.indexOf("const GLYPH = {")));
|
||||
@@ -1587,6 +1654,7 @@ await editor25();
|
||||
await editorDsyn();
|
||||
await editorCart();
|
||||
editorTabs();
|
||||
editorClipperPages();
|
||||
editorIcons();
|
||||
samplesMatch();
|
||||
chopTests();
|
||||
|
||||