OK so I did a bit of cleanup : 

- the /faust/gui/CUI.h file now contains pure C definitions needed to interact 
between C and UI and Meta external definition (C++ or possibly others..)

-  the /faust/gui/UIGlue.h file contains code to interact between C and C++ UI 
and Meta  (this code was before in CUI.h fi, but it is better to keep it 
separated)

- there is a new llvm-c-dsp.h file you could start with for the Python binding.

I'm not sure everything is in place, please test and report if changes have to 
be done.

Stéphane 


Le 27 mai 2013 à 11:22, Marc Joliet <mar...@gmx.de> a écrit :

> Am Mon, 27 May 2013 10:26:11 +0200
> schrieb Stéphane Letz <l...@grame.fr>:
> 
>> 
>> Le 27 mai 2013 à 00:19, Marc Joliet <mar...@gmx.de> a écrit :
>> 
>>> Am Sun, 26 May 2013 21:39:55 +0200
>>> schrieb Stéphane Letz <l...@grame.fr>:
>>> 
>>>> 
>>>>>> 
>>>>>> dsp code -> libfaust -> LLVM IR -> CFFI (??) -> Python object
>>>>> [...]
>>>>> 
>>>>> Hmmm... I'll have to research how best to do that, especially since I 
>>>>> have no
>>>>> clue about LLVM. I did find out today that LLVM has a C API (LLVM-C), 
>>>>> perhaps
>>>>> something can be done with that.
>>>>> 
>>>>> I look into that in a few weeks (after exams). Until then what I have now 
>>>>> works.
>>>>> 
>>>>> -- 
>>>> 
>>>> Well probably it was not clear enough : the point is to see if *embedding* 
>>>> the compiler would make sense: more precisely interfacing with the API 
>>>> defined in llvm-dsp.h 
>>>> 
>>>> Stéphane
>>> 
>>> Ah, I thought you meant I should use compile_faust_llvm(). OK, looking at
>>> llvm-dsp.h, it does look fairly straightforward. If I understand correctly 
>>> from
>>> glossing over it, I basically need:
>>> 
>>> llvm_dsp_factory* createDSPFactory1(...),
>>> void metadataDSPFactory(llvm_dsp_factory* factory, Meta* meta), and
>>> llvm_dsp* createDSPInstance(llvm_dsp_factory* factory)
>>> 
>>> More specifically: I need C wrappers of them. Then instead of compiling a C
>>> program and calling it's functions, I would call the methods of the 
>>> resulting
>>> llvm_dsp instance.
>>> 
>>> -- 
>>> Marc Joliet
>>> -
>> 
>> OK. Right now this llvm-dsp.h is C++, I'll create another pure C version of 
>> it.
> 
> Cool, thanks! I was expecting to do it myself, but I think you'd do it better
> and faster than I ;) .
> 
> -- 
> Marc Joliet
> --
> "People who think they know everything really annoy those of us who know we
> don't" - Bjarne Stroustrup
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service 
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! 
> http://p.sf.net/sfu/newrelic_d2d_may_______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to