mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 04:44:33 +01:00
The JIANT palette's cards, panel, rows, buttons and dialogs drawn as soft uneven bodies (a superellipse table, each box its own shape) with one violet antialiased line; the cards' bodies reach past them (draw_loops). Footer steps round cells. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
106 lines
3.9 KiB
C
106 lines
3.9 KiB
C
/* SPDX-License-Identifier: GPL-3.0-only
|
|
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
|
|
/* FELUCCA: one compilation unit (the HAL is header-only). Each file uses what the files above it
|
|
* define, so the order matters. */
|
|
|
|
/* ---------------------------------------------------- build options --- */
|
|
/* build.py: FELUCCA_<NAME>=0 / 1 in the environment overrides these. Elsewhere: FELUCCA_FM4
|
|
* (core.h: the DIGITAL engine), FELUCCA_ICONS (icons.c, the parameter icons; on by default),
|
|
* FELUCCA_OTA_RAMONLY (ota.c). */
|
|
#ifndef FELUCCA_FLASH
|
|
#define FELUCCA_FLASH 1 /* flash driver + storage.c: settings, projects, user presets */
|
|
#endif
|
|
#ifndef FELUCCA_OTA
|
|
#define FELUCCA_OTA 1 /* M-UPGRADE update entry and the editor SysEx; needs FELUCCA_FLASH */
|
|
#endif
|
|
#ifndef FELUCCA_OTA_DRYRUN
|
|
#define FELUCCA_OTA_DRYRUN 0 /* 1 = stage, ask "success", then undo: no record, no reset */
|
|
#endif
|
|
#ifndef FELUCCA_CDC
|
|
#define FELUCCA_CDC 1 /* USB CDC-ACM serial console */
|
|
#endif
|
|
#ifndef FELUCCA_UAC
|
|
#define FELUCCA_UAC 1 /* USB audio input: the master output, 16-bit stereo 44.1 kHz (usb.c) */
|
|
#endif
|
|
#ifndef FELUCCA_UAC_TONE
|
|
#define FELUCCA_UAC_TONE 0 /* bench: the USB input sends test triangles instead of the music */
|
|
#endif
|
|
#ifndef FELUCCA_UART
|
|
#define FELUCCA_UART 1 /* TRS MIDI IN on UART1 / PH8 */
|
|
#endif
|
|
#ifndef FELUCCA_ID
|
|
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
|
|
#endif
|
|
#ifndef FELUCCA_VERSION
|
|
#define FELUCCA_VERSION "v0.6.59" /* JIANT's (based on Felucca 1.1.5.1): the splash, the menu, the console, the editor */
|
|
#endif
|
|
#if FELUCCA_OTA && !FELUCCA_FLASH
|
|
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
|
#endif
|
|
|
|
/* ------------------------------------------------------------- HAL --- */
|
|
#include <stdint.h>
|
|
#include "fm1_time.h"
|
|
#include "fm1_sys.h"
|
|
#include "fm1_irq.h"
|
|
#include "fm1_guard.h"
|
|
#include "fm1_input.h"
|
|
#include "fm1_timer.h"
|
|
#include "fm1_audio.h"
|
|
#include "fm1_adc.h"
|
|
#include "fm1_lcd_hw.h"
|
|
#include "felucca_tables.h" /* generated by build.py (tools/gen_tables.py) */
|
|
|
|
/* ----------------------------------------------------- base, display --- */
|
|
#include "libc.c"
|
|
#include "lcd.c"
|
|
#include "gfx.c"
|
|
|
|
/* ----------------------------------------------------------- sound --- */
|
|
#include "core.h"
|
|
#include "engines.c" /* dsp.c, the eng_*.c files, the factory patterns */
|
|
#include "params.c"
|
|
#include "mod.c" /* the modulation matrix, used by voice.c and fx.c */
|
|
#include "voice.c"
|
|
#include "slicer.c" /* the SLICER, one on a bus (JIANT 0.6.3), used by fx.c */
|
|
#include "fx.c"
|
|
|
|
/* ------------------------------------------------- MIDI, sequencer --- */
|
|
#include "usb.c"
|
|
#if FELUCCA_UART
|
|
#include "midi_uart.c"
|
|
#endif
|
|
#include "song_chain.c"
|
|
#include "seq.c"
|
|
#include "audio.c"
|
|
|
|
/* -------------------------------------------------------------- UI --- */
|
|
#include "panel.c"
|
|
#include "ui.c"
|
|
#include "menu_items.c" /* MENU's rows and settings (ui_menu.c, editor_menu.c) */
|
|
#include "icons.c" /* parameter icons (FELUCCA_ICONS), used by ui_draw.c */
|
|
#include "ui_graph.c"
|
|
#include "ui_draw.c"
|
|
#include "ui_menu.c"
|
|
#include "ui_input.c"
|
|
#include "ui_layer.c" /* the quick layers (FX GLO SCL EDIT REC held; SEQ TOOLS: ui_tools.c) */
|
|
|
|
/* --------------------------------------------- storage, update, editor --- */
|
|
#if FELUCCA_FLASH
|
|
#include "fm1_flash.h"
|
|
#include "storage_hw.c"
|
|
#include "storage.c"
|
|
#endif
|
|
#include "upreset.c" /* user presets (RAM mirror; flash with FELUCCA_FLASH) */
|
|
#include "project.c"
|
|
#if FELUCCA_OTA
|
|
#include "ota.c"
|
|
#include "ota_hw.c"
|
|
#include "editor.c" /* web editor SysEx (needs the OTA SysEx plumbing) */
|
|
#endif
|
|
#if FELUCCA_CDC
|
|
#include "console.c"
|
|
#endif
|
|
#include "master.c" /* the MASTER pot (#137: read before the audio starts) */
|
|
#include "main.c"
|