electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Supercollider
AmbiEM library // KemarHRTF
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
PopCode



Joined: Dec 13, 2008
Posts: 17
Location: france

PostPosted: Tue Dec 23, 2008 2:54 pm    Post subject: AmbiEM library // KemarHRTF Reply with quote  Mark this post and the followings unread

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...
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Tue Dec 23, 2008 6:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Supercollider
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use