mirror of
https://github.com/isod89/clipper-fm1.git
synced 2026-12-05 12:24:32 +01:00
- Identity: CLIPPER 0.1 on the boot screen (a three-masted clipper in the track colours, the "clipper" wordmark), ABOUT, the USB rescue screen, the visualiser; the editor (Clipper Editor, its logo and messages), the installer page and the site; INSTALL-CLIPPER.bat / build-clipper.ps1 / OPEN-EDITOR.bat on port 8767 (SLOOP: 8766), the voices as an argument (8, 12, 16), the SDK files taken from the SLOOP folder the first time. - Docs: README.md and DEMARRAGE-RAPIDE-FR.md for Clipper (install, play, the CPU test); SLOOP's manuals in docs/sloop; SLOOP's prebuilt site and logos removed. - HYBRID: F1's output into F2 (series) bounded, the parallel balance at a quarter scale, the ring's inputs bounded: every product in 32 bits at any setting (checked under UBSan over every routing and filter pair at extreme values); the mixer keeps one more bit of headroom in 12 / 16-voice builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RDUenQzjQ4Kk2jQVG85bwq
43 lines
1.8 KiB
Python
43 lines
1.8 KiB
Python
#!/usr/bin/env python3
|
|
"""Generate assets on Windows, then compile with the JieLi toolchain in WSL.
|
|
|
|
No system packages are installed. --toolchain is an existing Linux path;
|
|
--sdk is a Windows directory containing cpu/wl82/tools from the pinned SDK.
|
|
"""
|
|
import argparse
|
|
import os
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
def main():
|
|
ap = argparse.ArgumentParser(description=__doc__)
|
|
ap.add_argument('--distro', required=True)
|
|
ap.add_argument('--toolchain', required=True)
|
|
ap.add_argument('--sdk', type=Path, required=True)
|
|
ap.add_argument('--skip-generate', action='store_true')
|
|
ap.add_argument('--slice', choices=['0', '1'], help='FELUCCA_SLICE for the compile (the SLICE engine); '
|
|
'the BREAK sample follows FELUCCA_SLICE in this process environment (tools/gen_samples.py)')
|
|
ap.add_argument('--nvoice', choices=['8', '12', '16'], help='NVOICE for the compile (Clipper: the voices; default 8)')
|
|
args = ap.parse_args()
|
|
os.chdir(ROOT)
|
|
import build
|
|
if not args.skip_generate:
|
|
build.generate()
|
|
wsl = ['wsl', '-d', args.distro, '--exec']
|
|
def linux_path(p):
|
|
return subprocess.check_output(wsl + ['wslpath', '-a', p.resolve().as_posix()], text=True).strip()
|
|
src, sdk = linux_path(ROOT), linux_path(args.sdk)
|
|
code = 'import sys;sys.path.insert(0,"tools");import build;build.generate=lambda:None;sys.exit(build.main())'
|
|
extra = ['FELUCCA_SLICE=' + args.slice] if args.slice else []
|
|
if args.nvoice:
|
|
extra.append('NVOICE=' + args.nvoice)
|
|
subprocess.run(['wsl', '-d', args.distro, '--cd', src, '--exec', 'env',
|
|
'JIELI_TOOLCHAIN=' + args.toolchain, 'AC79_SDK=' + sdk, *extra,
|
|
'python3', '-c', code], check=True)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|