Hi Olivier,

I'm cc'ing the mailing list since you also posted a related question there.

On Fri, Oct 11, 2013 at 8:14 PM, Olivier Baudry <
[email protected]> wrote:

> I send you a report, it seems there is a bug in pd architecture file. I
> modify a script of matix with 12 inputs, 12 outputs In zip folder you can
> see more of 12 inputs. with incoherent number input 1to 9 after 0 to 8 ,..
>

First, if all you want are 12 inputs, then you've done that wrong. You
program creates 12 separate hgroups, each with 12 slider controls,
resulting in 12x12 sliders. If what you really want are 12 input sliders
mutually connected to 12 output sliders, then you need to write the program
in a different way.

Second, the order of the sliders has nothing to do with the Pd
architecture. The GUI patch is generated with faust2pd (
http://puredocs.bitbucket.org/faust2pd.html) from an XML description of
your dsp which is created by the Faust compiler. By default, the Faust
compiler orders the sliders lexicographically by their labels, so "Input
10" and "Input 11" end up between "Input 1" and "Input 2". That's just how
the lexicographic order works, and faust2pd takes whatever order of the GUI
elements the Faust compiler declares in the XML file.

To get the proper order of the GUI elements, you need to change, e.g.,
"Input %in" to "Input %2in", so that the numbers are padded with leading
blanks. If you want to keep the labels as they are, you can also specify
the order explicitly with a '[#]' prefix, such as: "[%2in] Input %in". The
same applies to the %out placeholders in the hgroup labels, of course.
Please check the "User Interface Elements" section in the Faust Reference
for details.

HTH,
Albert

declare name "matrix1212";
> declare version "1.0";
> declare author "Grame";
> declare license "BSD";
> declare copyright "(c) Olivier Baudry 2013 for Accordeon";
>
> //-----------------------------------------------
> // Audio Matrix : N inputs x M outputs
> //-----------------------------------------------
> import("music.lib");
> Fader(in) = db2linear(vslider("Input %in", -10, -96, 4, 0.1));
> Mixer(N,out) = hgroup("Output %out", par(in, N, *(Fader(in)) ) :> _ );
> Matrix(N,M) = tgroup ("Matrix %N x %M", par(in, N, _) <: par(out, M,
> Mixer(N, out)));
> process = Matrix(12, 12);
>


-- 
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  [email protected]
WWW:    https://plus.google.com/111193356966611167754
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to