| Hello Gabry,
I think it should be possible. Csound has opcodes to detect pitch. You should
also be able to detect if a detected pitch stays in a very small range for a
while. From the top of my head, I'd think it might be interesting to find the
closest desired pitch and give the number of cents to match it, but even that
should be possible. With my control signal quantiser I have certainly managed
to pull an incoming frequency to the near43est matching note.
All in all, it might be a good project to sharpen your skills. :)
Best wishes,
Jeanette
Gabriele Battaglia, May 11 2026:
> Hi everyone. For a few years now, I have been developing a Windows
> application designed to assist me in music theory study and instrument
> practice.
> Currently, I have integrated a configurable metronome, a chord builder that
> provides fingerings for all supported string instruments, a scale builder,
> and several other features.
> I would like to add a tuner, and I am considering using Csound for this
> purpose. My idea is as follows:
> When the user selects the tuner function from the menu, the app starts
> listening via the system microphone. If it detects a note—specifically a
> fundamental frequency—that remains stable for a duration sufficient to
> distinguish it from background noise, the app recognizes it and displays an
> output such as:
> xxx Hz <-55>C4
> This would indicate the frequency and the distance from the nearest note in
> cents.
> In your opinion, is it feasible to implement this using Csound?
> Thank you very much. Gabry.
>
> --
> Gabriele Battaglia (IZ4APU)
> --... ...-- -.. . .. --.. ....- .- .--. ..- - ..- . .
> Sent from my Giant desktop PC.
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
>
--
* PeerTube: https://makertube.net/@jeanette_c
* GitHub: https://github.com/jeanette-c
* Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |