Since the lf_pulsetrainpos() method should also worked, I tried to make a
failing test case, but instead it just worked:

import("stdfaust.lib");
f = hslider("freq",440,0,1000,1);
// play = button ("play");
tempo = hslider("tempo",0,0,4,0.01);
play = os.lf_pulsetrainpos(tempo,0.5);
dje = pm.djembe (f,0,2,1,play);
process = dje;

Can you give me a failing example that looks like it should work?

- Julius

On Thu, Jul 6, 2017 at 10:57 AM, Stéphane Letz <l...@grame.fr> wrote:

> Probably due to too slow  (or missing some values...) Web output display
> refreshing code.
>
> Stéphane
>
>
> > Le 6 juil. 2017 à 19:08, Beach Dispatcher <bdd...@gmail.com> a écrit :
> >
> > One more question, here is the simple code to check the pulsen style
> mechanism in work
> >
> > import ("stdfaust.lib");
> >
> > n = hslider("period",3000,0,10000,1):int;
> > incr = +(1)~_;
> > process = (incr%n),n/2 : > :vbargraph ("check",0,5);
> >
> >
> > if to run it on online compiler to web/audio- the 0/1 clock is unstable,
> is it because of the remote execution on server?
> >
> >
> > 2017-07-06 12:48 GMT+03:00 Beach Dispatcher <bdd...@gmail.com>:
> > 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
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>
>


-- 

Julius O. Smith III <j...@ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/ <http://ccrma.stanford.edu/>
------------------------------------------------------------------------------
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