In the python API, the RPR_PCM_Source_CreateFromFile command is not working.
I tried a simple test:
Code:
item = RPR_GetSelectedMediaItem(0, 0)
source = RPR_PCM_Source_CreateFromFile("D:/folder/file.wave")
take = RPR_AddTakeToMediaItem(item)
RPR_SetMediaItemTake_Source(take, source)
and the new take seems just empty. The exact same commands in lua work perfectly.
The thing is at this time I'm building a python application for some signal processing (just denoising for now) as part of my thesis, and I wanted to interface that with reaper. I've stumbled upon plenty of problems, and now this is the latest.. I'm starting to get crazy with that :P (by searching around I found some people saying the same and suggesting the RPR_BR_SetTakeSourceFromFile, but this doesn't seem to work either:
Code:
NameError: global name 'BR_SetTakeSourceFromFile' is not defined
..while having the sws installed and having this function appear in the Reaper's generated Reascript documentation..
I was a crazy Reaper supporter praising its API.. but what is going on?? :P
- forgive my annoyance, it's 1:30 and I've been dealing with bugs for the past hour. I've stumbled with even more bugs on my tries..
I hope that the API will get fixed since i've seen this particular bug discussed even 1 year ago (
http://forum.cockos.com/showthread.php?t=173743)