From 9d80efcf31910821d3ca02043300a362faa6b245 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: Wed, 22 Nov 2023 16:15:03 +0900 Subject: [PATCH] [obsidian] vault backup: 2023-11-22 16:15:03[ --- content/AIST Creative HCI Seminar原稿.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/content/AIST Creative HCI Seminar原稿.md b/content/AIST Creative HCI Seminar原稿.md index 1442f43a..dd050087 100644 --- a/content/AIST Creative HCI Seminar原稿.md +++ b/content/AIST Creative HCI Seminar原稿.md @@ -85,14 +85,21 @@ Program as a Format - MPEG-Structured Audio(CSoundベースの音源配布フォ まだシンタックス(パーサー)が実装されてないので、Rust風の擬似ソースコード ```rust +let sinewave =|freq,amp,phase|{ + ... +} +let apply_fadeinout = |start,dur,time_in,time_out,content|{ + ... +} let FadeInOut = |time_in,time_out,origin|{ + let time_in = Param("time_in",0.01,0.0..inf); + let time_out = Param("time_out",0.01,0.0..inf); 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( @@ -109,9 +116,7 @@ let project = |sample_rate|{ } ) ]); - tracks.map(|| - - ) + tracks.map(|t| t.render()).sum() } ``` \ No newline at end of file