Commit 18915cf1 authored by Lukas Aspöck's avatar Lukas Aspöck

added RAVEN interfacing methods for maximum reflection density (filter...

added RAVEN interfacing methods for maximum reflection density (filter synthesis) and detection sphere resolution (ray tracing)
parent e90db5bc
...@@ -124,6 +124,8 @@ classdef itaRavenProject < handle ...@@ -124,6 +124,8 @@ classdef itaRavenProject < handle
numParticles_Portal numParticles_Portal
energyLoss_Sphere energyLoss_Sphere
energyLoss_Portal energyLoss_Portal
detectionSphereAziResolution
detectionSphereEleResolution
filterLength filterLength
timeSlotLength timeSlotLength
radiusSphere radiusSphere
...@@ -133,6 +135,7 @@ classdef itaRavenProject < handle ...@@ -133,6 +135,7 @@ classdef itaRavenProject < handle
fixPoissonSequence fixPoissonSequence
poissonSequenceNumber poissonSequenceNumber
filterResolution filterResolution
maxReflectionDensity
ambisonicsOrder ambisonicsOrder
numberSpreadedSources numberSpreadedSources
spreadingStdDeviation spreadingStdDeviation
...@@ -1465,6 +1468,34 @@ classdef itaRavenProject < handle ...@@ -1465,6 +1468,34 @@ classdef itaRavenProject < handle
obj.rpf_ini.WriteFile(obj.ravenProjectFile); obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end end
%------------------------------------------------------------------
function setDetectionSphereResolutionAzimuth(obj, resAzi)
% setDetectionSphereResolutionAzimuth
% set detection sphere azimuth resolution in degree
% default value = 10
% samples sphere into grid, creating "directivity groups"
% see Phd thesis by Dirk Schrder for details
obj.detectionSphereAziResolution = resAzi;
obj.rpf_ini.SetValues('RayTracing', 'resolutionAzimuth_DetectionSphere', resAzi);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setDetectionSphereResolutionElevation(obj, resEle)
% setDetectionSphereResolutionElevation
% set detection sphere elevation resolution in degree
% default value = 10
% samples sphere into grid, creating "directivity groups"
% see Phd thesis by Dirk Schrder for details
obj.detectionSphereEleResolution = resEle;
obj.rpf_ini.SetValues('RayTracing', 'resolutionElevation_DetectionSphere', resEle);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
% [Filter] % % [Filter] %
%------------------------------------------------------------------ %------------------------------------------------------------------
function setFilterLength(obj, filter_length) % filter length parameter needed in [ms] function setFilterLength(obj, filter_length) % filter length parameter needed in [ms]
...@@ -1544,6 +1575,21 @@ classdef itaRavenProject < handle ...@@ -1544,6 +1575,21 @@ classdef itaRavenProject < handle
obj.rpf_ini.WriteFile(obj.ravenProjectFile); obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end end
%------------------------------------------------------------------
% setMaximumReflectionDensity
% sets the maxium reflection density for filter synthesis. Default
% value is 20000. Typical values between 10000 and 20000
% for details see Diss Dirk Schrder or,
% Aspck @ DAGA 2013 / DAGA 2017
function setMaximumReflectionDensity(obj, maxReflectionDensity)
obj.maxReflectionDensity = maxReflectionDensity;
obj.rpf_ini.SetValues('Filter', 'maximumReflectionDensity', maxReflectionDensity);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------ %------------------------------------------------------------------
function setAmbisonicsOrder(obj, order) function setAmbisonicsOrder(obj, order)
obj.ambisonicsOrder = order; obj.ambisonicsOrder = order;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment