quartz-research-note/content/MPEG4 Structured Audio.md
松浦 知也 Matsuura Tomoya 20b2ebbe71
All checks were successful
Build / build (push) Successful in 5m6s
[obsidian] vault backup: 2025-01-29 14:59:21[
2025-01-29 14:59:21 +09:00

30 lines
1.1 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-01-29 14:41
---
#computermusic
[The MPEG-4 Structured Audio Book](https://john-lazzaro.github.io/sa/book/index.html)
[[CSound]]を元にしたStructured Audio Orchestra Language
MIDIのように音色をシンセサイザーのアルゴリズムをインターネット越しに送るようなことを想定
Score LanguageであるSASLとOrchestra LanguageであるSAOLの2言語で構成
[Saol: The MPEG-4 Structured Audio Orchestra Language](https://quod.lib.umich.edu/cgi/p/pod/dod-idx/saol-the-mpeg-4-structured-audio-orchestra-language.pdf?c=icmc;idno=bbp2372.1998.488;format=pdf)
[SAOL: The MPEG-4 Structured Audio Orchestra Language on JSTOR](https://www.jstor.org/stable/3680734)
シンタックスはCSoundよりもC言語よりになっている
```
instr beep(pitch,amp) { // make a beep
table wave(harm,2048,1); // sinusoidal wave function
asig sound; // asig denotes audio signal
ksig env; // ksig denotes control signal
env = kline(0,0.1,1,dur-0.1,0); // make envelope
sound = oscil(wave, pitch) * amp * env; // create sound by enveloping an oscillator
output(sound); // play that sound }
```