I'm currently working on a project specializing in modeling guitar effects using Evolutionary Algorithms and want to use Python and CSound for this.
The idea is to generate effect parameters in my algorithm in Python, send them to CSound and apply a filter to the audio file, and then send the new audio file back to Python to perform frequency analysis to compare with the target audio file (this will be done in a loop before as long as the audio file is not sufficiently similar to the target audio file, so sending / receiving between CSound and Python will be a lot).
Briefly stated, how do I get Python to send data to a CSound (.csd file), how can I read data in a .csd file, and how do I send a WAV file from CSound to Python? It is also preferred that this can work dynamically on its own until the criteria for the audio file are met.
Thank you in advance
source share