Skip to content
Snippets Groups Projects
getSoundsourcesWithAppliedToa.m 732 B
Newer Older
function [involvedSoundsources] = getSoundsourcesWithAppliedToa()
%GETINVOLVEDSOUNDSOURCES Summary of this function goes here
%   Detailed explanation goes here

global artoaWorkspace;

involvedSoundsourceNames = fieldnames(artoaWorkspace.filteredSoundsources);
involvedSoundsources = struct();
for i = 1:length(involvedSoundsourceNames)
    if artoa.soundsources.hasAppliedToa(involvedSoundsourceNames{i}, artoaWorkspace.toaData.soundSource)
        extracted = artoa.data.extractSoundsourcesFromStruct( ...
            involvedSoundsourceNames{i}, ...
            artoaWorkspace.filteredSoundsources ...
        );
        involvedSoundsources.(involvedSoundsourceNames{i}) = extracted;
        clear extracted;
    end
end

end