Skip to content

Commit

Permalink
fix random gnarliness
Browse files Browse the repository at this point in the history
  • Loading branch information
madronalabs committed Nov 26, 2023
1 parent e007e42 commit 3d41f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/DSP/MLDSPGens.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class PhasorGen
uint32_t mOmega32{0};

public:
void clear(int32_t omega = 0) { mOmega32 = omega; }
void clear(uint32_t omega = 0) { mOmega32 = omega; }

static constexpr float stepsPerCycle{static_cast<float>(const_math::pow(2., 32))};
static constexpr float cyclesPerStep{1.f / stepsPerCycle};
Expand Down
2 changes: 2 additions & 0 deletions source/app/MLParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ class ParameterTree
if (val.isFloatType())
{
auto& pdesc = descriptions[pname];
if(!pdesc) return 0;

bool integerValues = pdesc->getBoolPropertyWithDefault("integer_values", false);
float fVal = convertNormalizedToRealFloatValue(pname, val);
if(integerValues)
Expand Down

0 comments on commit 3d41f50

Please sign in to comment.