Skip to content

Commit

Permalink
fixed tia input polyphony handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wlaub committed Mar 12, 2022
1 parent ac9478c commit 9232394
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"slug": "TechTechTechnologies",
"name": "TechTech Technologies",
"version": "2.3.0",
"version": "2.3.1",
"license": "CC0-1.0",
"brand": "TechTech Technologies",
"author": "William Laub",
Expand Down
4 changes: 2 additions & 2 deletions src/Tia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ struct TiaI : Module {
if(top_select[i] < 7)
{
double top_gain = gains[top_select[i]];//params[GAIN0_PARAM+top_select[i]].getValue();
top = inputs[SIGNAL0_INPUT+top_select[i]].getVoltage(i) * top_gain;
top = inputs[SIGNAL0_INPUT+top_select[i]].getPolyVoltage(i) * top_gain;
}
if(bot_select[i] < 7)
{
double bot_gain = gains[bot_select[i]]; //params[GAIN0_PARAM+bot_select[i]].getValue();
bot = inputs[SIGNAL0_INPUT+bot_select[i]].getVoltage(i) * bot_gain;
bot = inputs[SIGNAL0_INPUT+bot_select[i]].getPolyVoltage(i) * bot_gain;
}

double mix = top*fade + bot*(1-fade);
Expand Down
4 changes: 2 additions & 2 deletions src/TiaExpander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ struct TiaIExpander : Module {
if(message->top_select[i] < 7)
{
double top_gain = message->gains[message->top_select[i]];
top = inputs[SIGNAL_INPUT+IDX(row, message->top_select[i])].getVoltage(i) * top_gain;
top = inputs[SIGNAL_INPUT+IDX(row, message->top_select[i])].getPolyVoltage(i) * top_gain;
}
if(message->bot_select[i] < 7)
{
double bot_gain = message->gains[message->bot_select[i]];
bot = inputs[SIGNAL_INPUT+IDX(row, message->bot_select[i])].getVoltage(i) * bot_gain;
bot = inputs[SIGNAL_INPUT+IDX(row, message->bot_select[i])].getPolyVoltage(i) * bot_gain;
}

double mix = top*fade + bot*(1-fade);
Expand Down

0 comments on commit 9232394

Please sign in to comment.