quartz-research-note/content/MPEG4 Structured Audio.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

---
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 }
```