Closed tomoyanonymous closed 4 years ago
Can you send me an example project that shows the problem ? Thanks.
ah, I found this thread. It seems to be discussing this problem. https://sourceforge.net/p/faudiostream/mailman/message/35158202/
I'll upload my repository soon, thanks.
Yes, I remember the issue also now. But as explained Kjetil Matheussen patch proposal was not the way to go. Time to find a more fondamental for now.
https://github.com/tomoyanonymous/ofxFaust
In a example, now only ofxFaustGui.h
is used. and it's an architecture file. mydsp.cpp
is the compiled file.
Compiler version is v2.3.14.
Could you test version 2.3.16 here : d33a28dce6dfd289aa2a2f5035c8e4c3e241e0fc ?
BTW, "I'm working on integration with ofxGUI which generates faust UI in app automatically and it's near to finish". Do you plan to make a contribution to the Faust architecture file system, to be added on Faust GIT? This would be very cool..
It worked!! Thanks...
Do you plan to make a contribution to the Faust architecture file system, to be added on Faust GIT? This would be very cool..
If you OK, I'll make a pull request soon!!
To say more, I want to make ofaudio-dsp.h
more useful because the way to use ofSoundBuffer
instead of float*
is now more general.
And also ofSoundObject
, a general sound effect framework for OF, seems easier to make an architecture file for faust.
https://github.com/roymacdonald/ofxSoundObjects
At first It's developed as a core feature, but haven't merged yet.
OK great !
Note that ofaudio-dsp.h file is currently used when doing faust2api -of yourFaustCode.dsp, so be sure that any change does not break this script.
And so waiting for the PR !
<3
What do you mean ?
its the shape of a heart, as in this is something that sounds exciting and I <3 it, looking forward to trying it out
Hi, I'm trying to make a smooth workflow of faust inside openframeworks. There's also
ofaudio-dsp.h
, and I'm working on integration with ofxGUI which generates faust UI in app automatically and it's near to finish ;).The main problem is a external math function such as
mydsp_faustpower2_f
. Usually, in OF, all headers are included or some class definitions are made atofApp.h
.ofApp.h
is included by both ofofApp.cpp
(which implements actual application) andofMain.h
(which havemain
function). So if we havemydsp_faustpower2_f
function inofApp.h
, the linker gets error as below.I tried to change
mydsp_faustpower2_f
into static function by hand and it got success.Can't they be changed to the static function or move inside mydsp?