vult-dsp / vult

Vult is a transcompiler well suited to write high-performance DSP code
https://vult-dsp.github.io/vult
Other
490 stars 25 forks source link

How to include Vult source ? #46

Closed stephanepericat closed 2 years ago

stephanepericat commented 2 years ago

Hi,

When I install the Vult cli with Node.js, and try to compile the sine example with it, I get the following error:

vultc -ccode ./src/vult/sine.vult -o sine
Error: ./src/vult/sine.vult:11:6-15: Unknown function 'Util.edge'
   mem trig;
   if(Util.edge(reset > 0.5)) {
      ^^^^^^^^^

I'm not sure how to include the Vult source code; please advise.

stephanepericat commented 2 years ago

Never mind; the file was not in the same folder ... sorry!

modlfo commented 2 years ago

Alternatively, you can pass the flag -I <dir> to pass other directories.