Adventures in ScriptNode - Faust (part 2)
-
Okay so I got jpverb up and running from Christophs code - so I thought I'd start out with something with few params so I decided to give ef.transpose a go...
heres my code:
// Faust Source File: FaustPitch // Created with HISE on 2022-12-02 import("stdfaust.lib"); // w : window length in samples w = hslider("Window", 512, 256, 8192, 1); // x: crossfade duration (samples) x = hslider("crossfade", 512, 256, 2048, 1); //s: shift (semitones) s = hslider("Pitch", 0, -12, 12, 1); process = ef.transpose(w, x, s);
and when I try to compile it tells me:
undefined symbol : transpose
hmm...its defined just like this in the library: https://faustlibraries.grame.fr/libs/misceffects/
is transpose not in the stdfast.lib ?
do I not understand how this is supposed to work? -
@Lindon ..and its because transpose is a mono processor - or at least I can get it to compile and work using a mono signal...
-
Tripping over the channel amount is usually the second thing that everybody does after not getting Faust to compile, maybe I need to make another sticky...
-
@Christoph-Hart -= yeah and its not the most helpful of error messages...
-
@Lindon this is out of my hands but usually faust complains with a better diagnosis involving the word „channels“
-
@Christoph-Hart when i try to compile it, i get an error message regarding channel mismatch, right as i expected...
with
process = _,_:ef.transpose(w, x, s),ef.transpose(w, x, s):_,_;
it should work in stereo. (or with
sp.stereoize()
) -
-
@Lindon both versions do work in the meantime, when i remember correctly, that wasn't the case in early versions of faust. i just defined input and output channels.