Skip to content

Commit

Permalink
Updated the index (r0 rather than r000, r1 rather than r001, etc.) an…
Browse files Browse the repository at this point in the history
…d updated the patches to multichannel in Max
  • Loading branch information
alainbonardi committed Aug 16, 2024
1 parent 20161a0 commit ff60245
Show file tree
Hide file tree
Showing 16 changed files with 975 additions and 1,533 deletions.
18 changes: 9 additions & 9 deletions faustCodes/fildesoi12.lib
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import("submodules/faustCodes/library/mm.lib");
//--------------------------------------------------------------------------------------//
//FEEDBACK REINJECTION MATRIX N x N
//--------------------------------------------------------------------------------------//
fd_toggle(c, in) = checkbox("h:Lines/h:Reinjection_Matrix/v:Del%2c-->/r%3in");
fd_toggle(c, in) = checkbox("h:Lines/h:Reinjection_Matrix/v:Del%c-->/r%in");
fd_Mixer(N,out) = par(in, N, *(fd_toggle(in, in+out*N)) ) :> _ ;
fdMatrix(N) = par(in, N, _) <: par(out, N, fd_Mixer(N, out));

//--------------------------------------------------------------------------------------//
//SPATIALIZATION MATRIX N x M
//--------------------------------------------------------------------------------------//
sp_toggle(c, in) = checkbox("h:Lines/h:SpatializationMatrix/v:Sig%2c-->/sp%3in") : spatSmoothLine;
sp_toggle(c, in) = checkbox("h:Lines/h:SpatializationMatrix/v:Sig%c-->/sp%in") : spatSmoothLine;
sp_Mixer(N,out) = par(in, N, *(sp_toggle(in, in+out*N)) ) :> _ ;
spMatrix(N,M) = par(in, N, _) <: par(out, M, sp_Mixer(N, out));

Expand All @@ -48,22 +48,22 @@ smoothDuration = hslider("h:Global_Parameters/smoothDuration", 20, 10, 5000, 1)/

//Delay line parameters//

d(ind) = int(hslider("h:Lines/v:Del_Durations/d%2ind", (100*(ind+1)), 0, 21000, 1)*millisec*hslider("h:Global_Parameters/dStretch [7]", 1, 0.01, 10, 0.01));
fdbk(ind) = hslider("h:Lines/v:Del_Feedbacks/fd%2ind", 0, 0, 0.99, 0.01):smoothLine;
d(ind) = int(hslider("h:Lines/v:Del_Durations/d%ind", (100*(ind+1)), 0, 21000, 1)*millisec*hslider("h:Global_Parameters/dStretch [7]", 1, 0.01, 10, 0.01));
fdbk(ind) = hslider("h:Lines/v:Del_Feedbacks/fd%ind", 0, 0, 0.99, 0.01):smoothLine;

//Dispatching between harmonizer (1) and simple delay (0)//
xvd(ind) = hslider("h:Lines/v:EffeX_vs_Del/xvd%2ind", 1, 0, 1, 0.01);
xvd(ind) = hslider("h:Lines/v:EffeX_vs_Del/xvd%ind", 1, 0, 1, 0.01);

//Transposition in midicents//
tr(ind) = hslider("h:Lines/v:Harmo_Transpositions/tr%2ind", 0, -2400, 2400, 1)*hslider("h:Global_Parameters/hStretch [7]", 1, -10, 10, 0.01);
tr(ind) = hslider("h:Lines/v:Harmo_Transpositions/tr%ind", 0, -2400, 2400, 1)*hslider("h:Global_Parameters/hStretch [7]", 1, -10, 10, 0.01);

//Input gains//
//from 0 to 1//
inp(ind) = hslider("h:Lines/v:Line_input/inp%2ind [5]", 1, 0, 1, 0.01):smoothLine;
inp(ind) = hslider("h:Lines/v:Line_input/inp%ind [5]", 1, 0, 1, 0.01):smoothLine;

//OUTPUT GAINS//
//from 0 to 4 since harmonizers can fade the output signal//
out(ind) = hslider("h:Lines/v:Line_output/out%2ind [6]", 1, 0, 1, 0.01):smoothLine;
out(ind) = hslider("h:Lines/v:Line_output/out%ind [6]", 1, 0, 1, 0.01):smoothLine;


