LorisManager synthesise returns stereo buffer for mono file
-
Just want to check if I'm doing something wrong here.
I call
lorisManager.analyse(f, rootFreq);
withf
being a mono file.Then I call
local buffer = lorisManager.synthesise(f); local isMultiChannel = isDefined(buffer[0].length);
And
isMultiChannel
is returning 1, but it should be 0. What am I missing? Or does Loris always return stereo? -
@d-healey isn't buffer[0] the first channel? So in that case, whatever the buffer array is (not zero), isMultichannel always returns 1?
Should you be checking for buffer[1] instead?
-
@aaronventure I'm copying it from the loris toolbox example.
Except that check is on the original file (not the synthesised buffer). I'm going through the toolbox example now to see if I can figure out where I'm going wrong.
-
Well I didn't answer the title question but using the original audio file rather than the synthesised buffer to get the number of channels solves the problem I was having.