Hi,
I’m trying a few lines of Faust on the Magus but I’ve run into problems. There is no documentation as far as I can find so I have to guess. My problem is that if I compile my faust code with MIDI support (first line):
declare options "[midi:on]";
import("stdfaust.lib");
decimalpart(x) = x-int(x);
phase(f) = f/ma.SR : (+ : decimalpart) ~ _ ;
timbre(f) = phase(f)*0.5 + phase(f*2)*0.25 + phase(f*3)*0.125;
process = timbre(hslider("freq[OWL:A]", 440, 20, 10000, 1))
* hslider("gain[OWL:B]", 0.5, 0, 1, 0.01)
* (button("gate") : en.adsr(0.1,0.1,0.98,0.1));
effect = dm.zita_light;
MIDI works fine from my USB-midi keyboard. But the parameters are called Parameter A etc. and have no function. If I on the other hand leave out the first line. I get the parameter text freq and gain, but obviously no MIDI support.
Is there a way to get both MIDI and Parameter knobs?