grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.58k stars 322 forks source link

soundfile primitive #264

Closed blanchemain closed 5 years ago

blanchemain commented 5 years ago

$: /usr/local/bin/faust2jack tp1.dsp tp1.dsp.cpp: In member function ‘virtual void mydsp::instanceResetUserInterface()’: tp1.dsp.cpp:14572:18: error: ‘defaultsound’ was not declared in this scope fSoundfile0 = defaultsound; Why ?

sletz commented 5 years ago
faust2jack -h 
faust2jack [-httpd] [-soundfile] [-nvoices <num>] [-effect auto|<effect.dsp>] [-midi] [-osc] [additional Faust options (-vec -vs 8...)] <file.dsp>
Use '-httpd' to activate HTTP control
Use '-soundfile' when compiling DSP using 'soundfile' primitive, to add needed resources
Use '-nvoices <num>' to produce a polyphonic self-contained DSP with <num> voices, ready to be used with MIDI or OSC
Use '-effect <effect.dsp>' to produce a polyphonic DSP connected to a global output effect, ready to be used with MIDI or OSC
Use '-effect auto' to produce a polyphonic DSP connected to a global output effect defined as 'effect' in <file.dsp>, ready to be used with MIDI or OSC
Use '-midi' to activate MIDI control
Use '-osc' to activate OSC control

So use faust2jack -soundfile tp1.dsp

blanchemain commented 5 years ago

I have $ /usr/local/bin/faust2jack -soundfile tp1.dsp Package sndfile was not found in the pkg-config search path. Perhaps you should add the directory containing `sndfile.pc' to the PKG_CONFIG_PATH environment variable No package 'sndfile' found

I do not have the file sndfile.pc in the faust directory.

sletz commented 5 years ago

You'll have to install libsndfile (http://www.mega-nerd.com/libsndfile/) on your machine.

blanchemain commented 5 years ago

It's ok. I am under debian linux and I did not have the libsndfile library. Now it works.

blanchemain commented 5 years ago

Thank you!