Skip to content

Commit

Permalink
2.0.7-beta
Browse files Browse the repository at this point in the history
Added CRBViXL
Changed CRBVi curve 1
  • Loading branch information
gwygonik committed Dec 11, 2024
1 parent 7301080 commit 1be748a
Show file tree
Hide file tree
Showing 7 changed files with 1,533 additions and 3 deletions.
11 changes: 10 additions & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"slug": "acModules",
"name": "acModules",
"version": "2.0.6",
"version": "2.0.7",
"license": "GPL-3.0-or-later",
"brand": "artificialcolors",
"author": "g.wygonik",
Expand Down Expand Up @@ -102,6 +102,15 @@
"Controller",
"Utility"
]
},
{
"slug": "CRBViXL",
"name": "C|RB Vi XL",
"description": "eXtra-Large Two-Dimensional performance instrument with on-screen note guides, selectable octave range, optional note snapping, Y-axis curve shapes, with modulation input. Can also function as a playable VCA.",
"tags": [
"Controller",
"Utility"
]
}

]
Expand Down
484 changes: 484 additions & 0 deletions res/CRBViXL-Dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
502 changes: 502 additions & 0 deletions res/CRBViXL-White.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/CRBVi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct CRBVi : Module {
float outVolt = curY/10.f;
switch (currentInputCurve) {
case 1:
outVolt = 1.f - sqrtf(1.f - (outVolt*outVolt));
outVolt = outVolt*outVolt*(outVolt+0.25f);// 1.f - sqrtf(1.0f - (outVolt*outVolt));
break;
case 2:
outVolt = -(cosf(M_PI * outVolt)-1.f)/2.f;
Expand All @@ -147,15 +147,18 @@ struct CRBVi : Module {
case 0:
// 0-10
outVolt *= 10.f;
outVolt = clamp(outVolt,0.0f,10.0f);
break;
case 1:
// 0-5
outVolt *= 5.0f;
outVolt = clamp(outVolt,0.0f,5.0f);
break;
case 2:
// -5 - 5
outVolt *= 10.f;
outVolt -= 5.f;
outVolt = clamp(outVolt,-5.0f,5.0f);
break;
}
return outVolt;
Expand All @@ -164,7 +167,7 @@ struct CRBVi : Module {
float outVolt = curY/10.f;
switch (currentInputCurve) {
case 1:
outVolt = 1.f - sqrtf(1.f - (outVolt*outVolt));
outVolt = 1.f - sqrtf(1.f - (outVolt*(outVolt+0.09f)));
break;
case 2:
outVolt = -(cosf(M_PI * outVolt)-1.f)/2.f;
Expand Down
Loading

0 comments on commit 1be748a

Please sign in to comment.