- Pick (String label, int _Def, int _Max) { NumPicks=_Max; Default = _Def; tag=label; }
+ Pick (String label, int _Def, int _Max, String d[]) { NumPicks=_Max; Default = _Def; tag=label; Desc = d; }
int Cur() { return (CurRow-StartRow)*NumApcCols + CurCol; }
int NumPicks, Default, CurRow, CurCol, StartRow, EndRow;
int Cur() { return (CurRow-StartRow)*NumApcCols + CurCol; }
int NumPicks, Default, CurRow, CurCol, StartRow, EndRow;
}
//----------------------------------------------------------------------------------------------------------------------------------
public class _DhP extends BasicParameter {
}
//----------------------------------------------------------------------------------------------------------------------------------
public class _DhP extends BasicParameter {
_DhP (String label, double value) { super(label,value); dflt=value; }
void Set (double value) { super.updateValue(value); }
void reset () { super.updateValue(dflt); }
_DhP (String label, double value) { super(label,value); dflt=value; }
void Set (double value) { super.updateValue(value); }
void reset () { super.updateValue(dflt); }
if (t.y != 0) { z = z*tcos.y - x*tsin.y; x = z*tsin.y + x*tcos.y; }
if (t.z != 0) { x = x*tcos.z - y*tsin.z; y = x*tsin.z + y*tcos.z; }
{ x += o.x; y += o.y; z += o.z; }
if (t.y != 0) { z = z*tcos.y - x*tsin.y; x = z*tsin.y + x*tcos.y; }
if (t.z != 0) { x = x*tcos.z - y*tsin.z; y = x*tsin.z + y*tcos.z; }
{ x += o.x; y += o.y; z += o.z; }
int mapRow (int a) { return btwn(a,53,57) ? a-53 : a; }
int unmapRow (int a) { return btwn(a,0 , 4) ? a+53 : a; }
int mapRow (int a) { return btwn(a,53,57) ? a-53 : a; }
int unmapRow (int a) { return btwn(a,0 , 4) ? a+53 : a; }
void SetLight (int row, int col, int clr){ if (APCOut != null) APCOut.sendNoteOn(col, unmapRow(row), clr); }
void SetLight (int row, int col, int clr){ if (APCOut != null) APCOut.sendNoteOn(col, unmapRow(row), clr); }
Text1 += " ZSym: " + (_ZSym ? "ON" : "OFF") + " ";
Text1 += " RSym: " + (_RSym ? "ON" : "OFF") + " ";
for (int i=0; i<CurPat.picks.size(); i++) {
Text1 += " ZSym: " + (_ZSym ? "ON" : "OFF") + " ";
Text1 += " RSym: " + (_RSym ? "ON" : "OFF") + " ";
for (int i=0; i<CurPat.picks.size(); i++) {
for (int i=0; i<CurPat.picks.size() ; i++) {
Pick P = (Pick)CurPat.picks.get(i); SetLight(P.CurRow, P.CurCol, 3);
}
for (int i=0; i<CurPat.picks.size() ; i++) {
Pick P = (Pick)CurPat.picks.get(i); SetLight(P.CurRow, P.CurCol, 3);
}
SetLight(83, 0, _YSym ? 3 : 0);
SetLight(84, 0, _ZSym ? 3 : 0);
SetLight(85, 0, _RSym ? 3 : 0);
SetLight(83, 0, _YSym ? 3 : 0);
SetLight(84, 0, _ZSym ? 3 : 0);
SetLight(85, 0, _RSym ? 3 : 0);
if (!btwn((row-P.StartRow)*NumApcCols + col,0,P.NumPicks-1) ) continue;
P.CurRow=row; P.CurCol=col; return;
}
if (!btwn((row-P.StartRow)*NumApcCols + col,0,P.NumPicks-1) ) continue;
P.CurRow=row; P.CurCol=col; return;
}
- xyz xyzHalf = new xyz(.5,.5,.5),
- xyzdMax,
- xyzMid;
+ xyz xyzHalf = new xyz(.5,.5,.5),
+ xyzdMax = new xyz(),
+ xyzMid = new xyz();
float Dist (xyz a, xyz b) { return dist(a.x,a.y,a.z,b.x,b.y,b.z); }
int c1c (float a) { return int(100*constrain(a,0,1)); }
float CalcCone (xyz v1, xyz v2, xyz c) { return degrees( acos ( v1.minus(c).dot(v2.minus(c)) /
float Dist (xyz a, xyz b) { return dist(a.x,a.y,a.z,b.x,b.y,b.z); }
int c1c (float a) { return int(100*constrain(a,0,1)); }
float CalcCone (xyz v1, xyz v2, xyz c) { return degrees( acos ( v1.minus(c).dot(v2.minus(c)) /
- Pick addPick(String name, int def, int nmax) {
- Pick P = new Pick(name, def, nmax);
+ Pick addPick(String name, int def, int nmax, String[] desc) {
+ Pick P = new Pick(name, def, nmax, desc);