-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from phip1611/dev
merge dev for v0.4.0 release
- Loading branch information
Showing
19 changed files
with
820 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
language: rust | ||
rust: | ||
- stable | ||
- nightly | ||
cache: cargo | ||
|
||
script: | ||
- cargo build --all-targets | ||
# - cargo build --all-targets --release | ||
- cargo test --all-targets | ||
# - cargo test --all-targets --release | ||
- rustup target add thumbv7em-none-eabihf | ||
- cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-complex" | ||
- cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-real" | ||
|
||
# examples | ||
- cargo run --release --example mp3-samples |
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 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 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,23 @@ | ||
## How to use FFT to get a frequency spectrum? | ||
|
||
This library is full of additional and useful links and comments about how an FFT result | ||
can be used to get a frequency spectrum. In this document I want to give a short introduction | ||
where inside the code you can find specific things. | ||
|
||
**TL;DR:** Although this crate has 1400 lines of code, **the part which gets the frequency and | ||
their values from the FFT is small and simple**. Most of the code is related to my convenient | ||
abstraction over the FFT result including several getters, transform/scaling functions, and | ||
tests. | ||
|
||
**I don't explain how FFT works but how you use the result!** | ||
If you want to understand that too: | ||
|
||
- check out all links provided [at the end of README.md](/README.md) | ||
- look into `lib.rs` (**probalby gives you 90 percent of the things you want to know**) | ||
and the comments over the FFT abstraction in `src/fft/mod.rs` and | ||
`src/fft/rustfft-complex/mod.rs`. | ||
|
||
|
||
This is everything important you need. Everything inside | ||
`spectrum.rs` and the other files is just convenient stuff + tests for when you | ||
want to use this crate in your program. |
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 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,12 @@ | ||
echo "checks that this builds on std+no_std + that all tests run" | ||
cargo build --all-targets | ||
# cargo build --all-targets --release | ||
cargo test --all-targets | ||
# cargo test --all-targets --release | ||
rustup target add thumbv7em-none-eabihf | ||
cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-complex" | ||
cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-real" | ||
|
||
|
||
# run examples | ||
cargo run --release --example mp3-samples |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.