Skip to content

no-malloc version and other changes... - #2

Open
rdpoor wants to merge 8 commits into
JorenSix:masterfrom
ashokfernandez:master
Open

no-malloc version and other changes...#2
rdpoor wants to merge 8 commits into
JorenSix:masterfrom
ashokfernandez:master

Conversation

@rdpoor

@rdpoor rdpoor commented Aug 29, 2022

Copy link
Copy Markdown

This is a rather large change to the API:

  • User supplies a working buffer of float[sampleCount / 2] in Yin_init() so call to malloc() not needed.
  • User supplies sampling rate in Yin_init()
  • void Yin_analyze(Yin *yin, int16_t *buffer, float threshold) performs the analysis
  • float Yin_getFrequency(Yin *yin) and float Yin_getFrequency(Yin *yin) extract the results of Yin_analyze()
  • Unit tests are self-contained in Yin.c, activated with -DYIN_STANDALONE_TESTS
  • Makefile tweaked to run unit tests.
    Yin-Pitch-Tracking.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants