phausto
所属分类:硬件设计
开发工具:Smalltalk
文件大小:0KB
下载次数:0
上传日期:2023-12-06 10:12:14
上 传 者:
sh-1993
说明: Use the Faust(Functional Audio Stream)是一种用于Pharo内部声音合成的函数编程语言
(Use the Faust (Functional Audio Stream) is a functional programming language for sound synthesis inside Pharo)
文件列表:
.project (24, 2023-12-12)
.properties (21, 2023-12-12)
LICENSE (18092, 2023-12-12)
Phaust/ (0, 2023-12-12)
Phaust/DSP.class.st (6724, 2023-12-12)
Phaust/ExternalAddress.extension.st (782, 2023-12-12)
Phaust/FaustDynamicEngine.class.st (2198, 2023-12-12)
Phaust/PhSlider.class.st (4294, 2023-12-12)
Phaust/PhaustProcess.class.st (228, 2023-12-12)
Phaust/PhaustUnit.class.st (739, 2023-12-12)
Phaust/RendererType.class.st (991, 2023-12-12)
Phaust/Sawtooth.class.st (246, 2023-12-12)
Phaust/Square.class.st (240, 2023-12-12)
Phaust/package.st (28, 2023-12-12)
phaustLibrariesM1.dmg (3036415, 2023-12-12)
# phausto
Use the [Faust](https://faust.grame.fr/) (Functional Audio Stream) functional programming language for sound synthesis inside [Pharo](https://pharo.org/)
## Requirements
### Only working for Mac Silicon at the moment!
### Clone tis repo in Pharo with Iceberg and load the Phaust package
#### Open the fuastLibraries.dmg and copy of the librariesBundleM1 folder in your documents/Pharo/images/yourPhaustimage
## Code example
```Smalltalk
"This content is Faust code inside a string"
content := 'import("stdfaust.lib");
tempo = hslider("tempo", 10000, 300, 20000, 100);
freq = hslider("freq", 300, 200, 900, 100);
process = ba.pulsen(1, tempo) : pm.djembe(freq, 0.3, 0.4, 1) <: dm.freeverb_demo;'.
"Create the DSP"
x1 := DSP create: content.
"Initialise the DSP"
x1 init.
"Start the DSP"
x1 start.
"If you want to change the parmeters, create faders and open them"
s := x1 sliderFor: 'tempo'.
s openInWindow.
s2 := x1 sliderFor: 'freq'.
s2 openInWindow
s3 := x1 sliderFor: 'Freeverb/0x00/RoomSize'.
s3 openInWindow .
" and when you want to stop the sound"
x1 stop.
```
近期下载者:
相关文件:
收藏者: