From 9754aec27dc335be12d7122ca5b4ca0a95669f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=BE=E6=B5=A6=20=E7=9F=A5=E4=B9=9F=20Matsuura=20Tomoy?= =?UTF-8?q?a?= Date: Tue, 21 Nov 2023 16:28:39 +0900 Subject: [PATCH] [obsidian] vault backup: 2023-11-21 16:28:39[ --- content/AIST Creative HCI Seminar原稿.md | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/content/AIST Creative HCI Seminar原稿.md b/content/AIST Creative HCI Seminar原稿.md index ed5e9076..faa02e26 100644 --- a/content/AIST Creative HCI Seminar原稿.md +++ b/content/AIST Creative HCI Seminar原稿.md @@ -72,3 +72,39 @@ Program as a Format - MPEG-Structured Audio(CSoundベースの音源配布フォ ## [[otopoiesis]]について + +### プロジェクトの構造 + +まだシンタックス(パーサー)が実装されてないので、Rust風の擬似ソースコード + +```rust +let FadeInOut = |time_in,time_out,origin|{ + Region({ + start: origin.start + dur : origin.dur + content: apply_fadeinout(start,dur,time_in,time_out,origin.content) + }) +} + +let project = |sample_rate|{ + let tracks = Track([ + FadeInOut( + 0.1, + 0.1, + region: { + start:0.0, + dur: 1.0, + content: || sinewave{ + Param("freq",440.0,20.0..20000.0) + Param("amp",1.0,0.0..1.0) + Param("phase",0.0,0.0..1.0) + } + } + ) + ]); + tracks.map(|| + + ) +} + +``` \ No newline at end of file