```Cagire:Forth 语言实时编程```
Cagire: Live Coding in Forth

原始链接: https://cagire.raphaelforment.fr

Cagire 是一款免费、开源且基于 Forth 的实时编码音序器,允许用户通过在序列的每一步嵌入脚本来创作音乐。它不使用传统的音符数据,而是通过每一步执行 Forth 代码来触发合成、采样、效果器或复杂的音频处理。 该软件内置了名为“Doux”的音频引擎,包含振荡器、滤波器、混响等功能。对于进阶用户,其内置的“Arf”语言支持直接在环境中进行自定义数字信号处理(DSP)。Cagire 专为实时编码演出设计,是一个功能全面且独立的实验性声音设计与音乐创作平台。 Cagire 具有极高的易用性,提供了交互式的可运行文档和详尽的手册。它支持多种专业功能,包括 MIDI、OSC、Ableton Link 和实时录音。该项目由 Raphaël Maurice Forment 开发,采用 AGPL-3.0 协议授权,并鼓励用户通过捐赠来支持其持续开发与维护。无论你是经验丰富的程序员还是音乐人,Cagire 都为你提供了一个创意沙盒,让编写代码的过程成为一种极具表现力的实时音乐表演。

Hacker News 社区正热议“Cagire”,这是一个基于 Forth 构建的新型实时编码环境。爱好者们称赞该项目简洁明了,且 Forth 等拼接语言在音频合成和信号流等任务上具有天然的适配性。 讨论凸显了基于栈和数组的语言所具有的持久吸引力。用户们分享了个人项目和灵感来源,包括对 SAPF(由 SuperCollider 创建者 James McCartney 开发)、Uiua 以及 John Earnest 的 `ok.js` 的引用。一位评论者提到了该项目网站独特的美学风格,另一位则深入探讨了 Forth 的历史,并分享了用于 CAM-6 元胞自动机机器的个人代码存档。总的来说,这一讨论反映了人们对 Forth 的“复古”效率及其在现代实验性编程和现场表演工具中持续价值的高度赞赏。
相关文章

原文
Cagire - Forth-based live coding sequencer
Cagire

AGPL-3.0 · Raphaël Maurice Forment · 2026 · v0.1.9

Download

Source code and issue tracker on Gitea. You can also compile the software yourself from source!

About

Cagire is a step sequencer where each step contains a Forth script instead of typical note data. When the sequencer reaches a step, it runs the associated script. Scripts can produce sound, trigger samples, apply effects, or do nothing at all. You are free to define what your scripts will do. Cagire includes a built-in audio engine called Doux. No external software is needed to make sound. It comes with oscillators, sample players, filters, reverb, delay, distortion, and more.

Support

Cagire is free and open source, built by one person in my spare time. Donations keep the servers running, fund the hours I put into building it, and let me keep releasing it under a free license for everyone. If Cagire brings you joy, please consider chipping in.

Documentation

Cagire ships with built-in interactive documentation. Browse it right inside the app, where every example is runnable on the spot. The manual is a full book, both a tutorial and a reference. It covers the interface, the two Forth-like languages and the sound engine. A printable edition of the same manual also exists.

The language

Cagire scripts are written in Forth, a concatenative language you read one word at a time, from right to left. One step can do many things, here is an example:

saw snd
< c4 eb3 g3 > note
[ .5 .8 ] choose gain
( 8 crush ) sometimes
0.5 decay
.

A second language, Arf, lives between curly braces and allows you to write your own DSP when the basics are not enough:

{
    110 saw 800 lpf
    out
} synth .

Features (click to learn more!)

Gallery

Live Coding

Live coding is a technique where a programmer writes code in real-time in front of an audience. It is a way to experiment with code, to share openly, to express yourself through code. It can be technical, poetical, weird, preferably all at once. Live coding can be used to create music, visual art, and other forms of media. Live coding is an autotelic activity: doing it is its own reward. There are no errors, only fun. Learn more at TOPLAP or livecoding.fr.

BuboBubo · Audio engine: Doux · Gitea · ♥ Ko-fi · AGPL-3.0

联系我们 contact @ memedata.com