I want to use my e-guitar as a controller for a game so I came up with the Idea to use the pitch that gets picked up by a recording software to simulate pressing a key
for example: if int(pitch) = 150hz
but I don’t know how to make my program read what the recording software displays. How can I make my program read what is displays. I would rather use python than any C language because I understand Python better
i tried making the recording program write a the pitch on a notepad that my program has access to but for some reason i just got no results on the notepad or in the Python console
There are a few different ways you could approach this problem, depending on the recording software you are using and the details of how you want to use the pitch data. Here are a few options you could consider:
If the recording software provides an API or some other way for your Python program to access the pitch data directly, you could use that to get the pitch data and use it in your program.
If the recording software does not provide an API, you could try using a screen scraping tool like Selenium to read the pitch data from the recording software’s user interface. This would involve writing code to control a web browser (e.g., Chrome or Firefox) to open the recording software and navigate to the part of the interface where the pitch data is displayed, and then reading the data from the interface using Selenium.
Another option would be to use a tool like OBS (Open Broadcaster Software) to capture the audio from the recording software, and then use a Python library like PyAudio to process the audio data and extract the pitch information. This would involve setting up OBS to capture the audio and send it to your Python program, and then writing code in Python to process the audio data and extract the pitch information.
I hope these suggestions are helpful! Let me know if you have any questions or need more guidance on how to implement one of these approaches.