Hi Yann!
Thank you very much for the advice - it works!
By the way, I try to compile the following code in online compiler - all is
good, but there is some crack and clicks.
Is it because of the online compiler, or should I think about some signal
shaping and smoothing?
import ("stdfaust.lib");
p = hslider("prd",4800,2000,16000,10);
f = hslider("freq",300,0,1000,1);
dje = pm.djembe(f,0,2,1,ba.pulsen(300,p));
del = de.delay(31970,73670);
process = dje <:_,del;
2017-07-06 0:24 GMT+03:00 Yann Orlarey <orla...@grame.fr>:
> Hi Sergey,
>
> Thanks for your kind words!
>
> One solution is to play the djembe using the ba.pulsen() function. For
> example:
>
> dje = pm.djembe (f,0,2,1, ba.pulsen(200, 4800));
>
>
> You can also combine pulses using | and & operators:
>
> dje = pm.djembe (f,0,2,1, ba.pulsen(100, 4800) | ba.pulsen(400, 4800*3) |
> ba.pulsen(800, 4800*7));
>
>
> etc.
>
> Cheers
>
> Yann
>
>
>
>
>
>
> -------------------------
>
> Yann Orlarey
> Directeur scientifique
> www.grame.fr
>
>
>
> 2017-07-05 19:03 GMT+02:00 Beach Dispatcher <bdd...@gmail.com>:
>
>> Hi Everybody!
>>
>> First of all - great thanks to Faust developers! - it is a piece of art
>> that you made=) I appreciate
>> your work very much! it is really greatest thing - Faust language.
>>
>> Im a very beginner newbuy, and my question will seem very foolish, but if
>> somebody
>> could help to explain me - I will be very glad=)
>>
>> I want to use simple sequencer to drive djembe module for example.
>>
>> here is the code:
>>
>> import("stdfaust.lib");
>>
>> f = hslider("freq",440,0,1000,1);
>> play = button ("play");
>>
>> dje = pm.djembe (f,0,2,1,play);
>>
>> process = dje;
>>
>> So, how is possible to change "play" parameter from 0 to 1 with the temp
>> regulator?
>> I tried to use:
>> tempo = hslider("tempo",0,0,4,0.01);
>> play = os.lf_pulsetrainpos(tempo,0.5);
>>
>> but to not work
>>
>>
>> Could you please explain how is better to make simple sequencer logic to
>> drive the triggers of instruments like djembe? Where the trigger
>> is the variable in function of instrument.
>>
>> Thanks in advance for any help to expand my understanding of this logic
>>
>> Sergey Vasilyev
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> 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