History

fix bug from passing arguments in reverse order (!)

Joel Matthys committed 12 years ago

Commit f3fb14b1 parent 7396a9c2 files · +14 −5Browse files

Showing the changes to Spectacle/Spectacle.cpp (1 of 2 files). Show all

Unified · Split

Spectacle/Spectacle.cpp+3−3
@@ -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 method557 // 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 method559 // 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 method563 // example of adding setter method
564 QUERY->add_mfun(QUERY, spectacle_setTableLen, "int", "bands");564 QUERY->add_mfun(QUERY, spectacle_setTableLen, "int", "bands");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t