Hi Bob,

I'm not sure what your development setup is but I found it very helpful to
use the Web IDE when developing https://faust.grame.fr/ide/ . This has a
dropdown menu that lets you choose the MIDI input that controls your .dsp.
I believe this only works in Chrome because of the WebMIDI implementation.

If you look at the tutorial
https://faust.grame.fr/doc/tutorials/#adding-an-envelope-generator it shows
the basic setup for a MIDI controlled synthesizer. The "gate", "freq", and
"gain" variables will be connected automatically to incoming MIDI "gate",
"midinote", and "velocity" respectively.

If you are outside of the IDE I believe you have to have MIDI enabled with

declare options "[midi:on]";

and if you need polyphony

declare options "[nvoices:12]";

at the top of your .dsp file. There are more options explained in
https://faust.grame.fr/doc/manual/#midi-and-polyphony-support .

How you connect different MIDI controllers outside of the Web IDE will
depend a lot on which platform you are compiling the DSP for.

I hope that helps,
Thadeus

http://www.creativecontrol.cc


On Wed, Sep 23, 2020 at 5:43 PM Bob Bobsled <thebobbobs...@gmail.com> wrote:

> How does one play a .dsp instrument using an external usb midi keyboard?
> I would like to play the midi keyboard keys and hear the frequency
> associated with the
> midi key being played.  Not a virtual keyboard, not a smartphone, but an
> external usb keyboard.
>
> I have tried various faust2scripts, but nothing seems to work.  I thought
> perhaps faust doesn't do it; since the gate button is ubiquitous, and there
> is next to nothing available for help using an external midi keyboard
> to trigger frequencies.  A simple .dsp example would suffice, if someone is
> willing to share.
>
>
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to