Skip to content

Commit

Permalink
docs: Fix wrong example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jan 14, 2021
1 parent e8299b9 commit 5888541
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/Introduction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
* }
*
* // Run the analysis
* KeyFinder::KeyDetectionResult r = k.keyOfAudio(a);
* KeyFinder::key_t key = k.keyOfAudio(a);
*
* // And do something with the result
* doSomethingWith(r.globalKeyEstimate);
* doSomethingWith(key);
* ```
*
* \section example_progressive Progressive Estimation Example
Expand All @@ -63,8 +63,8 @@
* k.progressiveChromagram(a, w);
*
* // if you want to grab progressive key estimates...
* KeyFinder::KeyDetectionResult r = k.keyOfChromagram(w);
* doSomethingWithMostRecentKeyEstimate(r.globalKeyEstimate);
* KeyFinder::key_t key = k.keyOfChromagram(w);
* doSomethingWithMostRecentKeyEstimate(key);
* }
*
* // if you only want a single key estimate, or to squeeze
Expand All @@ -73,8 +73,8 @@
* k.finalChromagram(w);
*
* // and finally...
* KeyFinder::KeyDetectionResult r = k.keyOfChromagram(w);
* KeyFinder::key key = k.keyOfChromagram(w);
*
* doSomethingWithFinalKeyEstimate(r.globalKeyEstimate);
* doSomethingWithFinalKeyEstimate(key);
* ```
*/

0 comments on commit 5888541

Please sign in to comment.