Comments (5)
- How can I convert the frequency values in range 0-1 returned by the
get_frequency
member function of thepitch_detector
class into normal pitch values?
get_frequency
does not return values in range 0-1. It returns the actual frequency. Have you tried running the pitch_detector
test? Here's the relevant code:
https://github.com/cycfi/q/blob/develop/test/pitch_detector.cpp#L63-L76
from q.
To convert frequency to pitch, you can use this:
https://cycfi.github.io/q/q/v1.0_beta/reference/units/pitch.html
from q.
hi @djowel
Thanks very much for your answer.
I set the sps parameter for pitch_detector
incorrectly. When I replaced this to the sample rate of the input device, I started to get correct results. As far as I understand from the test codes, this means sample rate. Am I thinking right?
from q.
hi @djowel
Thanks very much for your answer.
I set the sps parameter for
pitch_detector
incorrectly. When I replaced this to the sample rate of the input device, I started to get correct results. As far as I understand from the test codes, this means sample rate. Am I thinking right?
That is correct.
from q.
If this issue has been resolved, please close. Thanks.
from q.
Related Issues (20)
- Some values for lowest and highest pitch cause blank output pitch detection HOT 9
- BiQuad lowpass filter problem HOT 4
- Explanation of how to best use the pitch detector HOT 12
- midi processor dispatch() not catching notes on channels other than 0 HOT 1
- use with raw audio stream pointers (int16_t * audio) HOT 3
- Incorrect Implementation in WAV memory read HOT 5
- [SUGGESTION] Audio fingerprinting
- Mac os 11.2 needs latest portaudio for running HOT 3
- Not able to compile the examples HOT 1
- Use q with a float array ? HOT 1
- Example of using signal_conditioner with shared_ptr HOT 4
- Detecting voiced vs unvoiced segments using BACF HOT 2
- Is it possible to add audio effects with song in android using this lib?
- Build fails with glibc>=2.34 HOT 5
- Godd HOT 1
- 404 link to square_osc.cpp in docs/modules/ROOT/pages/quick_start.adoc HOT 1
- = operator overload HOT 4
- Deprecated space in "" operator overloads causes compiler warnings, which causes errors in our release builds HOT 4
- Direct access to `audio_stream` samples HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from q.