Hi everybody,

I'm studying the FaustLive examples and trying to understand *how a MIDI
information is received by the VSTi plugin *to be possible create a MIDI
synth.
I'm still studying the "flute.dsp" because is simple and works inside my
DAW.

*The problem is:*
Inside the faust code I don't see any "MIDI input", or "MIDI note"
variable...
I just see the hslider that controls the frequency...but it disappears
"magically" when I ran this example as a VSTi inside a DAW and this plugin
recognized the MIDI input "magically" from a DAW.

*How can I receive a MIDI input inside a Faust code?*

Here below I put some code that declares* nvoices "16" to create a VSTi.*
After this, I put the same libraries that are used in "flute.dsp";
After this I will start the MIDI Synth....but in my mind, I have to receive
the MIDI message from "somewhere"...

declare name "MIDI2Sine";
declare description "VSTi MIDI2Sine";
declare author "Nyck";
declare copyright "Nyck";
declare version "1.0";
declare licence "STK-4.3";
declare description "A simple VSTi test";
*declare nvoices "16";*

import("music.lib");
import("instrument.lib");
import("effect.lib");

process = _;

I know that I'm wrong because "flute.dsp" code doesn't receive a MIDI
message inside your code, but I would like to understand how is possible it
work right.

In my mind, I was thinking something like:
freq = MIDI_INPUT * CONSTANT; // Convert a MIDI number (note) to a freq
process = osc(freq) * gain;

Could you help me?

Thanks,
Nyck
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to