Closed ekuleshov closed 8 months ago
I don't know about PitchDetector
algorithm. But I can provide some hints.
bufferSize
enough for detecting pitch?PitchDetector
support multi-channel audio data?I don't know about
PitchDetector
algorithm. But I can provide some hints.
- Is your
bufferSize
enough for detecting pitch?
How can I control buffer size that is passed to ProcessorNodeMixin.process()
implementation?
Or each processor suppose to maintain its own buffer? If so, could you give some example how to feed such buffer using data passed to process()
method?
- Does the
PitchDetector
support multi-channel audio data?
If I understand correctly in multi-channel buffers, e.g. 2 channels, every second value belong to the next channel. I tried to feed data only from one channel and could not get reliable output.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
First of all thank you for this amazing package. It looks very promising for decoding, playing and processing audio data.
So, I'm trying to use
coast_audio
to do a pitch detection on the audio data stream decoded from a wav file.There are some general issues I mentioned in #13 (processing data without playing or encoding) and getting
AudioTime
when processing anAudioBuffer
insideProcessorNodeMixin.process()
implementation.To do pitch detection I used the pitch_detector_dart package, which implements AUBIO_YIN pitch tracking algorithm ported from TarsosDSP.
So, I used
FftNode
as an example and implemented a naivePitchNode
class below. I'm struggling with getting data out of the audio buffer to get it in a format that works with thePitchDetector
. This code kind of works, but I get false positive detections with frequency over 50kHz, which should not be there when sampling rate is 48000-ish.Also, there should be a better way to work with the data buffer or use something like
FrameRingBuffer
asFftNode
does, but I could not figure it out how to do that.@SKKbySSK I really need your advise on this or maybe you could incorporate Yin algorithm in the
coast_audio
orcoast_audio_fft
packages for a general use.Thank you in advance.