Hi,
>From my earlier post, re: external usb midi keyboard, the responses were
helpful.  Thank you.

The https://faustide.grame.fr/ is really helpful for visual feedback and
checking to see if midi is working.

I was failing to get midi working from an external usb midi keyboard, for
ex. to play the keyboard and trigger frequencies by playing the keys, using
fedora on a laptop. Controller knobs, pitch wheel etc. seemed to work fine.

For jack, I finally got it working using the faust2jaqt architecutre  as >
faust2jaqt -midi -nvoices 6 myfile.dsp, ex. below.  Then running the app,
and starting qjackctl, with setup/advanced set to my usb soundcard, then
running a2jmidid -e in another terminal, and making the connections in
qjackctrl graph window finally helped me get sound triggered by the usb
midi keyboard coming out my usb soundcard.

One problem I had was using a usb hub to connect the usb sound card
(m-audio usb transit) didn't seem to work.  Something in that workflow
wanted the usb soundcard directly connected to the computer. (Getting the
transit working under fedora is a whole other project).

For alsa I struggled with this a good bit.  I used >faust2alqt -midi -poly
myfile.dsp. Then >./myfile.dsp -d "hw:1". Triggering frequency from the
keyboard doesn't work for me with this architecture.  I kept getting a
"Warning : MIDI outputs are not started in this mode !", and I grep'd that
to rt-midi.h in the sources under architecture/faust/midi., where the code
seems to indicate if rtmidi ports are not open, show that warning.

But if I run myfile and check connections using >aconnect -li, and
>aconnect -lo,  the midi keyboard is connected to rtmidi ports okay.

Using serendipity I thought I'd try the faust2alsa architecture to see if
the midi keyboard was getting thru, and oddly that works just fine to play
the keyboard and generate sound thru the usb soundcard.

...so next thing would be to look at faust2alqt vs. faust2alsa code, for
midi differences, but I'll save that for later.

Hope this is helpful in some way for others.

Regards,
Bob

ex. dsp from
https://faust.grame.fr/doc/manual/index.html#midi-and-polyphony-support

declare options "[midi:on][nvoices:12]";
import("stdfaust.lib");
freq = hslider("freq",200,50,1000,0.01);
gain = hslider("gain",0.5,0,1,0.01);
gate = button("gate");
envelope = en.adsr(0.01,0.01,0.8,0.1,gate)*gain;
process = os.sawtooth(freq)*envelope <: _,_;
effect = dm.zita_light;
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to