Showing the changes to Spectacle/Spectacle.cpp (1 of 2 files). Show all
Unified · Split
| @@ -270,7 +270,7 @@ public: · 269 unmodified lines | |||
| 270 | 270 | ||
| 271 | float getMaxFreq () { return maxfreq; } | 271 | float getMaxFreq () { return maxfreq; } |
| 272 | 272 | ||
| 273 | void setFreqRange ( t_CKFLOAT p, t_CKFLOAT q ) | 273 | void setFreqRange ( t_CKFLOAT q, t_CKFLOAT p ) |
| 274 | { | 274 | { |
| 275 | const float nyquist = srate / 2; | 275 | const float nyquist = srate / 2; |
| 276 | float min = CLIP(p, 0.0, nyquist); | 276 | float min = CLIP(p, 0.0, nyquist); |
| @@ -557,8 +557,8 @@ CK_DLL_QUERY( Spectacle ) · 280 unmodified lines | |||
| 557 | // example of adding setter method | 557 | // example of adding setter method |
| 558 | QUERY->add_mfun(QUERY, spectacle_setFreqRange, "void", "range"); | 558 | QUERY->add_mfun(QUERY, spectacle_setFreqRange, "void", "range"); |
| 559 | // example of adding argument to the above method | 559 | // example of adding argument to the above method |
| 560 | QUERY->add_arg(QUERY, "float", "min"); | 560 | QUERY->add_arg(QUERY, "float", "arg1"); |
| 561 | QUERY->add_arg(QUERY, "float", "max"); | 561 | QUERY->add_arg(QUERY, "float", "arg2"); |
| 562 | 562 | ||
| 563 | // example of adding setter method | 563 | // example of adding setter method |
| 564 | QUERY->add_mfun(QUERY, spectacle_setTableLen, "int", "bands"); | 564 | QUERY->add_mfun(QUERY, spectacle_setTableLen, "int", "bands"); |