mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 20:34:27 +01:00
- voice.c voice_cap: VOICES_2CORE 12 while the second core takes parts (fx.c mc_two: CORES 2, not REC at
power-on, not given up); one core 8, LOAD ECO 6; a track still NVOICE 8 (no RAM). After Skiff by illuminus5.
cpu_vg: mix/v12 (both cores 3924 instr/sample), mix/v12.c0 (core 0 1949), mix/v12.one (one core, 8 voices 3241);
regress.c chk_budget_2core; the dual-core equivalence test at one budget (mc_host_v12).
- Sound types (PT_BASS..PT_FX) on all factory presets in preset_t.mono bits 1..4 (no format change); PRESETS LIST
ALL / FAV / BASS LEAD PAD KEYS PLUCK BELL VOX DRUM FX across engines, saved in favorites.factory[15][18];
gen.c keeps PT_BASS sounds off the other roles (was a name match). After Skiff by illuminus5.
- MIDI LEARN ported from Felucca 1.5 (midi_learn.c): 10 CCs, 3 bytes each in DIGITAL's favourites row, reserved
CCs and the standard map refused, any channel, USB and TRS; MENU > MIDI tab (MIDI OUT, LEARN, LEARN CLEAR);
state in the pool.
- fm6_vbank.c: 0xE7000 holding foreign data (Skiff's pattern bank) reads as no bank and is never erased at
power-on; only a bank the user sends replaces it. fm6bank_test foreign_test.
- Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) in JIANT's files ("Portions" in mostly-Felucca ones),
README / LICENSING.md / MENU > ABOUT credits (Felucca, Skiff).
- Docs: MANUAL.md / MANUAL.es.md, README v0.9.12 draft, EDITOR_PROTOCOL.md (tabs), cheat sheets, nav map.
Flash 576192 -> 577712 B (+1520), .data+.bss unchanged, pool +8 B (spare 10528 B).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
69 lines
2.6 KiB
Python
69 lines
2.6 KiB
Python
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
# Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant)
|
|
"""(JIANT 0.6.46) The packages the live site holds now, for make_site.py's PREV_DIR (the earlier versions the
|
|
installer keeps offering). The site lists them in firmware/versions.json; a site from before that has one package,
|
|
named in the installer's metadata. Nothing found is no error: the new site then has the current version only.
|
|
|
|
web/fetch_prev.py SITE_URL OUT_DIR"""
|
|
import json
|
|
import re
|
|
import sys
|
|
import urllib.request
|
|
from pathlib import Path
|
|
|
|
SAFE = re.compile(r"felucca-[A-Za-z0-9.-]+\.fwsc")
|
|
|
|
|
|
def get(url):
|
|
with urllib.request.urlopen(url, timeout=60) as r:
|
|
return r.read()
|
|
|
|
|
|
def withdrawn():
|
|
"""(JIANT 0.6.61) web/WITHDRAWN: versions taken back (one a line, e.g. 0.6.59): the installer no longer offers them"""
|
|
p = Path(__file__).resolve().parent / "WITHDRAWN"
|
|
try:
|
|
return [l.split("#")[0].strip().lstrip("v") for l in p.read_text(encoding="utf-8").splitlines()
|
|
if l.split("#")[0].strip()]
|
|
except OSError:
|
|
return []
|
|
|
|
|
|
def main(site, out):
|
|
site, out = site.rstrip("/"), Path(out)
|
|
out.mkdir(parents=True, exist_ok=True)
|
|
try:
|
|
listed = json.loads(get(site + "/firmware/versions.json"))
|
|
except Exception:
|
|
listed = []
|
|
try: # an older site: the installer's one package
|
|
html = get(site + "/webapp/installer/").decode("utf-8", "replace")
|
|
m = re.search(r'"version": "([^"]+)", "product": "[^"]+", "pkg": "\.\./\.\./firmware/(felucca-[^"]+)"', html)
|
|
if m:
|
|
listed = [{"version": m.group(1), "file": m.group(2)}]
|
|
except Exception as e:
|
|
print(f"fetch_prev: nothing from {site}: {e}")
|
|
kept = []
|
|
gone = withdrawn()
|
|
for e in listed[:12] if isinstance(listed, list) else []:
|
|
f = str(e.get("file", ""))
|
|
if not SAFE.fullmatch(f):
|
|
continue
|
|
if any(str(e.get("version", "")).lstrip("v").startswith(w) for w in gone):
|
|
print(f"fetch_prev: {e.get('version')} withdrawn (web/WITHDRAWN): not offered")
|
|
continue
|
|
try:
|
|
(out / f).write_bytes(get(f"{site}/firmware/{f}"))
|
|
kept.append({"version": str(e.get("version", "")), "file": f})
|
|
except Exception as x:
|
|
print(f"fetch_prev: {f}: {x}")
|
|
(out / "versions.json").write_text(json.dumps(kept) + "\n", encoding="utf-8")
|
|
print(f"fetch_prev: {len(kept)} earlier package(s): {' '.join(e['version'] for e in kept)}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if len(sys.argv) != 3:
|
|
sys.exit(__doc__)
|
|
main(*sys.argv[1:3])
|