Thank you for the response. Still kind of feel like a newbie in faust. Well faust2faustvst does not seem to work if you want to have a VST instrument…. How would I easily implement the SR symbol in the code? I started with the very simple Organ Example from the faust website.
// Simple Organ import("stdfaust.lib"); // Midi interface midigate = button ("gate"); // MIDI keyon-keyoff midifreq = hslider("freq[unit:Hz]", 440, 20, 20000, 1); // MIDI keyon key midigain = hslider("gain", 0.5, 0, 10, 0.01); // MIDI keyon velocity process = voice(midigate, midigain, midifreq) * hslider("volume", 0.5, 0, 1, 0.01); // Implementation phasor(f) = f/fconstant(int fSamplingFreq, <math.h>) : (+,1.0:fmod) ~ _ ; osc(f) = phasor(f) * 6.28318530718 : sin; timbre(freq) = osc(freq) + 0.5 * osc(2.0*freq) + 0.25 * osc(3.0*freq); envelop(gate, gain) = gate * gain : smooth(0.9995) with { smooth(c) = * (1-c) : + ~ * (c) ; } ; voice(gate, gain, freq) = envelop(gate, gain) * timbre(freq); > On 17 Dec 2016, at 10:56, Stéphane Letz <l...@grame.fr> wrote: > > Assuming you are using the SR symbol (defined in math.lib library) in your > code, and assuming the host actual sample rate is correctly given to the > allocated DSP at runtime, it should work. For VST are you using > faust2faustvast script? > > Stéphane > > >> Le 17 déc. 2016 à 10:08, Lervik Olav <olav.ler...@zhdk.ch> a écrit : >> >> Hey, >> >> my compiled VSTis and AUs from faust seem not to adapt to the sample rate. >> Meaning, they play the right pitch, when the sample rate is at 44.1 but not >> when it is at 48 kHz. Is this a bug or do I have to implement this in the >> code? >> >> thanks and cheers >> >> olav >> >> >> — >> — >> Zürcher Hochschule der Künste >> Zurich University of the Arts >> — >> Olav Lervik >> ICST - Institute for Computer Music and Sound Technology >> >> Toni-Areal, Pfingstweidstr. 96, Postfach, CH-8031 Zürich >> Mobil: +41 (0) 76 572 19 28 >> olav.ler...@zhdk.ch >> — >> www.zhdk.ch / www.zhdk.ch/ftm >> — >> — >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! >> http://sdm.link/slashdot_______________________________________________ >> Faudiostream-users mailing list >> Faudiostream-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/faudiostream-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users