So I am trying to do a cross synthesis program that takes two files and process them using the fft library. I have encountered several issues that bugged me for a while:
1. How to read two audio files and store them in buffer for fft calculation? Shall I make seperate buffer for each one?
2. I have to do fft for the two audio files and only take the real part of one and the imaginary part of another for calculating the magnitude and phase for the output signal. Thus, another ifft caulculation is needed for the out put signal. Does that mean I have to create three fft objects and three seperate threads to perform this?
3. Currently I am just loading samples for cross synth, but I am eventually thinking of doing live cross synth. Is it doable?
I have program the code but the terminal says :
Bela stopped
Building project ...
Build finished
Running project ...
Loaded the audio file 'theme.wav' with 360000 frames (8.2 seconds)
Loaded the audio file 'voice.wav' with 1501975 frames (34.1 seconds)
Segmentation fault
Makefile:613: recipe for target 'runide' failed
make: *** [runide] Error 139
Bela stopped
root@bela ~/Bela#
I guess part of the reason is because of using monofile player object for reading two files.
These are the main questions that I am concerning about at this point. I really appreciate if someone could help me with it! I can attach my code if it would help!