PopCode
Joined: Dec 13, 2008 Posts: 17 Location: france
|
Posted: Tue Dec 23, 2008 2:54 pm Post subject:
AmbiEM library // KemarHRTF |
|
|
Hi,
I try to send thispart of code :
Code: |
// The speaker positions [eleveation],[azimuth]
e = [90,40,40,40,40,0,0,0,0,0,0,0,-40,-40,-40,-40];
a = [0,45,135,225,315,25,75,130,180,230,285,335,0,90,180,270];
// adjust your path to the Kemar data
// this is relative to the SC3 folder
Kemar.path = "KemarHRTF/"
Kemar.initBuffers(a, e); |
and I get this result :
Code: |
ERROR: Primitive '_FileLength' failed.
Failed.
RECEIVER:
Instance of File { (B75EDB70, gc=44, fmt=00, flg=00, set=01)
instance variables [1]
fileptr : nil
}
CALL STACK:
MethodError:reportError 093C2340
arg this = <instance>
Nil:handleError 093C23A0
arg this = nil
arg error = <instance>
Thread:handleError 093C22E0
arg this = <instance>
arg error = <instance>
Object:throw 093C2220
arg this = <instance>
Object:primitiveFailed 093BA450
arg this = <instance>
Meta_Kemar:loadFileFor B7611E20
arg this = class Kemar
arg azi = 0
arg elev = 90
var fileL = <instance>
var fileR = nil
var cL = nil
var cR = nil
var stringAzi = [*2]
Meta_Binaural:loadBuffers B7611B50
arg this = class Kemar
arg azi = 0
arg elev = 90
arg bufPair = [*2]
var cL = nil
var cR = nil
ArrayedCollection:do 09410B00
arg this = [*16]
arg function = <instance>
var i = 0
Meta_Binaural:initBuffers B760E440
arg this = class Kemar
arg azi = [*16]
arg elev = [*16]
arg server = <instance>
arg firstBufNum = nil
Interpreter:interpretPrintCmdLine B760DF20
arg this = <instance>
var res = nil
var func = <instance>
var code = "Kemar.initBuffers(a, e);"
Process:interpretPrintCmdLine 093B8CE0
arg this = <instance>
|
I have downloaded Kemar at this adress :
http://sound.media.mit.edu/resources/KEMAR.html
and put my folder KemarHRTF/ in my SuperCollider folder app that i can see with this :
Code: | Platform.userAppSupportDir |
But maybe i forget something... I have copied all .dat from Kemar/full/elev0... to Kemar/
??
what's wrong?
somebody know?
thanks... |
|
dewdrop_world
Joined: Aug 28, 2006 Posts: 858 Location: Guangzhou, China
Audio files: 4
|
Posted: Tue Dec 23, 2008 6:27 pm Post subject:
|
|
|
Code: | RECEIVER:
Instance of File { (B75EDB70, gc=44, fmt=00, flg=00, set=01)
instance variables [1]
fileptr : nil
} |
Since fileptr in the File is nil, the OS could not open the file. Possibly a wrong path?
I haven't used these classes, not sure exactly how to fix it - but I can say for sure the "FileLength failed" error is because the file is not open.
hjh _________________ ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net |
|