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
270270
271271 float getMaxFreq () { return maxfreq; }
272272
273− void setFreqRange ( t_CKFLOAT p, t_CKFLOAT q )
273+ void setFreqRange ( t_CKFLOAT q, t_CKFLOAT p )
274274 {
275275 const float nyquist = srate / 2;
276276 float min = CLIP(p, 0.0, nyquist);
@@ -557,8 +557,8 @@ CK_DLL_QUERY( Spectacle ) · 280 unmodified lines
557557 // example of adding setter method
558558 QUERY->add_mfun(QUERY, spectacle_setFreqRange, "void", "range");
559559 // example of adding argument to the above method
560− QUERY->add_arg(QUERY, "float", "min");
561− QUERY->add_arg(QUERY, "float", "max");
560+ QUERY->add_arg(QUERY, "float", "arg1");
561+ QUERY->add_arg(QUERY, "float", "arg2");
562562
563563 // example of adding setter method
564564 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