gogins / csound-extended

Extensions for Csound including algorithmic composition, Android app, and WebAssembly.
GNU Lesser General Public License v2.1
40 stars 1 forks source link

New Silencio patches based on Faust examples #177

Closed gogins closed 3 years ago

gogins commented 3 years ago

I have finally got Csound's Faust opcodes running on my system. I have explored some of the Faust examples in their Web IDE, and I see that a few of the patches are superior to similar Csound patches.

gogins commented 3 years ago

Faust examples to evaluate:

gogins commented 3 years ago

The faustcompile opcode will usually required options similar to "--import-dir \"/home/mkg/faust/libraries\" -lv 1", 1. Note that the -vec option did not work for this example.

All performance control will normally be implemented using UI controls, which are abstract unless compiled for certain architectures. Here's a complete orchestra:

gi_faust_compiled faustcompile {{
declare name "GermanChurchBell";
declare description "German church bell physical model.";
declare license "MIT";
declare copyright "(c)Romain Michon, CCRMA (Stanford University), GRAME";

import("stdfaust.lib");

process = pm.germanBell_ui <: _,_;

}}, "--import-dir \"/home/mkg/faust/libraries\" -lv 1", 1

print gi_faust_compiled

instr 1
i_faust_dsp faustdsp gi_faust_compiled
faustctl i_faust_dsp, "strikePosition", 2
faustctl i_faust_dsp, "strikeCutOff", 65000
faustctl i_faust_dsp, "strikeSharpness", .5
faustctl i_faust_dsp, "gain", .5
faustctl i_faust_dsp, "gate", k(1)

a_left, a_right faustplay i_faust_dsp
outs a_left, a_right
endin
gogins commented 3 years ago

Questions:

gogins commented 3 years ago

I an closing this issue and opening a new one for a general maintenance of the patches.