diff --git a/docs/guide/manual.es.html b/docs/guide/manual.es.html index 766bc237..67492fff 100644 --- a/docs/guide/manual.es.html +++ b/docs/guide/manual.es.html @@ -4,57 +4,91 @@ JIANT FM — Manual de uso - - + + + +
JIANT FMManuales
- +

Manual de uso · M-VAVE FM-1

+

JIANT FM

+

Todo JIANT FM en una página: cada botón, perilla y mensaje con el nombre que muestra el aparato. Si leés un solo capítulo, que sea Guardar y cargar.

+

JIANT FM — Manual de usuario

JIANT FM V10.8.21 para el M-VAVE FM-1

@@ -409,8 +446,8 @@ está en esta versión. Ver el README.

- La calibración FAR / NEAR ahora toma la mediana de 2,5 s (HOLD STILL) (V10.6z8). - VOICE ya no satura con las vocales abiertas; WORDS tiene CONS, el largo de las consonantes (V10.6y).

Conexiones -- NRPN para todo parámetro automatizable, y las perillas salen como NRPN con MIDI OUT ALL (V10.6z3): docs/NRPN.md. -- El protocolo del editor es un contrato versionado (1.2): web/EDITOR_PROTOCOL.md. +- NRPN para todo parámetro automatizable, y las perillas salen como NRPN con MIDI OUT ALL (V10.6z3): docs/NRPN.md. +- El protocolo del editor es un contrato versionado (1.2): web/EDITOR_PROTOCOL.md. - El segundo núcleo arranca solo con la alimentación de fábrica (después de un SAFE START: un núcleo) (V10.6z2).


0. Inicio rápido

@@ -794,11 +831,11 @@ las reinicia. Tocar un botón de capa no dice nada (ya no están las ayudas "HOL muestra sola.


3. Páginas y capas

-

El mapa de navegación: cada sección, sus grupos y sus páginas en el orden de la cadena, las seis reglas, las capas y las combinaciones

+

El mapa de navegación: cada sección, sus grupos y sus páginas en el orden de la cadena, las seis reglas, las capas y las combinaciones

Todo el sinte en una página: el botón de cada sección, sus grupos (las pestañas de la pantalla) y sus páginas en el orden en que las recorre SELECT (el número de cada punto es la n del n/N del pie; en naranja, la página al encender; punteada, una página que solo tienen algunos motores o LOADs), con las seis reglas, las capas y las combinaciones. -Hacé clic para abrir el SVG, con zoom (in English). Se genera desde las tablas de cadenas del +Hacé clic para abrir el SVG, con zoom (in English). Se genera desde las tablas de cadenas del firmware (tools/gen_nav_map.py).

Cómo funciona la navegación: seis reglas (0.9.2)

Desde la 0.9.2 todas las secciones se manejan igual (el diseño que aprobó el dueño, la maqueta "navegación"): lo @@ -4590,7 +4627,7 @@ protección desvaneció): una foto de esa pantalla ayuda cuando reportás un pro cargas ni el cambio de motor) tienen un NRPN, con hasta 14 bits de resolución. CC99 0 + CC98 el número del parámetro en el canal que toca la pista (el canal 16 también con ROUTE CH1-6: la pista seleccionada); CC99 1 + CC98 el número del global, en el canal 16 (o cualquier canal que el FM-1 escuche); después CC6 (y CC38 para - la parte fina) el valor, sobre todo el rango del parámetro. Los números y rangos: docs/NRPN.md (hecho a + la parte fina) el valor, sobre todo el rango del parámetro. Los números y rangos: docs/NRPN.md (hecho a partir del propio firmware). Los CC de arriba quedan como estaban. Con MIDI OUT ALL, girar una perilla del panel manda su NRPN (el de una pista por su canal, el de un global por el canal 16): un DAW graba los movimientos y se los devuelve al FM-1. @@ -4802,7 +4839,7 @@ filas Z–' y Q–O son las teclas, 1<

Vista de velocidad — https://juanjiant-bit.github.io/JIANT/webapp/vel/

(V10.6z5, V10.6z7) La velocidad de cada nota y la calibración de cada tecla, en vivo, por USB (Chrome o Edge; protocolo 1.1 o posterior). Ver Velocidad y aftertouch y la prueba -paso a paso en VELOCITY_DIAG.es.md.

+paso a paso en VELOCITY_DIAG.es.md.

Editor — https://juanjiant-bit.github.io/JIANT/webapp/editor/

Todos los parámetros desde la computadora, por USB. Pestañas: Sound, 6-OP FM, Sequencer, Tracks, Library, Projects, Settings.

@@ -4961,8 +4998,13 @@ después instalá JIANT. Pasar directamente desde otro firmware custom ya bricke

Si mi trabajo resuena con vos, considerá apoyarme en Ko-fi (https://ko-fi.com/juanjiant) — en Argentina: Cafecito (https://cafecito.app/juanjiant).

+ diff --git a/docs/guide/manual.html b/docs/guide/manual.html index 840ed51e..9bf84fe8 100644 --- a/docs/guide/manual.html +++ b/docs/guide/manual.html @@ -4,57 +4,91 @@ JIANT FM — User Manual - - + + + +
- +

User manual · M-VAVE FM-1

+

JIANT FM

+

All of JIANT FM on one page: every button, knob and message named as the device shows it. If you read one chapter, read Saving and loading.

+

JIANT FM — User Manual

JIANT FM V10.8.21 for the M-VAVE FM-1

@@ -399,8 +436,8 @@ in this version. See the README.

- FAR / NEAR calibration now takes the median of 2.5 s (HOLD STILL) (V10.6z8). - VOICE no longer clips on open vowels; WORDS has CONS, the consonants' length (V10.6y).

Connections -- NRPN for every automatable parameter, knob moves sent as NRPN with MIDI OUT ALL (V10.6z3): docs/NRPN.md. -- The editor protocol is a versioned contract (1.2): web/EDITOR_PROTOCOL.md. +- NRPN for every automatable parameter, knob moves sent as NRPN with MIDI OUT ALL (V10.6z3): docs/NRPN.md. +- The editor protocol is a versioned contract (1.2): web/EDITOR_PROTOCOL.md. - The second core starts only on the stock power settings (after a SAFE START: one core) (V10.6z2).


0. Quick start

@@ -777,11 +814,11 @@ so not again after a reboot). SAVE › TOOLS › INIT SYSTEM starts them over. T "HOLD [X] QUICK" hints are gone): hold it and its layer shows itself.


3. Pages and layers

-

The navigation map: every section, its groups and its pages in chain order, the six rules, the held layers and the combos

+

The navigation map: every section, its groups and its pages in chain order, the six rules, the held layers and the combos

The whole synth on one page: each section's button, its groups (the tabs on the screen) and its pages in the order SELECT walks them (the number in each dot is the page's n of the footer's n/N; orange, the page at power-on; dashed, a page only some engines or LOADs have), with the six rules, the held layers and the combos. Click it for the zoomable -SVG (en español). It is generated from the firmware's chain tables (tools/gen_nav_map.py).

+SVG (en español). It is generated from the firmware's chain tables (tools/gen_nav_map.py).

How navigation works: six rules (0.9.2)

Since 0.9.2 every section is driven the same way (the design the owner approved, the mock-up "navegación"): learn it once and every section is known. Until 0.9.1 each part was a lens of three levels with sets of knobs; the pages, their @@ -4454,7 +4491,7 @@ faded): a photo of that screen helps when you report a problem.

