Skip to content
Snippets Groups Projects
Commit 71fbfdb0 authored by leprob001's avatar leprob001
Browse files

Added generation of colors for every sound source.

parent 8ccf76da
No related branches found
No related tags found
No related merge requests found
function [] = generateSoundSourceColors()
%GENERATESOUNDSOURCECOLORS Generates unique identifier value for a sound source.
% Generates a 1D vector with values between 0 and 1. This vector is used
% to identify sound sources by color in the timeOfArrival plot.
global artoaWorkspace artoaDataInput;
soundsourceNames = fieldnames(artoaDataInput.soundsources);
artoaWorkspace.soundSourceColorId = ...
[1:length(soundsourceNames)] / length(soundsourceNames);
end
...@@ -19,6 +19,7 @@ end ...@@ -19,6 +19,7 @@ end
artoaDataInput.soundsources = artoa.load.soundsources(filepath); artoaDataInput.soundsources = artoa.load.soundsources(filepath);
%% Update workspace %% Update workspace
artoa.controller.generateSoundSourceColors();
%artoa.controller.copyRfbToWorkspace(); %artoa.controller.copyRfbToWorkspace();
%% Update menu buttons %% Update menu buttons
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment