[obsidian] vault backup: 2025-11-03 13:43:18[
All checks were successful
Build / build (push) Successful in 8m16s

This commit is contained in:
2025-11-03 13:43:18 -05:00
parent fe5a17ce45
commit 1af7eaf64c
5 changed files with 35 additions and 3 deletions

View File

@@ -96,6 +96,20 @@ mimiumでは高階関数などを使うことによって任意の数のフィ
信号処理インスタンスを、新たに確保したメモリと共にオーディオバッファ処理の間に入れ替える。
### サンプルコード
```diff
fn phasor(freq){
(self+(1/freq))%1.0
}
fn osc(freq){
- phasor(freq)* 2 * PI |> sin
+ phasor(freq+(phasor(freq/10))) * 2 * PI |> sin
}
```
## 問題点
差分処理を実行している間に内部状態が更新されてはいけない。なので、新しいソースコードのパースや内部状態構造導出、VMコード生成、木の比較までは非同期で行えるが、コピー中はオーディオ処理全てを一度中断しなくてはならない。