[obsidian] vault backup: 2025-09-01 12:17:19[
Some checks failed
Build / build (push) Failing after 10m28s
Some checks failed
Build / build (push) Failing after 10m28s
This commit is contained in:
@@ -183,14 +183,15 @@ fn track_regions(regions:[{start:float,dur:float,generator:()->float}]){
|
||||
## トラックのランタイム構造
|
||||
|
||||
```rust
|
||||
let content = `{ phasor(Param!("freq",20,20000)) }
|
||||
|
||||
fn Track(content:()->float)->`()->float{
|
||||
let thunk = bind_to_runtime(content)//ここでprobeも行うことで、波形とメーター表示をする
|
||||
thunk
|
||||
|
||||
fn Track(name:string, content:`float)->`float{
|
||||
`{ $content |> probe_to_track!(name) }
|
||||
}
|
||||
|
||||
fn master(tracks:[`()->float])->`()->float{
|
||||
`{ || map(tracks,|t| $t() ) |> sum}
|
||||
fn master(tracks:[`float])->`float{
|
||||
`{ map(tracks,|t| $t ) |> sum }
|
||||
}
|
||||
let dsp = Track!($master([t1,t2,t3,...]))
|
||||
|
||||
|
Reference in New Issue
Block a user