On Sun, Nov 2, 2014 at 2:44 AM, Viacheslav Lotsmanov <lotsmano...@gmail.com>
wrote:

> I need to create some trigger, one mono input and one MIDI output. Can
> I do this with Faust? Where I can read some info about MIDI in Faust?
>

At present, Faust itself doesn't know much about MIDI. It only provides
some more or less standard format for control meta data describing MIDI
controller assignments, but then you have to rely on the architecture to
actually make it happen. What is your target architecture?

MIDI controller input is well-covered by architectures like VST and LV2.
But for your application you'll need MIDI controller output from passive
Faust controls (h/vbargraph), and AFAIK no architecture supports that yet.
I've actually had this on my TODO list for faust-lv2 for quite some time,
but didn't bother implementing it yet, since at the time the available LV2
hosts (Ardour and Qtractor, basically) wouldn't know what to do with MIDI
output from an audio plugin anyway. At least Ardour should by now support
this, however, as does my own lv2plugin~ host for Pd. So I should probably
have another look and implement MIDI output in faust-lv2 some time.

What should work right now is to use the available Max/MSP and Pd
architectures to generate a Max or Pd external, into which you can pipe
your audio, read the resulting control output and process it it any desired
way (like converting to MIDI). This certainly works with Pd, haven't tried
it with the MAX/MSP architecture.

I've attached a simple Pd example which shows how this works. That example
was generated with faust2puredata from amp.dsp (included), but I modified
the amp.pd GUI patch so that the control output from the amp~ external gets
routed to amp.pd's outlet. This then gets processed in the main patch
amptest.pd, by showing the values in number boxes and converting them to
MIDI controller output.

HTH,
Albert

-- 
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggr...@gmail.com
WWW:    https://plus.google.com/+AlbertGraef

Attachment: amptest.tar.gz
Description: GNU Zip compressed data

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

Reply via email to