Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

OpenDAFF

Code

OpenDAFF Code

Directional Audio File Format

Brought to you by: fwefers, jstienen, laspoeck

Summary

Files

Reviews

Support

Code

Mailing Lists

OpenDAFF official website

Menu ▾ ▴

Browse Commits

Fork

Merge Requests 0

Forks 1

Branches

master

develop

[a354ca]: / matlab / Tests / testMex.m  Maximize  Restore  History

Download this file

42 lines (34 with data), 932 Bytes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

close all;

clear all;

h = DAFF('open', 'ir.daff');

props = DAFF('getProperties', h)

metadata = DAFF('getMetadata', h);

% for i=1:props.alphaPoints

% DAFF('getRecordCoords', h, 'object', i)

% end

% Impulse response

% [data1] = DAFF('getNearestNeighbour', h, 'object', 0, 0);

% [data1] = DAFF('getRecordByIndex', h, 1);

% figure;

% hold on

% plot(data1(1,1:512), 'r')

% plot(data1(2,1:512), 'k')

[data2] = DAFF('getNearestNeighbourRecord', h, 'object', 170, 0);

[index] = DAFF('getNearestNeighbourIndex', h, 'object', 170, 0)

[metadata2] = DAFF('getRecordMetadata', h, index, 1)

[data2] = DAFF('getRecordByIndex', h, 9);

figure;

hold on

plot(data2(1,1:512), 'r')

plot(data2(2,1:512), 'k')

% Directivity

%

% figure;

% hold on

% for i=1:9

% [data] = DAFF('getNearestNeighbour', h, 'object', 0, i*10);

% semilogx(props.freqs, data, 'r')

% end

%

DAFF('close', h);

clear DAFF;

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit