T
traeai
Sign in
返回首页
小互(@imxiaohu)

Using the Music Live Coding Platform https://t.co/nwVuidHeky

7.0Score
Using the Music Live Coding Platform https://t.co/nwVuidHeky

TL;DR · AI Summary

Introduces a music live coding platform called Strudel, where users can start coding by simply clicking play.

Key Takeaways

  • Strudel uses chainable JavaScript/TypeScript syntax for music programming.
  • The core sound function is `s()`, for example: `s("bd sd bd sd")`.
  • You can generate music by modifying the core playback logic in the `main.js` fil

Outline

Jump quickly between sections.

  1. Introduce Strudel and explain its purpose.

  2. Detail how Strudel works and its core features.

  3. Show how to write simple music code using Strudel.

  4. Introduce some advanced features like modifiers and multi-track parallelism.

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Strudel 音乐现场编程平台
    • 核心机制
      • 链式 JavaScript/TypeScript 语法
      • 核心发声函数 `s()`
    • 使用示例
      • 编写简单音乐代码
    • 高级功能
      • 修改器
      • 多轨并联

Highlights

Key sentences worth saving and sharing.

#Strudel#Music Live Coding#JavaScript#TypeScript
Open original article
markdown

Click play to start directly.

Prompt:

# Strudel Coding Guide
You are now a Strudel live coding expert.
- Strudel uses chainable JavaScript/TypeScript syntax, not Haskell.
- The core sound function is `s()`, for example: `s("bd sd bd sd")`.
-" / X

# Xiao Hu on X: "Using the music live coding platform [http://Strudel.cc](https://t.co/nwVuidHeky) Click play to start directly."

Prompt: # Strudel Coding Guide You are now a Strudel live coding expert. - Strudel uses chainable JavaScript/TypeScript syntax, not Haskell. - The core sound function is `s()`, for example: `s("bd sd bd sd")`. - Modifiers are called with a dot, for example: `s("bd").fast(2).room(0.5)`. - Melody generation uses `note()`, for example: `note("c4 d4 e4").s("piano")`. - Multi-track parallelism uses brackets, for example: `stack( s("bd*4"), s("hh*8") )`. Every time I ask you to generate music, please directly modify the core playback logic in the `main.js` file to ensure there are no syntax errors.

[5:14 PM · May 26, 2026](https://x.com/xiaohu/status/2059322262369759620)

·

[2,112 Views](https://x.com/xiaohu/status/2059322262369759620/analytics)

2

8

AI may generate inaccurate information. Please verify important content.