Issue loading + than 1 faust-generated external in 1 session (Win64) / 1st is loaded OK, 2nd lead to error 998

.quasar's icon

Hi,

Not sure if someone will be able to help me. I recently started learning Faust with the faustgen~ external in Pure Data. I would just love being able to play with it in Max but unfortunately the external is not available for Windows 64 bit yet :( .

So I started working on a few examples with the intention of compiling the faust code to a win64 max external using Faust's online compiler. However, I realised that I could only load 1 external per session : the first external is loaded without any problem but when I try to create an object with a 2nd different external compiled from faust, I get the follower error : Error 998 loading external nlks~". All externals are loaded fine the first time if none other faust-generated external has been loaded.

I don't know if I'm misssing something, which might very much be the cas as I'm not even using a full installation of faust to generate the externals. Any idea what could be wrong ? (Below you'll find all relevant info I could thing of. I'm including 2 text externals also, they're both fun I think)

- Windows 64bit
- Use of the faust web editor to compile the faust dsp code to a max external once the algo is ready (https://faustcloud.grame.fr/tools/editor/index.html).
- external 1 : Nonlinear Karplus Strong => modification of the Karplus Strong example in the libraries by adding a switching AP filter
- external 2 : Modor Additive : a recreation of the Modor synth's additive engine

modoradd.dsp
text/plain 0.52 KB

nlks~.mxe64
application/octet-stream 1.11 MB

ksnlap.dsp
text/plain 0.74 KB

modor.add~.mxe64
application/octet-stream 1.14 MB



.quasar's icon

I'm adding a small example patch for each of the externals in case someone wants to try them

Example patch for the Nonlinear Karplus Strong :

Max Patch
Copy patch and select New From Clipboard in Max.

Example patch for the Modor Additive engine adaptation :

Max Patch
Copy patch and select New From Clipboard in Max.

.quasar's icon

Well the "Win64 - Max external" option in the Faust code export section of the Web Editor is gone now :(

vichug's icon

sounds like a bug on faust’s compilator side, could be related to variable scope, i don’t know. but without an extensive knowledge of the inner workings of faust compiler, it’s near impossible to do anything. You should try to seek advice from the faust people directly !