switch) have an NRPN, with up to 14 bits of resolution. CC99 0 + CC98 the parameter's number on the channel the track plays (channel 16 also with ROUTE CH1-6: the selected track); CC99 1 + CC98 the global's number, on channel 16 (or any channel the FM-1 hears); then CC6 (and CC38 for the fine part) the value, - over the parameter's whole range. The numbers and ranges: docs/NRPN.md (made from the firmware itself). + over the parameter's whole range. The numbers and ranges: docs/NRPN.md (made from the firmware itself). The CCs above stay as they were. With MIDI OUT ALL, turning a knob on the panel sends its NRPN (a track's on its channel, a global's on channel 16): a DAW records the moves and plays them back to the FM-1.
  • For apps (V10.6z3): the editor protocol (SysEx, web/EDITOR_PROTOCOL.md) is a versioned contract (1.0) that only @@ -4652,7 +4689,7 @@ ALGORITHM; Shift-click holds a button. Great for learning the l

    Velocity view — https://juanjiant-bit.github.io/JIANT/webapp/vel/

    (V10.6z5, V10.6z7) Each note's velocity and each key's calibration, live, over USB (Chrome or Edge; protocol 1.1 or later). See Key velocity and aftertouch; in Spanish, the step-by-step test in -VELOCITY_DIAG.es.md.

    +VELOCITY_DIAG.es.md.

    Editor — https://juanjiant-bit.github.io/JIANT/webapp/editor/

    Every parameter from the computer, over USB. Tabs: Sound, 6-OP FM, Sequencer, Tracks, Library, Projects, Settings.

      @@ -4776,8 +4813,13 @@ install JIANT. Going straight from another custom firmware has bricked an FM-1.<

      If you resonate with my work, consider supporting me on Ko-fi (https://ko-fi.com/juanjiant) — in Argentina: Cafecito (https://cafecito.app/juanjiant).

  • + diff --git a/docs/guide/mpc-sample.html b/docs/guide/mpc-sample.html new file mode 100644 index 00000000..f3ea9122 --- /dev/null +++ b/docs/guide/mpc-sample.html @@ -0,0 +1,543 @@ + + + + + +JIANT FM on the MPC Sample · Manual + + + + + + +
    +
    + +
    +

    Manual · Akai MPC Sample

    JIANT FM on the MPC Sample

    +

    JIANT as the MPC Sample's whole instrument, started from the microSD card: its screen, pads, buttons and knobs as the FM-1's panel, with the SAMPLE and GRAIN engines, DRUM-X with samples and 16 sample slots. Preview: testers wanted.

    +

    JIANT FM on the Akai MPC Sample

    +

    JIANT FM as the MPC Sample's whole instrument, independent of any other app: the firmware's core +(ports/core) at the MPC's 44.1 kHz in 128-frame blocks (the FM-1's own block), JIANT's 240 x 240 screen in +the middle of the MPC's 320 x 240, the MPC's pads, buttons and knobs as the FM-1's panel, MIDI in from the DIN and USB +ports, and the device's flash kept on the card. It runs in place of the stock app, started from the microSD card, on +sample-base by keremimo (the runtime Melodee uses: the hardware, the +threads, the SD boot and the way back to the stock app).

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    src/jiant/jiant_app.cppthe app: audio, screen, lights, MIDI, the flash on the card
    src/jiant/panel_map.hthe MPC's surface as the FM-1's panel (the table is at its top)
    src/jiant/sample_browser.hthe SAMPLE BROWSER's controls (the table is at its top)
    src/jiant/sample_files.cppthe slots' files: WAV in and out, slots.json
    src/main.cppthe runtime, and the tools: --self-test, --preview, --persist-write / --persist-read, --samples-write / --samples-read
    release/README.txtwhat the user reads: install, the controls, where the music is kept
    +

    Build

    +
    ports/mpc-sample/build.sh test      # here (Linux): the app, its tests, build/preview.png
    +ports/mpc-sample/build.sh docker    # the MPC's ARM64 build in sample-base's image (Docker or Podman)
    +
    +

    build.sh fetches sample-base at a pinned commit into build/sample-base and JUCE into build/deps. On an ARM64 +Linux (or an ARM64 chroot under qemu-user) build.sh alone makes the MPC's binary; it must run on glibc 2.36 or older +(Debian bookworm, Ubuntu 22.04).

    +

    The tests: the control map and the SAMPLE BROWSER's (tests/panel_map_test.cpp), a note through the whole firmware +(--self-test, which the SD boot also runs before it starts JIANT), the screen (--preview), the music saved on the +card coming back in a new process (--persist-write, --persist-read), and the samples (--samples-write, +--samples-read: slots loaded from a 24-bit 48 kHz stereo and a float 22.05 kHz mono WAV through slots.json, a bar of +JIANT's output recorded into slot 5 and written as slot05.wav, found again sample for sample by a new process; the +browser drawn, build/samples/browser.png). The engines themselves are tested in the core (ports/core/build.sh test).

    +

    Samples: SAMPLE, GRAIN and DRUM-X's sample layer

    +

    On the big CPUs (this app, the MPC plugin, the desktop plugins: FELUCCA_HOST_POWER, ports/core) JIANT has +16 sample slots of up to 60 s each (mono or stereo, 44.1 kHz) and plays them three ways: the SAMPLE engine (one shot, +experimental), the GRAIN engine (granular) and a sample layer on every sound of DRUM-X. On the FM-1 none of this +exists: a project made here opens there with SAMPLE and GRAIN tracks as ANALOG and DRUM-X as its synthesized kit.

    +

    The card

    +

    JIANT/Samples holds the WAVs (16 or 24-bit PCM, 32-bit float; mono or stereo; any rate: resampled to 44.1 kHz when +loaded) and slots.json, which names the file of each slot ({"1": "kick.wav", "5": "slot05.wav"}). The app loads them +at start. A slot JIANT changed itself (a recording, DESTROY) is written back as Samples/slotNN.wav a second after it +stops changing, and slots.json then names it.

    +

    The SAMPLE BROWSER

    +

    SAMPLE opens it over the screen (the app owns the pads and these buttons while it is open):

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ControlIn the browser
    pads 1..16pick the slot (dim: it holds a sample; bright: the one picked)
    wheelscroll the files of JIANT/Samples
    left button above the screenCLOSE (or SAMPLE again)
    middle button above the screenAUDITION the file (again: stop)
    right button above the screenLOAD the file into the slot
    ERASECLEAR the slot
    SAMPLE SELECTthe source to record: LINE, MIC, USB, RESAMPLE (JIANT's own output)
    SAMPLE RECrecord the source into the slot from now (again: stop; 60 s at most)
    +

    The screen shows the slot (its name, length, mono / stereo, or EMPTY), the files, the source and RECORDING with its +seconds. LINE and MIC set the MPC's input route; USB records what the input gives without a route of its own (USB-C +audio in is not wired yet).

    +

    SAMPLE (one shot, experimental)

    +

    Pages: SAMPLE and WARP (EDIT 1 and 2), then TRIG and REC (EDIT's SAMPLE group). The picture shows the slot's name, its +waveform with START..END lit, the slices, the playheads, and RECORDING.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PageControlRange (default)What it does
    SAMPLESLOT1..16 (1)the slot played; its label reads EMPTY when the slot is empty (silent)
    START0..100 % (0)where it starts
    LENGTH0..100 % of what follows START (100)where it ends
    MODEONE GATE LOOP PING REV SLICE SCRUB TAPE (ONE)see below
    WARPTUNE-24..+24 st (0)on the key's pitch: C4 plays the original speed
    FEEDBK0..100 % (0)a comb tuned to the note inside the voice; near the top it rings by itself, soft-limited
    TONE0..100 % (50)the comb's damping: dark .. bright
    DSTROY0..100 % (0)the voice's output written back into the slot's working copy where it reads: each hit wears it. The loaded original is never touched; reloading the file brings it back
    TRIGTRIGNORM CHOKE RATCH RAND ROUND VEL LEGAT CHNCE (NORM)see below
    AMOUNT0..100 % (50); its label by TRIGCOUNT (RATCH: 2..16 hits), RANGE (RAND, VEL), SLOTS (ROUND: 1..16), CHANCE
    RATE1/4 1/8 1/8T 1/16 16T 1/32 (1/16)RATCH: the hits' distance at the tempo
    SLICES2..64 (16)SLICE: the region in so many equal slices
    RECRECOFF, then IN / MST / T1..T6 x 1 2 4 8 bars or H (OFF)arms a recording into SLOT: the device's input, JIANT's master or a track, from the next bar (at once when stopped), for so many bars (H: until set to OFF); it shows ARMED, then REC, and goes back to OFF when done
    WOW0..100 % (31)TAPE: wow and flutter; SCRUB: SMOOTH, how slowly the playhead slides
    STOP0..100 % (50)TAPE: the slow stop's time after the release (50 ms .. 4 s)
    DECAY0..100 % (50)RATCH: how much each hit falls
    +

    MODE: ONE plays START..END once, the release ignored. GATE stops on the release (the ADSR's). LOOP loops +the region while held, PING forth and back. REV plays it backwards once. SLICE cuts the region into SLICES: +C4 plays slice 1, C#4 slice 2 and so on, each at its own speed (TUNE on it). SCRUB: the velocity (and the part's +SHAPE: the LFO, the envelope, the matrix) sends the playhead; it plays a short loop where it stands and slides, as a +scratch, to where it is sent. TAPE: wow and flutter, and on the release a slow stop down to silence.

    +

    TRIG: NORM polyphonic. CHOKE one voice, each hit restarts. RATCH repeats the hit at RATE, COUNT times, +each DECAY lower. RAND a random start (SLICE: a random slice) within AMOUNT of the region. ROUND the next of +AMOUNT slots from SLOT at each hit (round robin). VEL the velocity picks the start (SLICE: the slice). LEGAT a new +note goes on from where the last one was. CHNCE each hit plays with AMOUNT's probability.

    +

    Presets: ONE SHOT, GATE, LOOP, PING PONG, REVERSE, SLICE 16, SLICE 8, RANDOM SLC, VEL SLICE, SCRUB, TAPE STOP, RATCHET, +CHOKE, ROUND ROBIN, LEGATO, CHANCE, FEEDBACK, METAL COMB, DESTROY, RESAMPLE.

    +

    GRAIN (granular)

    +

    Each voice runs its own cloud of up to 48 grains; the key sets their pitch (C4 the original), WIDTH spreads them in +stereo. Pages: GRAIN and CLOUD, then TRAVEL, SOURCE and PITCH. The picture shows the waveform (or the last seconds of the +LIVE input), the region, the playheads and the grains.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PageControlRange (default)What it does
    GRAINSLOT1..16 (1)the slot (EMPTY: silent); LIVE sources ignore it
    POS0..100 % (0)where the playhead's region starts (the part's SHAPE moves it); LIVE: AGO, how far back (50 ms .. 5.5 s)
    SCAN-64..+63 (0)the playhead's speed, 0 frozen; STRETCH: the factor (0.1x .. 1x .. 4x); RAND: JUMPS, how often
    SIZE0..100 % (50)a grain's length, 5 ms .. 500 ms
    CLOUDDENSE0..100 % (55)grains a second, 1 .. 200, overlapping
    SPRAY0..100 % (8)random position jitter, up to +-0.5 s
    SPREAD0..100 % (0)random detune of each grain, up to +-12 st (QUANT: octaves or fifths)
    REVRS0..100 % (0)the share of grains played backwards
    TRAVELTRAVELFWD REV PING RAND STRCH FREEZ KEY (FWD)the playhead in its region: forward or backward at SCAN, forth and back, random jumps, time-stretch (real time x SCAN's factor, the pitch the key's), frozen at POS, or the note picks the place (C2 .. C6 across the region)
    REGION0..100 % of what follows POS (100)the region's length
    FEEDBK0..100 % (0)the cloud's output fed back as the grains' input with the slot (1 s, soft-limited)
    SHIMMROFF +OCT +5TH -OCT +2OCT (OFF)the fed-back grains shifted: shimmer
    SOURCEWINDOWHANN TRI FLAT PERC SWELL (HANN)the grain's shape
    WIDTH0..100 % (50)the stereo spread
    SOURCESLOT IN MST (SLOT)the slot, or LIVE: the device's input or JIANT's master as it plays (a granular delay; FREEZ holds it)
    RECas SAMPLE'srecords into SLOT
    PITCHQUANTFREE OCT 5TH (FREE)SPREAD's detune free, in octaves, or in fifths and octaves
    DAMP0..100 % (100)the feedback's tone
    +

    Presets: CLOUD, FROZEN CLOUD, SCAN, STRETCH 0.5X, STRETCH 2X, SHIMMER, SPRAY, OCTAVES, REVERSE, GLITCH, KEY POSITION, +LIVE DELAY, LIVE FREEZE, FEEDBACK.

    +

    DRUM-X's sample layer

    +

    On a DRUM track, EDIT's SAMPLE group (pages SAMPLES and SAMPLES 2). With SMORPH at 0 (every preset) DRUM-X is exactly +the FM-1's.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ControlRange (default)What it does
    SMORPH0..100 % (0)each hit from its synthesized sound (0) to its sample (100)
    BLENDXFADE S>B B>S FOLW RING (XFADE)a crossfade; the synth's transient on the sample's body; the sample's transient on the synth's body; the sample following the synth's amplitude; one ringing the other
    SLOT1..16 (1)the first slot
    MAPSLOTS LANES KEYS (SLOTS)SLOTS: each sound its slot (kick SLOT, snare SLOT + 1 .. bell SLOT + 7; a hit at velocity 100 or more plays SLOT + 8 + its lane when that holds a sample: the velocity layer). LANES: SLOT cut in 8, each sound its slice. KEYS: SLOT cut in 16, GM note 36 + n its slice n (a sliced kit)
    SLEVEL0..100 % (100)the sample's level
    +

    The kit's TUNE and each sound's GM pitch tune its sample, DECAY below its middle shortens it, DRIVE and the drum bus shape +the sum as ever, and a closed hat chokes the open one's sample as its synth. CHANCE, the lanes' ratchets and TOUCH are the +sequencer's, as for the synth.

    +

    The web editor: not yet

    +

    The MPC Sample is a USB MIDI device to a computer (its USB-C gadget, f_midi, shown as "MPC Sample"), both ways, and +sample-base hands the app every packet from it, SysEx included (App::midi), and lets it send (App::midi_output). +But this app drops SysEx and sends nothing, so the web editor gets no answer from it (the editor +says so in its MIDI ports' help). The firmware's side is ready: the core answers the editor (jiant_sysex, +jiant_sysex_out, jiant_editor_host(4) so it shows as "MPC Sample"; ports/core/core_test.c), and the JUCE standalone +app uses it. What the app still needs, untested without a unit: the requests from the MIDI thread to the audio thread +(where the core runs) through a lock-free byte ring, the replies back the same way and out to the port the request came +from; and a reply longer than sample-base's 256-byte MidiPacket (DUMP is about 400 bytes) sent as consecutive +packets, which needs checking that its output queue keeps a SysEx split that way in one piece.

    +

    Release

    +
    python3 ports/mpc-sample/tools/make_release.py v10.7.64-mpc1 --binary <the ARM64 build>
    +
    +

    writes ports/mpc-sample/dist/JIANT-FM-MPC-Sample-<version>.zip: an autorun folder for the top of the card (signed as +the MPC wants it), the README and the licences.

    +

    Licences

    +

    JIANT is GPL-3.0-only; sample-base and JUCE are AGPL-3.0. The MPC Sample program combines them, as GPLv3 section 13 +allows, and is conveyed as a whole under the AGPLv3; JIANT's own files keep the GPL.

    +
    +
    + + + + diff --git a/docs/guide/plugin.html b/docs/guide/plugin.html new file mode 100644 index 00000000..7e091271 --- /dev/null +++ b/docs/guide/plugin.html @@ -0,0 +1,217 @@ + + + + + +JIANT FM in your DAW · Manual + + + + + + +
    +
    + +
    +

    Manual · VST3 · AU · AUv3 · LV2 · app

    JIANT FM in your DAW

    +

    For your DAW or the iPad (AUM, GarageBand, Logic, Cubasis…), with an editor made for a DAW: the live screen, the six tracks, each sound's presets and parameters, and a sample browser with drag and drop.

    +

    JIANT FM as VST3, AU, AUv3, LV2 and an app

    +

    The whole JIANT FM firmware as an instrument plugin for DAWs and iPad hosts (AUM, GarageBand, Logic, Cubasis...), and +as a standalone app, built with JUCE 9 from the same sources as the FM-1 (ports/core).

    +

    The plugin's editor

    +

    Unlike the MPC plugin (ports/mpc-plugin), the editor here is JIANT's own, made for a DAW rather than +a copy of the FM-1, in JIANT's look (the site's FM-1 panel: the dark body with its dot grid, the heat line, orange +corner brackets, rings with value arcs, DotGothic16 and IBM Plex Mono):

    +
      +
    • The screen, live, in the middle at an integer scale (x2 at the default size, x3 at 150 %), the way into everything + the firmware's UI does: the mouse wheel or a drag on it turns SELECT (with SHIFT, ALGORITHM: the track).
    • +
    • Its buttons as tabs under it: HOME EDIT FX ENV LFO SCL ARP / SEQ GLO SAVE PLAY REC OCT- OCT+, lit as the FM-1's; + SHIFT-click holds one. The four page knobs as big rings beside it, SELECT, PRESETS, ALGORITHM and MASTER small.
    • +
    • The six tracks on the left (number in its colour, engine, preset, level, mute; a click selects one), and a + one-octave strip to audition (MIDI from the DAW plays it anyway).
    • +
    • The selected track's sound on the right, from the firmware's own descriptors (the web editor's protocol, through + the core): its engine (< >), its presets, its eight EDIT parameters as rings with their names and values.
    • +
    • The sample browser (SAMPLES) over the right side; files dropped anywhere go into it.
    • +
    • A badge JIANT n/8, the transport and tempo, the CPU. The window scales (60 % to 200 %), its shape kept; the + computer keyboard as the emulator's (Z..' and Q..O the keys, 1..= the buttons, [ ] OCT, arrows SELECT / ALGORITHM).
    • +
    +

    The sample browser and a track's sound: editor-samples.png, editor-sound.png.

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FormatsVST3 (macOS, Windows, Linux), AU and AUv3 (macOS), AUv3 and the app (iOS / iPadOS), LV2 (Linux), standalone
    MIDIchannels 1-4 play tracks 1-4 (GLO > MIDI IN ROUTE CH1-4); CCs as JIANT's MIDI map
    Web editorthe standalone app answers the web editor (its SysEx in, the replies out of the MIDI output chosen in its settings: connect the two through a virtual MIDI cable, e.g. IAC on macOS, loopMIDI on Windows); it shows as "JIANT FM app / plugin" with SAMPLE, GRAIN and DRUM-X's samples. The plugins take the editor's SysEx but have no MIDI output (their buses as before), so a DAW does not pass the replies back
    SyncHost (default): the sequencer follows the host's transport and tempo; Internal: its own tempo
    ParametersVolume (the MASTER knob), Sync, and for automation T1..T6 Level, T1..T6 Cutoff (the filter on each track's sum) and DJ Filter: fixed to their tracks (the protocol's frozen ids), whatever sound a track plays, so recorded automation plays back the same; they follow the device too (a level turned in JIANT moves them)
    SamplesJIANT's 16 slots (SAMPLE, GRAIN, DRUM-X's sample layer): drop WAV / AIFF / FLAC / MP3 / OGG files anywhere on the window (on a slot of the browser: that slot; elsewhere: the browser's slot, the next ones for several files), or the browser's LOAD and CLEAR. Any rate (resampled to 44.1 kHz), mono or stereo, up to 60 s. REC inside JIANT (SAMPLE / GRAIN) records the master or a track, and the input when the host gives the plugin one (its Input bus, off until turned on: a DAW's sidechain; not on AU)
    Savedin the host's project: the live section, the songs, the user presets, and every slot's audio embedded (FLAC, lossless, about half the PCM's size: a 60 s stereo slot ~5-7 MB of its 10.6 MB, so a session with 16 full slots can reach ~100 MB; a short one-shot a few KB) with its name and the file it came from. The project carries its samples to another computer; nothing is read from the original files again
    Sample rateany (the firmware's 44.1 kHz, resampled)
    Powera computer's CPU: every track its own 8 voices; the firmware's own load governor on the real time (ports/README.md)
    Several per sessionup to 8 instances in one DAW session (one process), each a whole JIANT of its own, on its own audio thread if the host gives it one: the core is compiled 8 times, every copy's symbols its own (ports/core/jiant_copies.h); a 9th stays silent and says so. Memory: ~1 MB of code and ~6.4 MB of zeroed data per copy in the binary, resident only once a copy plays; the sample slots as loaded, the recorder's 60 s spare (21 MB, zeroed until it records) per playing instance
    +

    Build

    +
    ports/juce-plugin/build.sh                    # this computer's formats -> build/juce-plugin/JiantFM_artefacts/Release
    +ports/juce-plugin/build.sh -DJIANT_CHECK=ON   # and the checks: tests/plugin_check.cpp, editor_shot.cpp, sysex_check.cpp, sample_check.cpp
    +
    +

    JUCE 9.0.5 is fetched (or JUCE_DIR=<a checkout>). macOS: -G Xcode (AUv3). iOS: +cmake -S ports/juce-plugin -B build/juce-ios -G Xcode -DCMAKE_SYSTEM_NAME=iOS. .github/workflows/ports.yml builds +every platform on each push to ports/, and keeps the results as the run's artifacts.

    +

    The check (plugin_check <plugin>) loads the built plugin as a host loads it (JUCE's VST3 / AU hosting): its +description, a chord at 44.1, 48 and 96 kHz in blocks of 32 to 1024 frames (it sounds, then it is silent after the +note-offs, nothing non-finite), the state out and back; then 4 instances +at once on 4 threads, each its own sound (no two the same; a note into one sounds there only), each its own state +(saved, changed, put back), 8 sounding, the 9th silent, one closed and its JIANT taken by a new one; T1 Level from the host silencing and +sounding track 1, a level set in the device moving T2 Level; the editor made. macOS adds Apple's +auval. sample_check makes the processor and its editor: a WAV dropped on the editor lands in slot 1, SAMPLE plays it, +REC MST records a bar into slot 2 from inside JIANT, the state carries both to a new instance (another JIANT), which +plays them; the state it writes is loaded into the built VST3 by plugin_check (as the second argument). +sysex_check makes the processor as the standalone app does and sends the web editor's INFO, PRESET and DESC +through processBlock: the replies come back in its MIDI (the device as a computer, its big CPU's engines).

    +

    Installing

    +
      +
    • macOS: JIANT FM.vst3 into ~/Library/Audio/Plug-Ins/VST3, JIANT FM.component into + ~/Library/Audio/Plug-Ins/Components; the app carries the AUv3. The builds are not notarized: the first time, + right-click > Open (or xattr -dr com.apple.quarantine <the bundle>).
    • +
    • Windows: JIANT FM.vst3 into C:\Program Files\Common Files\VST3.
    • +
    • Linux: JIANT FM.vst3 into ~/.vst3, JIANT FM.lv2 into ~/.lv2.
    • +
    • iPad / iPhone (AUM): the .ipa is unsigned: it installs once signed with your Apple ID (Sideloadly, AltStore) or + through TestFlight with a developer account. Then AUM lists JIANT FM among its instruments.
    • +
    +

    Licences

    +

    JIANT is GPL-3.0-only; JUCE 9 is used under the AGPLv3. The plugin as a whole is conveyed under the AGPLv3 (GPLv3 +section 13); JIANT's own files keep the GPL. The VST3 SDK JUCE carries is MIT.

    +
    +
    + + + + diff --git a/docs/guide/ports.html b/docs/guide/ports.html new file mode 100644 index 00000000..493f2989 --- /dev/null +++ b/docs/guide/ports.html @@ -0,0 +1,243 @@ + + + + + +JIANT FM beyond the FM-1 · Manual + + + + + + +
    +
    + +
    +

    Manual · the ports and the MPC plugin

    JIANT FM beyond the FM-1

    +

    The same firmware from the same sources on other machines: the MPC plugin for the MPC standalones (MPC OS 3.10.1+) and desktop VST2 hosts, the MPC Sample app, the desktop plugins. A song sounds the same on every one.

    +

    JIANT beyond the FM-1

    +

    JIANT FM is meant to run whole, on its own, on more than one machine: the M-VAVE FM-1, the M-VAVE SMK-37 Pro / Elite +and the Akai MPC Sample, plus a plugin for the MPC standalones and desktop hosts. Every one of them plays the same +firmware sources (firmware/src), so a song sounds the same everywhere.

    +
                            firmware/src  (engines, sequencer, songs, generator, FX, UI, 240 x 240 screen)
    +                                  |
    +          +-----------------------+------------------------+
    +          |                                                |
    +   firmware/hal  (bare metal, JieLi AC79)           ports/core  (one C library, any CPU)
    +          |                                                |
    +   +------+-------+                     +------------------+-------------------+
    +   |              |                     |                  |                   |
    + FM-1     SMK-37 Pro / Elite     web/emu (browser)   ports/mpc-plugin    MPC Sample app
    + (today)  (same chip: next)      (today)             (this folder)       (next: its own OS)
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PortWhat it isState
    core/The whole firmware as one C library: boot, audio, MIDI, the panel, the screen, the music saved and restored. The browser emulator's host layer behind a stable API (jiant_core.h).Works, tested
    mpc-plugin/JIANT FM as an instrument plugin: MPC standalones (MPC OS 3.10.1+), and desktop VST2 hosts.Builds for ARM32, ARM64 and desktop; passes the SDK's host simulator; not yet tried on an MPC
    juce-plugin/JIANT FM as VST3, AU, AUv3 (AUM on the iPad), LV2 and a standalone app, an editor made for a DAW (the screen, the tracks, each sound's presets and EDIT parameters, a sample browser with drag and drop, the samples saved in the session); up to 8 in one session, each its own JIANT.Builds and passes its host check on Linux; macOS, iOS and Windows built by CI
    mpc-sample/JIANT as the MPC Sample's whole instrument, its own screen, the MPC's pads, buttons and knobs as the FM-1's panel, started from the microSD card (on keremimo's sample-base).Builds for ARM64; runs and passes its tests on Linux; not yet tried on an MPC Sample
    SMK-37JIANT on the SMK-37 Pro / Elite, bare metal like the FM-1 (same AC791N chip, same screen and audio format).Next
    +

    Full power on a bigger CPU

    +

    The FM-1's chip is small, and JIANT lives within it: when the load runs high it gives way (STRING, WEST and VOICE at +half the rate, FM6 at a quarter, the heavy reverbs as lighter ones, voices faded), all parts share 8 voices, and +EXPLORE keeps its pieces light. The ports run on far bigger CPUs, so the core builds with FELUCCA_HOST_POWER +(firmware/src/core.h; the FM-1, the browser emulator and the host tests are untouched by it):

    +
      +
    • Every track its own 8 voices (48 in all), not 8 between all of them.
    • +
    • EXPLORE at full size: no lighter pieces for the FM-1's CPU.
    • +
    • +

      The load measured in real time on that CPU (web/emu/felucca_web.c JIANT_REAL_LOAD): the firmware's own + governor and overload guard stay, so the sound gives way only if that CPU itself runs short; on one with room it + never does. jiant_cpu_percent() and friends report it; the MPC Sample app shows it on the screen (CPU, red when + anything gave way), in status, and jiant --bench measures the bench song on the MPC's own CPU.

      +
    • +
    • +

      Samples (firmware/src/smp_slots.c, the API in jiant_core.h): 16 slots of up to 60 s, + mono or stereo, loaded from the host's PCM at any rate (made and resampled on the host's own thread, handed to the + audio thread by pointer, freed by jiant_service on the host's service thread), recorded from the device's input + (jiant_input), JIANT's master or a track, and played by two engines in the FM-1's retired slots, SAMPLE (4: + one shot with experimental modes and triggers, a feedback comb, DESTROY, REC) and GRAIN (8: granular, on a slot + or LIVE on the input or the master, time-stretch, feedback and shimmer), and by a sample layer on every DRUM-X + sound (SMORPH and its blends). The controls: mpc-sample/README.md. + On the FM-1 none of it exists: a project made with them plays SAMPLE and GRAIN as ANALOG there (the retired engines' + way) and DRUM-X as its synthesized kit (the layer's values sit in slots a DRUM track there never reads).

      +
    • +
    +

    On this computer (x86) the bench song renders at ~37x real time; on the MPC Sample's Cortex-A55 a share of one of +its four cores, to be measured with --bench on the hardware.

    +

    The core

    +
    ports/core/build.sh test      # build/core/libjiant_core.a, then its test
    +
    +

    One device per library (the firmware keeps its state in globals), not thread safe; see the header. For several in +one process (JIANT FM on several tracks of a DAW), jiant_copies.h: the core compiled N times +(jiant_copy.c, 8 in the JUCE plugin), each copy one translation unit with every external symbol renamed (the list, +copy_symbols.h, is made from the core's object by ports/core/build.sh symbols and checked by the test), its API a +table of functions; an instance claims a free copy and gives it back. The copies share nothing, so each may run on its +own thread. Plain C and the preprocessor: no object tools, the same on Linux, Windows (clang-cl) and macOS. The test boots it, +plays a MIDI note, draws the screen, plays a generated song, saves and restores the music, follows an external MIDI +clock, loads and records sample slots. sample_test drives the sample engines with the firmware's internals at hand: +every SAMPLE mode and trigger, GRAIN's travel modes, time-stretch, feedback and LIVE input, DRUM-X's blends (and with +SMORPH 0 bit for bit the FM-1's DRUM-X), REC from the master, the bounds at the engines' tops and their cost; then +fm1_load_test, the core built as the FM-1 is, loads the project it saved; copies_test links 8 copies beside the +single library: copy 0 plays what the single core plays, sample for sample; three copies on three threads at once play +what three others play one after another, bit for bit; one copy's music and samples touch no other's.

    +

    The MPC plugin

    +
    pip install ziglang           # the cross compiler, as inMusic's SDK uses
    +python3 ports/mpc-plugin/build.py
    +
    +

    It fetches inMusic's MPC Plugin SDK (MIT) at a pinned +commit into build/mpc-plugin-sdk, builds the core and the plugin for the desktop, ARM32 and ARM64, runs the SDK's +host simulator (the MPC's load sequence and its quirks, at 44.1 kHz and at 48 kHz), and assembles the folder the MPC +installs, checked with the SDK's validate.py:

    +
    build/mpc-plugin/Juan Jiant - VST - JIANT FM/      (and a zip of it)
    +
    +

    On an MPC: Preferences > Enhancements (Beta) > Enable Enhancements and External Plugin Support; copy the folder to +VST2 Plugins on a USB drive or SD card, restart, and load JIANT FM on a plugin track.

    +

    What the plugin does:

    +
      +
    • MIDI: channels 1 to 4 play tracks 1 to 4 (GLO > MIDI IN ROUTE CH1-4).
    • +
    • Sync Host (default): the sequencer follows the MPC's transport and tempo (a 24 PPQN clock made from the host's + beats). Internal: its own tempo; Play starts and stops it.
    • +
    • GENE: genre, seed, energy and form; Generate makes a song.
    • +
    • The music is saved in the MPC project: the live section, the songs and the user presets.
    • +
    • Any sample rate: 44.1 kHz as is (the MPC's), other rates resampled.
    • +
    +

    Limits, today:

    +
      +
    • No JIANT screen inside an MPC: MPC plugins show only the MPC's parameter page. The full JIANT, its screen and + its UI, is the MPC Sample app's job (mpc-sample/), not the plugin's.
    • +
    • One JIANT per project: a second instance stays silent (the firmware is one device).
    • +
    • Tried in the SDK's host simulator, not yet on MPC hardware.
    • +
    +

    Licences

    +

    JIANT is GPL-3.0-only. The SDK's framework is MIT and links into the plugin under the GPL; the plugin folder carries +JIANT's LICENSE and where its source is. The SMK-37's own SDK library is proprietary: the SMK-37 port is to run bare +metal on JIANT's own HAL, as on the FM-1, not linked with it.

    +
    +
    + + + + diff --git a/docs/guide/smk37.html b/docs/guide/smk37.html new file mode 100644 index 00000000..1cae4f93 --- /dev/null +++ b/docs/guide/smk37.html @@ -0,0 +1,455 @@ + + + + + +JIANT FM on the SMK-37 · Manual + + + + + + +
    +
    + +
    +

    Manual · M-VAVE SMK-37 Pro / Elite

    JIANT FM on the SMK-37

    +

    JIANT bare metal on the SMK-37's own chip (the FM-1's AC791N): 37 keys, 16 RGB pads, 8 encoders and 4 faders as its panel, the same web editor and the same sounds. In development.

    +

    JIANT FM on the M-VAVE SMK-37 Pro / Elite

    +

    Status: experimental. Nothing in this port has run on an SMK-37. Everything in it was built and checked +on the host only. Every item marked untested on hardware below must be checked on a unit before anyone +installs this build for real use.

    +

    The SMK-37 has the same JieLi AC791N chip as the FM-1. It also has the same SPL and the same chip key (0x980F) +in the stock v016 packages. Its board differs: the keybed, buttons, knobs, LEDs, LCD pins, flash layout and +factory data. The port is a build-time board option. The FM-1 build gets no new flag and is byte for byte what it +was.

    +

    The port follows Melodee's BOARD_SMK37 (GPL-3.0-only; its SMK-37 port is by M. Geisler (genkigenki/makkuro), +with hardware notes at https://github.com/genkigenki/fm1-to-smk37). hal/smk_input.h and +tests/smk_keys_test.c are Melodee's files, unchanged. The flash map, the store owner tag, the LCD wiring, the pad +LEDs and the panel table are adapted from Melodee and keep its attribution lines. M-VAVE's open SMK firmware was +used for hardware facts only. No M-VAVE SDK binary is linked or copied.

    +

    Build

    +
    ./build.sh                                  # FM-1: build/felucca.fwsc (unchanged)
    +./build.sh --board smk37                    # SMK-37 Pro:   build/smk37-pro/felucca-smk37-pro.fwsc
    +./build.sh --board smk37 --model elite      # SMK-37 Elite: build/smk37-elite/felucca-smk37-elite.fwsc
    +FELUCCA_SMK_FLASH=1 ./build.sh --board smk37    # the same, with the flash store on (see below)
    +
    +

    BOARD=smk37 and MODEL=elite in the environment work too. --release X.Y gives the identity +SMK-37 Pro_9XY or SMK-37 Elite_9XY.

    +

    What the SMK build changes:

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FM-1SMK-37
    definenone-DBOARD_SMK37=1 -DSMK_MODEL="SMK-37 Pro" (or "SMK-37 Elite")
    package identityFM-1_900SMK-37 Pro_900 / SMK-37 Elite_900
    update loader's identityota-FM-1_900ota-SMK-37 Pro_900 / ota-SMK-37 Elite_900
    update record's identityota-FM-1_015ota-SMK-37 Pro_016 / ota-SMK-37 Elite_016
    USB productJIANT / JIANT UpdateJIANT SMK-37 / JIANT SMK Update
    flash.bin (PRCT)0x930000x9D000, with the stock v016 region table
    TRS MIDI IN (UART1, PH8)onoff: PH8 is a key-matrix row on the SMK (#error if turned on)
    LCDSPI1 group B, PC7 CS, backlight PA2SPI1 group A: PB6 CLK, PB7 DO, PC8 CS, PB5 D/C, no backlight control
    input HALhal/fm1_input.h, hal/fm1_adc.hhal/smk_input.h (it stands in for fm1_adc.h: PB6 is the LCD clock)
    +

    The app slot (0x8EA90 bytes) is the FM-1's. The encrypted region still ends at 0x92FFE inside the SMK's +0x9D000 app area.

    +

    The control mapping

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    SMK-37 (printed)JIANT (the FM-1's control)
    FXFX
    SCALESCL
    CHORDENV
    NOTE REPEATLFO
    PARAEDIT
    GLOBEGLO
    PATCHHOME
    BTSAVE
    ARPARP
    SEQSEQ
    SEQ PLAYPLAY
    SEQ RECREC
    OCTAVE- / OCTAVE+OCT- / OCT+
    K1..K4KNOB 1..4
    K5MASTER (a virtual pot: 24 steps a detent, 724 at power-on)
    K6 / K7 / K8SELECT / ALGORITHM / PRESETS
    < / >one SELECT step each, as one detent of K6
    the 27 middle keys F3..G5the FM-1's 27 keys
    the 16 padsthe FM-1's 16 white keys F3..G5. Bottom row, left to right: F3 G3 A3 B3 C4 D4 E4 F4. Top row: G4 A4 B4 C5 D5 E5 F5 G5
    the outer 10 keys (C3..E3, G#5..C6)nothing yet (their events are drained)
    KNOB BANK, FADER BANKnothing yet
    faders 1..4, pitch / mod wheel, sustain pedalnothing yet (the HAL reads them; JIANT does not use them)
    +

    Other behaviour: +- OCTAVE- + OCTAVE+ held at power-on opens HARDWARE CALIBRATION. It asks for each FM-1 function by its printed SMK + name, and for the knobs by K6, K7, K8 and K1..K4. The table's magic is PNS5, so an FM-1 table is never taken. +- OCTAVE- + OCTAVE+ held for 5 s enters UBOOT, as on the FM-1. +- Keys and pads play at the velocity the HAL measures (the keybed's two-contact time, a pad's peak); notes sent to MIDI OUT carry it. The FM-1 still plays at 100. Untested on hardware. +- A key struck again before a full lift sounds again (notes_retrig). +- Button LEDs are on or off. What breathes on the FM-1 blinks at about 1 Hz here. The FM-1's dim idle glow has no + level on the SMK, so idle buttons are dark, as with MENU > LEDS OFF. MENU > LEDS INV lights the idle buttons, as + on the FM-1. SEQ PLAY shows its green LED while playing. +- The pads show their key's LED from the FM-1 picture: + - white when lit; + - blinking when it breathes; + - dim for the DRUM grid's glow and beats and for SCALE LEDS. +- The screen texts still name the FM-1's controls (for example HOME, SCL, KNOB 1).

    +

    Flash: RAM-only by default

    +

    The SMK's flash holds factory data that cannot be recreated: the per-unit key and pad calibration (USRTRIM) and the +Bluetooth pairing (BTIF). So the default SMK build is RAM-only. It never erases or writes the flash. Settings, +projects and presets are lost at power-off. An update from JIANT's own M-UPGRADE entry is off too, because it needs +the flash. As on the FM-1, any unknown flash chip also gives RAM-only.

    +

    FELUCCA_SMK_FLASH=1 turns the store on. It does so only on the SMK's own flash part (JEDEC 0xEB6014) and only in +the SMK's map. Untested on hardware.

    +

    The SMK's flash map (firmware/hal/fm1_flash_map.h):

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    rangewhatJIANT
    0x00000-0x03FFFhead (SPL, isd_config)never written
    0x04000-0x9CFFFapp area (stock PRCT)the update loader only
    0x9D000-0xBAFFFVMstore A: settings, 4 projects (song 1), FM6 patches, autosave, voice bank, song index, presets, song 2; the owner tag SMK37DATAJIANT at 0xAF000
    0xBB000-0xBFFFFVMOTA staging; the update record at 0xBFF00
    0xC0000-0xC0FFFBTIF (Bluetooth pairing)never
    0xC1000-0xC1FFFUSRTRIM (factory calibration)never
    0xC2000-0xE9FFFUSRFLASH (the stock key mapping)store B: songs 3..7, only after the marker release
    0xEA000-0xEAFFFUSRFLASH's end marker usrdata at 0xEAFF8erased once, as a whole sector, before the first write into store B, so that stock rebuilds its mapping
    0xEB000-0xF3FFFunlistedstore C: song 8; 0xF3000 spare
    0xF4000-0xFDFFFUSR (stock resources, for a return to stock)never
    0xFE000-0xFEFFFfreenever
    0xFF000-0xFFFFFkey_macnever
    +

    The guards: +1. The RAM flash driver (fl_erase4k_ram, fl_prog_ram) refuses any range that FL_GUARD refuses. + FL_GUARD = FL_RANGE_OK && !FL_PROTECTED. FL_PROTECTED is an independent net over the head, BTIF, USRTRIM, USR + with 0xFE000, and key_mac. It holds under the update loader's own allow-list too. Wrapping and straddling ranges + are refused. +2. storage_hw.c allows erases and writes only in stores A, B and C. The marker sector is allowed only as one + whole-sector erase. +3. On the first boot over another firmware's store, JIANT clears stores A, B and C and tags the store. It keeps an + intact stock mapping in store B until JIANT first writes there. +4. The app's M-UPGRADE entry stages only in 0xBB000-0xBFFFF. Before anything is erased, it refuses: + - an FM-1 package (-15); + - a package whose region table differs from the device's (-16); + - an official package with USR anywhere other than 0xF4000 (-17). +5. JIANT's update loader writes only the app area 0x4000-0x9CFFF. It erases update records only in the OTA area. It + refuses an FM-1 package (-3) and a package whose region table differs from the device's (-14). +6. The package carries the stock v016 region table byte for byte. This was checked against M-VAVE's stock Pro and + Elite v016 packages.

    +

    Do not install the FM-1 package on an SMK. The FM-1's loader cannot be changed (its build must stay +byte-identical), and it does not know the SMK's map.

    +

    Host tests

    +

    tests/run_tests.sh runs these. The package checks run once the SMK packages are built. Set SMK_STOCK=dir +(holding SMK37-Pro-V16.fwsc and SMK37-Elite-V16.fwsc) to compare the region table with the stock packages too.

    +
      +
    • tests/smk_flash_test.c checks the map and its guards:
    • +
    • every protected sector, page and byte against every allow-list and the driver's net;
    • +
    • straddling and wrapping ranges;
    • +
    • the store table;
    • +
    • a simulated SMK with patterns in every protected range: first boot, every object saved and loaded, the marker + released exactly once, erases and writes aimed at each forbidden range refused, then every protected byte + compared.
    • +
    • A check that the RAM driver uses FL_GUARD.
    • +
    • tests/smk_ldr_test.c checks the SMK update loader on a simulated SMK.
    • +
    • tests/ota_test.c, SMK build: staging at 0xBB000, the model's record, the board check.
    • +
    • tests/smk_pkg_test.py checks the package: identity, size, region table and app.bin.
    • +
    • tests/smk_map_test.c checks the control mapping.
    • +
    • tests/smk_keys_test.c is Melodee's keybed test, run on hal/smk_input.h.
    • +
    +

    Untested on hardware

    +

    Everything that touches the SMK. In particular: +- The SMK SPL boots this app (app_area_head ends at 0x92FFE inside a 0x9D000 PRCT). +- The stock SMK firmware's updater accepts this package. M-VAVE's Pro v016 file interleaves 36 identity blocks; + JIANT's packages use 20, as on the FM-1. +- Chip key 0x980F on every SMK unit. +- fm1_enter_uboot (UBOOT) and the SPL honouring the update record at 0xBFF00 with ota-SMK-37 Pro_016. +- LCD orientation, colours and SPI speed. No glitches when SPI1 switches to the pad LEDs. +- The pad LED chain order, colours and timing (the 250-byte latch). +- Button ids, LED positions and encoder directions (Melodee confirmed these on an Elite only). +- The ADC timing (console: adc_miss near 0), the pads' thresholds, and the K5 MASTER pot's feel. +- The audio codec and output path (PC0/1/2/6, the same lines as the FM-1's). +- The battery reading (mux C address 7). +- With FELUCCA_SMK_FLASH=1: + - flash ID 0xEB6014; + - the marker release, and stock rebuilding its mapping after a return to stock; + - BTIF and USRTRIM byte-identical before and after an install and a first boot (dump 0xC0000-0xC1FFF); + - the stock VM's contents being cleared on JIANT's first boot. +- The Pro, and every Elite other than the one Melodee ran on.

    +

    Not done yet

    +
      +
    • TRS MIDI out on PC7, the faders, the wheels and the sustain pedal.
    • +
    • KNOB BANK and FADER BANK, and the outer 10 keys.
    • +
    • The factory velocity curves from USRTRIM (read-only).
    • +
    • A boot-stub rescue (OCTAVE- at power-on).
    • +
    • SMK models in tools/fm1_install.py, including refusing cross-model installs.
    • +
    • An SMK mode for the browser emulator.
    • +
    +
    +
    + + + + diff --git a/tools/gen_manual_html.py b/tools/gen_manual_html.py index 0b1ea581..b7b6847f 100644 --- a/tools/gen_manual_html.py +++ b/tools/gen_manual_html.py @@ -12,6 +12,7 @@ switch and a Download link. Needs `pip install markdown`. import base64 import html import mimetypes +import os import re from pathlib import Path @@ -111,53 +112,153 @@ UI = { } CSS = """ -:root{--bg:#0b0d0c;--surf:#131816;--raise:#1a201d;--line:#26302b;--fg:#e9efeb;--mid:#a3b4aa;--dim:#6b7c72;--accent:#FF8A2A; ---display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;--body:"IBM Plex Sans",system-ui,sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;color-scheme:dark} -@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--bg:#f1f4f2;--surf:#fff;--raise:#f6f8f7;--line:#d3ddd7;--fg:#141e19;--mid:#43564c;--dim:#6f8177;--accent:#c75a00;color-scheme:light}} -:root[data-theme="light"]{--bg:#f1f4f2;--surf:#fff;--raise:#f6f8f7;--line:#d3ddd7;--fg:#141e19;--mid:#43564c;--dim:#6f8177;--accent:#c75a00;color-scheme:light} +:root{--bg:#050409;--surf:#0b0912;--raise:#100e18;--line:rgba(239,230,200,.14);--fg:#efe6c8;--mid:#c9c1d8;--dim:#a39bb6; +--accent:#ff7a1a;--vio:#b870ff;--cyan:#3fe0e6;--heat:linear-gradient(90deg,#6b5cff,#b870ff 35%,#ff4bb0 60%,#ff7a1a 85%,#ffd34d); +--display:"Michroma","Segoe UI",system-ui,sans-serif;--body:"Instrument Sans",system-ui,sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;color-scheme:dark} *{box-sizing:border-box} -body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:16px;line-height:1.65} -.layout{max-width:1240px;margin:0 auto;padding-block:24px 64px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:grid;grid-template-columns:270px minmax(0,1fr);gap:40px} +html{scroll-behavior:smooth} +body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:16px;line-height:1.65; + background-image:radial-gradient(900px 420px at 85% -120px,rgba(184,112,255,.16),transparent 70%),radial-gradient(700px 360px at -10% 0,rgba(255,122,26,.08),transparent 70%);background-repeat:no-repeat} +.top{position:sticky;top:0;z-index:5;background:rgba(5,4,9,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)} +.top .in{max-width:1240px;margin:0 auto;padding:12px max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap} +.brand{font-family:var(--display);font-size:17px;letter-spacing:.04em;color:var(--fg);text-decoration:none;white-space:nowrap} +.brand b{font-weight:400;background:var(--heat);-webkit-background-clip:text;background-clip:text;color:transparent} +.brand small{font-family:var(--mono);font-size:10px;letter-spacing:.2em;color:var(--dim);margin-left:8px;text-transform:uppercase} +.docs{display:flex;gap:4px;flex-wrap:wrap} +.docs a{font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--dim);text-decoration:none;padding:6px 10px;border:1px solid transparent;border-radius:8px} +.docs a:hover{color:var(--fg)} +.docs a[aria-current="page"]{color:var(--fg);border-color:var(--line);background:var(--surf)} +.layout{max-width:1240px;margin:0 auto;padding-block:28px 72px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:grid;grid-template-columns:270px minmax(0,1fr);gap:44px} @media (max-width:900px){.layout{grid-template-columns:minmax(0,1fr);gap:16px}} -nav.toc{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow:auto;font-size:14px;border-right:1px solid var(--line);padding-right:16px} -@media (max-width:900px){nav.toc{position:static;max-height:none;border-right:0;padding-right:0}} -nav.toc details{border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--surf)} -nav.toc summary{cursor:pointer;font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--mid)} -nav.toc ul{list-style:none;margin:6px 0 0;padding-left:0} -nav.toc ul ul{padding-left:12px} -nav.toc a{color:var(--mid);text-decoration:none;display:block;padding:2px 0} -nav.toc a:hover,nav.toc a:focus-visible{color:var(--fg)} -main{min-width:0;max-width:820px} -.bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px} -.btn{font-family:var(--mono);font-weight:600;font-size:13px;text-decoration:none;color:var(--fg);border:1px solid var(--line);background:var(--surf);border-radius:999px;padding:6px 12px} +nav.toc{position:sticky;top:76px;align-self:start;max-height:calc(100vh - 96px);overflow:auto;font-size:14px;padding-right:12px} +@media (max-width:900px){nav.toc{position:static;max-height:none;padding-right:0}} +nav.toc details{border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:var(--surf)} +nav.toc summary{cursor:pointer;font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--cyan)} +nav.toc ul{list-style:none;margin:8px 0 0;padding-left:0} +nav.toc ul ul{padding-left:12px;border-left:1px solid var(--line);margin:2px 0 6px 2px} +nav.toc a{color:var(--dim);text-decoration:none;display:block;padding:3px 0;line-height:1.35} +nav.toc a:hover,nav.toc a:focus-visible,nav.toc a.here{color:var(--fg)} +nav.toc a.here{box-shadow:inset 2px 0 0 var(--accent);padding-left:8px} +main{min-width:0;max-width:840px} +.hero{position:relative;padding:26px 26px 22px;margin:0 0 26px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,rgba(184,112,255,.07),transparent 70%),var(--surf);overflow:hidden} +.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--heat);opacity:.8} +.eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--cyan);margin:0 0 10px} +.hero h1{margin:0 0 10px} +.hero .lead{color:var(--mid);margin:0 0 16px;max-width:64ch} +.hero img.shot{display:block;width:100%;margin:6px 0 16px;border:1px solid var(--line);border-radius:10px} +.bar{display:flex;flex-wrap:wrap;gap:8px} +.btn{font-family:var(--body);font-weight:600;font-size:14px;text-decoration:none;color:var(--fg);border:1px solid var(--line);background:var(--raise);border-radius:10px;padding:8px 14px} +.btn.go{background:var(--fg);color:var(--bg);border-color:var(--fg)} .btn:hover,.btn:focus-visible{border-color:var(--accent);outline:none} -h1,h2,h3,h4{font-family:var(--display);line-height:1.15;text-wrap:balance;scroll-margin-top:16px} -h1{font-size:clamp(32px,6vw,52px);margin:0 0 12px} -h2{font-size:28px;margin:48px 0 12px;padding-top:12px;border-top:1px solid var(--line)} -h3{font-size:20px;margin:32px 0 8px} -h4{font-size:17px;margin:24px 0 6px} -p,li{max-width:72ch} -a{color:var(--accent)} -code,kbd{font-family:var(--mono);font-size:.88em} -code{background:var(--raise);border:1px solid var(--line);border-radius:4px;padding:0 4px} -kbd{background:var(--raise);border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:0 5px;white-space:nowrap} -.tw{overflow-x:auto;margin:12px 0} +h1,h2,h3,h4{font-family:var(--display);font-weight:400;line-height:1.2;text-wrap:balance;scroll-margin-top:84px;letter-spacing:.01em} +h1{font-size:clamp(26px,4.6vw,42px)} +h1 .fm{background:var(--heat);-webkit-background-clip:text;background-clip:text;color:transparent} +main>h1:first-of-type{display:none} +h2{font-size:clamp(19px,2.6vw,25px);margin:56px 0 14px;padding-top:18px;border-top:1px solid var(--line);position:relative} +h2::before{content:"";position:absolute;top:-1px;left:0;width:56px;height:2px;background:var(--heat)} +h3{font-size:17px;margin:34px 0 8px;color:var(--fg)} +h4{font-size:14px;margin:24px 0 6px;color:var(--mid);font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase} +p,li{max-width:74ch} +li{margin:3px 0} +strong{color:#fff3ce;font-weight:600} +a{color:var(--vio);text-underline-offset:3px} +a:hover{color:var(--accent)} +code,kbd{font-family:var(--mono);font-size:.86em} +code{background:var(--raise);border:1px solid var(--line);border-radius:5px;padding:1px 5px;color:#fff3ce} +kbd{background:#16131f;border:1px solid rgba(255,122,26,.45);border-bottom-width:2px;border-radius:6px;padding:0 6px;white-space:nowrap;color:#ffd9b8} +.tw{overflow-x:auto;margin:14px 0;border:1px solid var(--line);border-radius:12px;background:var(--surf)} table{border-collapse:collapse;width:100%;font-size:14px} -th,td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--line);vertical-align:top} -th{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);font-weight:600} -img{max-width:100%;height:auto;border-radius:8px} -pre{overflow-x:auto;background:var(--raise);border:1px solid var(--line);border-radius:8px;padding:12px} -blockquote{margin:12px 0;padding-left:14px;border-left:3px solid var(--accent);color:var(--mid)} -hr{border:0;border-top:1px solid var(--line);margin:32px 0} -.ess{background:var(--surf);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:8px 0 24px} +th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top} +tr:last-child td{border-bottom:0} +th{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan);font-weight:500;background:rgba(63,224,230,.04)} +tbody tr:hover td{background:rgba(184,112,255,.05)} +img{max-width:100%;height:auto;border-radius:10px} +pre{overflow-x:auto;background:var(--surf);border:1px solid var(--line);border-radius:12px;padding:14px 16px} +pre code{background:none;border:0;padding:0;color:var(--mid)} +blockquote{margin:14px 0;padding:10px 16px;border-left:3px solid var(--vio);background:rgba(184,112,255,.06);border-radius:0 10px 10px 0;color:var(--mid)} +blockquote p{margin:4px 0} +hr{border:0;border-top:1px solid var(--line);margin:36px 0} +.ess{position:relative;background:var(--surf);border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin:8px 0 26px} .ess h2{margin:0 0 8px;border:0;padding:0} -.ess h3{font-size:16px;margin:16px 0 6px;color:var(--mid);font-family:var(--mono);letter-spacing:.06em;text-transform:uppercase} -.ess dl{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:6px 16px;margin:0} +.ess h2::before{display:none} +.ess h3{font-size:12px;margin:18px 0 8px;color:var(--cyan);font-family:var(--mono);letter-spacing:.16em;text-transform:uppercase} +.ess dl{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:8px 18px;margin:0} .ess dt{min-width:0} -.ess dd{margin:0;min-width:0} -@media (max-width:600px){.ess dl{grid-template-columns:minmax(0,1fr)}.ess dd{margin-bottom:8px;color:var(--mid)}} +.ess dd{margin:0;min-width:0;color:var(--mid)} +@media (max-width:600px){.ess dl{grid-template-columns:minmax(0,1fr)}.ess dd{margin-bottom:8px}} +@media (max-width:640px){.top{position:static}nav.toc{top:12px}h1,h2,h3,h4{scroll-margin-top:12px}} +footer{max-width:1240px;margin:0 auto;padding:24px 16px 40px;color:var(--dim);font-size:13px;border-top:1px solid var(--line)} +footer a{color:var(--dim)} +@media print{.top,nav.toc,.bar{display:none}.layout{display:block}body{background:#fff;color:#000}} """ +# every manual (the docs nav): key, page, label, the source; the ports' docs are in English +STUDIO = "https://juanjiant-bit.github.io/JIANT/studio/" +GH = "https://github.com/juanjiant-bit/JIANT/blob/main/" +PAGES = [ + ("fm", "manual.html", "JIANT FM · FM-1"), + ("smk37", "smk37.html", "SMK-37"), + ("mpc", "mpc-sample.html", "MPC Sample"), + ("ports", "ports.html", "MPC plugin · ports"), + ("plugin", "plugin.html", "VST3 · AU · LV2"), +] +# a source's .md the other pages are made from (links between them stay inside the manuals) +MD_PAGE = {"docs/MANUAL.md": "manual.html", "docs/MANUAL.es.md": "manual.es.html", "docs/SMK37.md": "smk37.html", + "ports/mpc-sample/README.md": "mpc-sample.html", "ports/README.md": "ports.html", + "ports/juce-plugin/README.md": "plugin.html"} +PORT_DOCS = { + "smk37": dict(src="docs/SMK37.md", eyebrow="Manual · M-VAVE SMK-37 Pro / Elite", shot="smk37.webp", + title='JIANT FM on the SMK-37', + lead="JIANT bare metal on the SMK-37's own chip (the FM-1's AC791N): 37 keys, 16 RGB pads, 8 encoders and 4 faders as its panel, the same web editor and the same sounds. In development.", + links=[("Try it in the browser", "https://juanjiant-bit.github.io/JIANT/emu/devices.html#smk37"), ("JIANT Studio", STUDIO + "#ports")]), + "mpc": dict(src="ports/mpc-sample/README.md", eyebrow="Manual · Akai MPC Sample", shot="mpc.webp", + title='JIANT FM on the MPC Sample', + lead="JIANT as the MPC Sample's whole instrument, started from the microSD card: its screen, pads, buttons and knobs as the FM-1's panel, with the SAMPLE and GRAIN engines, DRUM-X with samples and 16 sample slots. Preview: testers wanted.", + links=[("Download", "https://github.com/juanjiant-bit/JIANT/releases"), ("Try it in the browser", "https://juanjiant-bit.github.io/JIANT/emu/devices.html#mpc"), ("JIANT Studio", STUDIO + "#ports")]), + "ports": dict(src="ports/README.md", eyebrow="Manual · the ports and the MPC plugin", shot="mpc-plugin.webp", + title='JIANT FM beyond the FM-1', + lead="The same firmware from the same sources on other machines: the MPC plugin for the MPC standalones (MPC OS 3.10.1+) and desktop VST2 hosts, the MPC Sample app, the desktop plugins. A song sounds the same on every one.", + links=[("Download", "https://github.com/juanjiant-bit/JIANT/releases"), ("JIANT Studio", STUDIO + "#ports")]), + "plugin": dict(src="ports/juce-plugin/README.md", eyebrow="Manual · VST3 · AU · AUv3 · LV2 · app", shot="plugin.webp", + title='JIANT FM in your DAW', + lead="For your DAW or the iPad (AUM, GarageBand, Logic, Cubasis…), with an editor made for a DAW: the live screen, the six tracks, each sound's presets and parameters, and a sample browser with drag and drop.", + links=[("Download", "https://github.com/juanjiant-bit/JIANT/releases"), ("JIANT Studio", STUDIO + "#ports")]), +} + + +def topbar(current, lang="en"): + cur = ' aria-current="page"' + docs = "".join(f'{html.escape(t)}' for k, href, t in PAGES) + word = "Manuales" if lang == "es" else "Manuals" + return (f'
    JIANT FM{word}' + f'
    ') + + +def fix_links(body, src_rel): + """links to the other sources: to their pages; other relative links: to GitHub""" + base = Path(src_rel).parent + + def rep(m): + href = m.group(1) + if re.match(r"^(https?:|mailto:|#|data:)", href): + return m.group(0) + path, _, frag = href.partition("#") + target = os.path.normpath((base / path).as_posix()) if path else src_rel + tail = "#" + frag if frag else "" + if target in MD_PAGE: + return f'href="{MD_PAGE[target]}{tail}"' + return f'href="{GH}{target}{tail}"' + return re.sub(r'href="([^"]+)"', rep, body) + + +SPY = """""" +FONTS = '' + def inline_images(md_text, base): def rep(m): @@ -182,52 +283,90 @@ def essential(lang): return "\n".join(out) -def build(lang, src, dst): - ui = UI[lang] - text = inline_images(src.read_text(encoding="utf-8"), src.parent) - md = markdown.Markdown(extensions=["tables", "toc", "fenced_code", "sane_lists"], - extension_configs={"toc": {"toc_depth": "2-3"}}) - body = md.convert(text) - body = body.replace('href="MANUAL.md"', 'href="manual.html"').replace('href="MANUAL.es.md"', 'href="manual.es.html"') - body = re.sub(r"", '
    ', body).replace("
    ", "") - first_h2 = body.find("', "").replace("", "") - ess_link = f'
  • {ESSENTIAL[lang][0]}
  • ' - toc = toc.replace("