If the synthdef has a parameter called "moda", you should call something
like:
let (moda, _) = pF "moda" (Just 0)
in Tidal to set it to a float type, and, I believe, set the default value
to 0.
Jeremy Stewart
518.366.6870 <(518)%20366-6870>
jeremy.ste(a)gmail.com
blindelephants.co
On Fri, Nov 16, 2018 at 9:43 AM Filip Dragovic <fdragovic(a)gmail.com> wrote:
yeh, you have to define them in tidal as well, check out the params
file,
i think that's where the default ones are defined, then just use a let in
your tidal code if it's for on the fly (:
On Fri, Nov 16, 2018, 15:28 Konstantinos Vasilakos <
konstantinos.vasilakos(a)gmail.com wrote:
> Hey all,
>
> I am using some additional synthdefs and I was wondering if I can just
> control them using their parameters, I tried that but it won't work, so I
> am wondering what is th way to do that when using own synths. Looking below
> the error trace from Tidal post window says that Tidal is agnostic about
> scfm synth arguments.
>
> -> Variable not in scope: modratio :: [Char] -> ParamPattern
> :1424:52: error:
>
>
> =================td=========code=========
> d2 $ sound "scfm" # sustain "0.1" # modratio "2" # freq
"2000"
> =================sc========code==========
> SynthDef(\scfm, {
> |freq=200, atk=0.01, decay=0.3, sustain=0.4, rel=0.1
> carratio=1,modratio=1, modindex=1,
> amp=0.2, gate=1, outBus=0|
> var env = EnvGen.kr(Env.adsr(atk, decay, sustain, rel), gate,
> doneAction:2);
> var mod = SinOsc.ar(freq * modratio);
> var car = SinOsc.ar(freq * carratio + (1 + (mod *modindex)), 0) * amp
> * env;
> OffsetOut.ar(0, car ! 2);
> }).add;
>
>
> *Save our in-boxes! *http://emailcharter.org
> _______________________________________________
> TidalCycles mailing list -- tidal(a)we.lurk.org
> To unsubscribe send an email to tidal-leave(a)we.lurk.org
>
_______________________________________________
TidalCycles mailing list -- tidal(a)we.lurk.org
To unsubscribe send an email to tidal-leave(a)we.lurk.org