It does indeed work with faustgen~ 1.41 !! I downloaded the 1.35 version from here: https://faust.grame.fr/downloads/index.html#macos-2 Same mistake again with versions; lesson learned. Sorry about that !!
O. ---------------------- Olivier Pasquet www.opasquet.fr Le lundi 27 avril 2020 à 13:38:17 UTC+2, Stéphane Letz <l...@grame.fr> a écrit : 1.35 is old. Can you try latest 1.41 version form here https://github.com/grame-cncm/faust/releases/tag/2.20.2 ? Stéphane > Le 27 avr. 2020 à 13:33, pierre duchemolle via Faudiostream-users > <faudiostream-users@lists.sourceforge.net> a écrit : > > Hello, > > Question for Max faustgen~ 1.35. > I am trying to retrieve the MSP's sample rate from maths.lib or platform.lib. > > —— When using > ma = library("maths.lib"); > > ma.SR gives me the following error: > Invalid Faust code or compile options : maths.lib : 107 : ERROR : syntax > error, unexpected IDENT, expecting LPAR or DEF > I have similar issues using ma.PI or ma.EPSILON. > > —— When using > import("maths.lib") > Same error. > > —— When using > import("platform.lib") > No error and SR is right. > (I noticed platform.lib was not in in the resources of faustgen~.mxo but it > works) > > —— When using > SR = min(192000.0, max(1.0, fconstant(int fSamplingFreq, <math.h>))); > it does not always work because of some problem with "type" as far as I > remember. > > Thanks !! > > O. > > ---------------------- > Olivier Pasquet > www.opasquet.fr > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users