Hi Alex,

Instead of the old source forge system, to report bugs, better use the Faust 
developer or user mailing lists, or even possibly GitHub issues here: 
https://github.com/grame-cncm/faust/issues

> Le 5 nov. 2019 à 08:36, Alex Mitchell <alcompo...@users.sourceforge.net> a 
> écrit :
> 
> I have been looking into LV2 http://lv2plug.in/ns/ext/time/
> 
> I understand that currently `faust2lv2` is unable to build a plugin that uses 
> lv2 time information.

Albert Graef wrote the faust2lv2 script and can better answer, but I think this 
is correct.

> 
> However I have only found examples such as: 
> ```
> import("stdfaust.lib");
> 
> // square signal (1/0), changing state at each received clock
> clocker = checkbox("MIDI clock[midi:clock]");    
> 
> // ON/OFF button controlled with MIDI start/stop messages
> play = checkbox("ON/OFF [midi:start] [midi:stop]");    
> 
> // detect front
> front(x) = (x-x') != 0.0;      
> 
> // count number of peaks during one second
> freq(x) = (x...@ma.sr) : + ~ _;   
> 
> process = os.osc(8*freq(front(clocker))) * play;
> ```
> At: https://faust.grame.fr/doc/manual/index.html (under MIDI Sync)
> 
> Is this the correct way to get host MIDI BPM? Am I missing something simple?
> 

This example code shows how Faust audio DSP can indeed be synchronized using 
MIDI clock based synchro (so start/stop/sync MIDI messages). To correctly work, 
it supposes that the MIDI receiving wrapping code handled MIDI events 
timestamps. AFAICS this is not the case right no si the comment see the comment 
at line 1207 here : 
https://github.com/grame-cncm/faust/blob/master-dev/architecture/lv2.cpp

  // This processes just a single MIDI message, so to process an entire series
  // of MIDI events you'll have to loop over the event data in the plugin's
  // MIDI callback. XXXTODO: Sample-accurate processing of MIDI events.

and also at line 1688.

Albert, how complex would it be to do that?
 
Stéphane
 





_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to