Files
quartz-research-note/content/sapf.md
松浦 知也 Matsuura Tomoya c5e6905d9e
All checks were successful
Build / build (push) Successful in 8m58s
[obsidian] vault backup: 2025-06-26 18:06:30
2025-06-26 18:06:30 +09:00

37 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
date: 2025-06-26 17:44
---
#programming-language
sapf:Sound as Pure Form
[GitHub - lfnoise/sapf: Sound As Pure Form - a Forth-like language for audio synthesis using lazy lists and APL-like auto-mapping.](https://github.com/lfnoise/sapf)
[[SuperCollider]]を作った[[James McCartney]]が新しく作っている言語。
[[Forth]]や[[APL]]から影響を受けた[[逆ポーランド記法]]が特徴的な言語。[[uiua]]とも近いかも。
```sclang
15 .0 sinosc 200 * 300 + .0 sinosc .1 * play
```
記法をシンプル人によるにしたけど内容としてはUGenのメタ操作にかなり向いており、SCに近いと思う。言語としては動的型付けで、配列に関数を自動展開する機能とかがSCのパターン操作とかと同じ感じでよくできてる存外VMの実装もシンプルそう。
---
オリジナルはmacOSオンリーだが、クロスプラットフォーム向けにフォークしてる人がいる
[sapf - pulusound](https://pulusound.fi/blog/sapf/)
[GitHub - ahihi/sapf: Sound As Pure Form, cross-platform edition](https://github.com/ahihi/sapf)
[first look at sapf (Sound As Pure Form) - YouTube](https://www.youtube.com/watch?v=jN5Ij3Cazh8)
---
この動画短くて簡潔でよかた
[sapf: New Music Language Inspired by Supercollider, APL, and Forth (Sound as Pure Form) - YouTube](https://www.youtube.com/watch?v=FY2WYXOdXoM)