Hello again,

In an off-list reply (I guess because it contained the complete manual as pdf), 
Stéphane pointed me towards waveform (p. 38 in version 0.9.80 of the FAUST 
Quick Reference).

(the Reference on http://faust.grame.fr/Documentation/ points to version 0.9.65)


He further pointed out that

> Concerning the  original question, the thing is that embedding external C 
> function in dsp code requires a full C/C++ compilation chain, which is what 
> you have when you use faust2xx scripts 
> 
> FaustLive uses the libfaust+ LLVM backend which cannot do that for now.


In a test environment, the following seems to work:


--- snip ---


// create lookup table (shortened) with integrated integer cast
prime_delays(x) = (waveform {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 
131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 
223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 
311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 
409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 
503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 
613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 
719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 
827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 
941, 947, 953, 967, 971, 977, 983, 991, 997, 1009, 1013}, int(x))
  : rdtable;

--- snap ---



Thanks for the help :)

        Till


> On 01. May 2017, at 13:31, Till Bovermann <lf...@lfsaw.de> wrote:
> 
> Dear Stephane,
> 
> thanks for your answer.
> I tried to search for the "waveform" concept in my copy of the 
> faust-quick-reference.pdf. I could not find anything, neither on p.32 nor 
> anywhere within the document itself. Also, I could not find anything at 
> http://faust.grame.fr/libraries.html.
> 
> Although it would be great to not have to integrate external functions, I'm 
> also curious on how to achieve my original question.
> 
> 
> Thanks for any pointers
>       Till
> 
> 
>> On 01. May 2017, at 13:08, Stéphane Letz <l...@grame.fr> wrote:
>> 
>> It seems that this primes external function returns prime number as index I 
>> right  ?
>> 
>> https://github.com/supercollider/sc3-plugins/blob/master/source/DEINDUGens/faust_src/jprev.h
>> 
>> Then I guess  you could try  using the « waveform » concept  (p32 in 
>> faust-quick-reference.pdf documentation) ?
>> 
>> Stéphane 
>> 
>> 
>>> Le 1 mai 2017 à 11:55, Till Bovermann <lf...@lfsaw.de> a écrit :
>>> 
>>> Dear all,
>>> 
>>> I am trying to fix/update the implementation of JPVerb to follow the 
>>> current development style of faust:
>>> https://github.com/supercollider/sc3-plugins/blob/master/source/DEINDUGens/faust_src/JPverbRaw.dsp
>>> 
>>> one caveat I stumbled across is that it utilises an external function 
>>> defined in a header file parallel to the dsp file.
>>> although I think I know in principle how to integrate it into making it an 
>>> actual SC3 plugin, I do not know how to handle it from within 
>>>     faustLive
>>> 
>>> any hints much appreciated :)
>>> 
>>>     Till
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Faudiostream-users mailing list
>>> Faudiostream-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to