I’m trying out CsoundUnity using a csd that reads a midi file. I had to put a complete pathname after the -F flag as it didn’t find the midi file in the Assets/Csound files, but that’s not my question.
When I try running the scene, the sound seems weirdly stretched out and distorted. I printed some time information to the console using the times opcode, and between the time it printed out 0 seconds and it printed out 11 seconds, 36 seconds had actually elapsed according to my stopwatch. Currently the csd has no sr or kr specified, but I tried specifying sr = 44100 and sr = 48000 and the sound changed but was still incorrect.
I’m wondering if I don’t understand something about how Unity works with Csound/Audio Source component or if reading a midi file is not recommended. I’ve been trying this out on a couple of Macs (10.13.4) running Unity 5.4.0f3. Thanks for any help!