Comments (4)
Dear Vera,
seems like a backward-compatibility issue. Could you send me a link to
that SOFA file?
Thanks,
Piotr
Vera Erbes wrote:
Since commit c8494dc
c8494dc
I get the error:Error using SOFAupdateDimensions (line 107)
Data.Delay: dimension could not be matched.Error in SOFAload (line 178)
Obj = SOFAupdateDimensions(Obj);Seems to be a problem with updating the dimension of Data.Delay, which
in 0.1 used to be IR or MR and from 0.2 on has to be IRE or MRE.—
Reply to this email directly or view it on GitHub
#13.
Piotr Majdak
Psychoakustik und Experimentelle Audiologie
Institut für Schallforschung http://www.kfs.oeaw.ac.at
Österreichische Akademie der Wissenschaften http://www.oeaw.ac.at/
Wohllebengasse 12-14, 1040 Wien
Tel.: +43 1 51581-2511
Fax: +43 1 51581-2530
from sofatoolbox.
Hi Piotr,
you can find it here:
http://data.bbcarp.org.uk/sbsbrir/sofa/
from sofatoolbox.
Dear Vera,
there are some problems with not-backward-compatible conventions on
loading and saving in the API.
I suggest to do the following:
x=SOFAload('SBS_BRIR_something.sofa','nochecks'); % load the file without any checks
x.Data.Delay=zeros(1,x.API.R,x.API.E); % correct the size of Data.Delay (in these files, Data.Delay is unused, so we can fill it safely with zeros)
x=SOFAupdateDimensions(x); % just a check to show that we are safe now
now x can be used, but it still will be in the old conventions version.
When saved with SOFAsave, it will be converted to the newest version,
The new file can be then loaded with all the checks as expected.
Hope that helps,
Piotr
Vera Erbes wrote:
Hi Piotr,
you can find it here:
http://data.bbcarp.org.uk/sbsbrir/sofa/—
Reply to this email directly or view it on GitHub
#13 (comment).
Piotr Majdak
Psychoakustik und Experimentelle Audiologie
Institut für Schallforschung http://www.kfs.oeaw.ac.at
Österreichische Akademie der Wissenschaften http://www.oeaw.ac.at/
Wohllebengasse 12-14, 1040 Wien
Tel.: +43 1 51581-2511
Fax: +43 1 51581-2530
from sofatoolbox.
Dear Piotr,
thanks, that worked, though it would have been nicer if it could be solved automatically. I wasn't aware of the 'nochecks' option, though.
Kind regards,
Vera
from sofatoolbox.
Related Issues (20)
- Implement SOFAresample HOT 2
- Can i change the.sofa file sampling rate? HOT 1
- upgrade for MultiSpeakerBRIR HOT 5
- upgrade for SingleRoomDRIR HOT 3
- Implement creation of fig. 5 from JAES paper to SOS demo
- General_FIRE 1.0 HOT 1
- SOFAload: improve stability
- SOFAhrtf2dtf needs field GLOBAL_Comment to exist HOT 8
- SOFAhrtf2dtf: rmfield invalid syntax HOT 3
- Failed to run usage code HOT 1
- Two versions of FreeFieldDirectivityTF (1.0 and 1.1) HOT 4
- Warning: Unsupported SOFA conventions: SimpleFreeFieldHRIR. Skipping all checks. HOT 7
- SOFAhrtf2dtf: Support Data.Delay
- feature request: calculate objective metrics between two sofa files HOT 1
- SOFAcalculateITD: do not add Delay variable to input data in case of input data is a simple matrix HOT 1
- SOFAplotHRTF: parameter handling could be improved
- SOFAcalculateITD inconsistent
- SOFAplotHRTF 'MagHorizontal' issue
- hrtf = SOFAload('hrtf_M_hrtf B.sofa'); warning: Invalid UTF-8 byte sequences have been replaced. HOT 13
- Deprecate FreeFieldDirectivityTF_1.0.csv HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofatoolbox.