Skip to content

Commit

Permalink
poles: fix count
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 16, 2025
1 parent bc81cfd commit 01acf7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/Helpers/PerBus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace examples::helpers
struct PerBusAsArgs
{
halp_meta(name, "Per-bus processing (args, helpers)")
halp_meta(c_name, "avnd_helpers_per_bus_as_args")
halp_meta(c_name, "avnd_helpers_per_bus_as_args1")
halp_meta(uuid, "23a4de57-800b-453a-99b6-481db19d834f")
halp_meta(input_channels, 2)
halp_meta(output_channels, 2)
Expand Down
6 changes: 3 additions & 3 deletions examples/Helpers/Poles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ struct Poles

void operator()()
{
if(inputs.length.value < 0 || inputs.length.value > 1000)
if(inputs.length.value <= 0 || inputs.length.value > 1000)
return;

const float mult = inputs.mult.value;
auto& res = outputs.a.value;
res.resize(inputs.length + 1, boost::container::default_init);
res.resize(inputs.length, boost::container::default_init);

for(int k = 0; k <= inputs.length; k++)
for(int k = 0; k < inputs.length; k++)
{
const double i = 2. * k / inputs.length - 1.;
res[k] = mult * pdf(i / 10. - inputs.pos, inv_sigma);
Expand Down

0 comments on commit 01acf7b

Please sign in to comment.