-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So many things were found and fixed... I changed the test application so we could verify sample rates. I added tests that check the values of the sample rates and some sanity check of the actual samples Added a few changes to the API to make it more testable, such as the variable sample rate and checking the real sample rate. Implemented variable sample rate. Cleaned up the python application to only use the output files and removed unneeded dependencies. Updated the documentation...
- Loading branch information
1 parent
fb5073e
commit a712b25
Showing
16 changed files
with
495 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
output.png | ||
output.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# PDM to WAV tool | ||
|
||
This tool takes the saved output of the `tests/periph/pdm` firmware, filters | ||
through it to find recorded samples, then formats the samples into a wav file. | ||
|
||
## Requirements | ||
|
||
To run this script one only needs python3.7+. | ||
If `matplotlib` is installed, then a plot will be generated along with the wav | ||
file. | ||
|
||
|
||
## Usage | ||
Point to log file with the output from the test, here we provide an example. | ||
``` | ||
python pdm_to_wav.py example.txt | ||
``` | ||
|
||
## Misc | ||
|
||
See the [firmware README](../../../tests/periph/pdm) for more info. |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.