百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

glicol-cli

> 编程语言
开源

glicol cli:跨平台音乐在终端的活编码

193 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

glicol cli:跨平台音乐在终端的活编码

glicol-cli

https://user-images.githubusercontent.com/35621141/226138600-199aed46-4f16-4ae2-9951-716181782f59.mp4

What's this?

It's a command line interface that you can use for music live coding with Glicol.

It watches a file changes and then update the music in real-time.

How to use it?

Step 1

You need to have cargo installed (see here).

Step 2

In your Terminal:

bash
cargo install --git https://github.com/glicol/glicol-cli.git

Step 3

Create a new file called test.glicol, then run this command in your Terminal:

bash
glicol-cli test.glicol

For more OPTIONS, call --help in your terminal:

~ glicol-cli --help

Glicol cli tool. This tool will watch the changes in a .glicol file

Usage: glicol-cli [OPTIONS] 

Arguments:
    path to the .glicol file

Options:
  -b, --bpm         Set beats per minute (BPM) [default: 120]
  -d, --device   The audio device to use [default: default]
  -H, --headless         Disable the TUI
  -h, --help             Print help
  -V, --version          Print version

Step 4

Start live coding. Edit test.glicol with your favourite editor:

// test.glicol
~t1: speed 4.0 >> seq 60 >> bd 0.2 >> mul 0.6

~t2: seq 33_33_ _33 33__33 _33
>> sawsynth 0.01 0.1
>> mul 0.5 >> lpf 1000.0 1.0

out: mix ~t.. >> plate 0.1

Load your own samples

Run the line in your terminal first:

export GLICOL_CLI_SAMPLES_PATH=/path/to/your/samples

For example:

export GLICOL_CLI_SAMPLES_PATH=~/Downloads/samples

Development

If you are developing the glicol-cli source code itself, you can setup a convenient self-recompiling debug binary alias:

  • Install Just
bash
cargo install just
  • Put the alias into your shell init (~/.bashrc):
# Point this to the Justfile found in your git clone:
alias glicol-cli='just -f ~/git/vendor/glicol/glicol-cli/Justfile run'

This special glicol-cli alias can be run from any directory, and the program will automatically recompile itself before running the program. You can still provide glicol-cli command line arguments as normal.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言