//--------------------------------------------------------------------------------------//
Expand All @@ -88,7 +88,7 @@ offset = hslider("h:decoder/v:general/[1]angularoffset[unit:deg]", 0, -180, 180,
gain = hslider("h:decoder/v:general/[3]gain[unit:dB]", 0, -127, 18, 0.01) : db2gain;
stereo = nentry("h:decoder/v:general/[4]stereo", 0, 0, 1, 1) : si.smoo;
//the angle of the the ith loudspeaker among nls loudspeakers, expressed in degrees for the end-user
a(i, nls) = nentry("h:decoder/v:angles/a%2i [unit:deg]", i * 360 / nls, -360, 360, 1);
a(i, nls) = nentry("h:decoder/v:angles/a%i [unit:deg]", i * 360 / nls, -360, 360, 1);
//la = list of angles//
la(p) = par(i, p, a(i, p));

Expand Down
2 changes: 1 addition & 1 deletion faustCodes/fildesoi3.lib
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offset = hslider("h:decoder/v:general/[1]angularoffset[unit:deg]", 0, -180, 180,
gain = hslider("h:decoder/v:general/[3]gain[unit:dB]", 0, -127, 18, 0.01) : db2gain;
stereo = nentry("h:decoder/v:general/[4]stereo", 0, 0, 1, 1) : si.smoo;
//the angle of the the ith loudspeaker among nls loudspeakers, expressed in degrees for the end-user
a(i, nls) = nentry("h:decoder/v:angles/a%2i [unit:deg]", i * 360 / nls, -360, 360, 1);
a(i, nls) = nentry("h:decoder/v:angles/a%i [unit:deg]", i * 360 / nls, -360, 360, 1);
//la = list of angles//
la(p) = par(i, p, a(i, p));

Expand Down
36 changes: 18 additions & 18 deletions patches/max/_fildesoi.octodecodercontrol.maxpat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 0,
"minor" : 6,
"revision" : 4,
"architecture" : "x64",
"modernui" : 1
}
Expand Down Expand Up @@ -330,7 +330,7 @@
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 250.499877999999995, 343.0, 76.0, 22.0 ],
"text" : "prepend a07"
"text" : "prepend a7"
}

}
Expand All @@ -341,8 +341,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 219.499877999999995, 319.0, 76.0, 22.0 ],
"text" : "prepend a06"
"patching_rect" : [ 219.499877999999995, 319.0, 69.0, 22.0 ],
"text" : "prepend a6"
}

}
Expand All @@ -353,8 +353,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 188.499877999999995, 295.0, 76.0, 22.0 ],
"text" : "prepend a05"
"patching_rect" : [ 188.499877999999995, 295.0, 69.0, 22.0 ],
"text" : "prepend a5"
}

}
Expand All @@ -365,8 +365,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 157.499877999999995, 271.0, 76.0, 22.0 ],
"text" : "prepend a04"
"patching_rect" : [ 157.499877999999995, 271.0, 69.0, 22.0 ],
"text" : "prepend a4"
}

}
Expand All @@ -377,8 +377,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 126.499908000000005, 247.0, 76.0, 22.0 ],
"text" : "prepend a03"
"patching_rect" : [ 126.499908000000005, 247.0, 69.0, 22.0 ],
"text" : "prepend a3"
}

}
Expand All @@ -389,8 +389,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 95.499938999999998, 223.0, 76.0, 22.0 ],
"text" : "prepend a02"
"patching_rect" : [ 95.499938999999998, 223.0, 69.0, 22.0 ],
"text" : "prepend a2"
}

}
Expand All @@ -401,8 +401,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 64.499968999999993, 199.0, 76.0, 22.0 ],
"text" : "prepend a01"
"patching_rect" : [ 64.499968999999993, 199.0, 69.0, 22.0 ],
"text" : "prepend a1"
}

}
Expand All @@ -413,8 +413,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.5, 175.0, 76.0, 22.0 ],
"text" : "prepend a00"
"patching_rect" : [ 33.5, 175.0, 69.0, 22.0 ],
"text" : "prepend a0"
}

}
Expand Down Expand Up @@ -1073,7 +1073,7 @@
],
"dependency_cache" : [ {
"name" : "_fildesoi.gaincontrol.maxpat",
"bootpath" : "~/Desktop/UCI_Concert/FilDeSoi1et2/fildesoi1_2_maxM1IntelAboveMojave",
"bootpath" : "~/Dropbox/faustFactory/fildesoi1_2_3_factory/fildesoi1_2_3_mac_max_universal_mc",
"patcherrelativepath" : ".",
"type" : "JSON",
"implicit" : 1
Expand Down
22 changes: 11 additions & 11 deletions patches/max/_fildesoi.quadridecodercontrol.maxpat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 1,
"minor" : 6,
"revision" : 4,
"architecture" : "x64",
"modernui" : 1
}
Expand Down Expand Up @@ -280,8 +280,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 126.499908000000005, 247.0, 76.0, 22.0 ],
"text" : "prepend a03"
"patching_rect" : [ 126.499908000000005, 247.0, 69.0, 22.0 ],
"text" : "prepend a3"
}

}
Expand All @@ -292,8 +292,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 95.499938999999998, 223.0, 76.0, 22.0 ],
"text" : "prepend a02"
"patching_rect" : [ 95.499938999999998, 223.0, 69.0, 22.0 ],
"text" : "prepend a2"
}

}
Expand All @@ -304,8 +304,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 64.499968999999993, 199.0, 76.0, 22.0 ],
"text" : "prepend a01"
"patching_rect" : [ 64.499968999999993, 199.0, 69.0, 22.0 ],
"text" : "prepend a1"
}

}
Expand All @@ -316,8 +316,8 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 33.5, 175.0, 76.0, 22.0 ],
"text" : "prepend a00"
"patching_rect" : [ 33.5, 175.0, 69.0, 22.0 ],
"text" : "prepend a0"
}

}
Expand Down Expand Up @@ -728,7 +728,7 @@
],
"dependency_cache" : [ {
"name" : "_fildesoi.gaincontrol.maxpat",
"bootpath" : "~/Desktop/UCI_Concert/2_3_FilDeSoi1et2/fildesoi1_2_maxM1IntelAboveMojave",
"bootpath" : "~/Dropbox/faustFactory/fildesoi1_2_3_factory/fildesoi1_2_3_mac_max_universal_mc",
"patcherrelativepath" : ".",
"type" : "JSON",
"implicit" : 1
Expand Down
Loading

0 comments on commit ff60245

Please sign in to comment.