From 4d0dd30b20b5fd4c8a814588cfc14b6ffc35ecf4 Mon Sep 17 00:00:00 2001
From: Lewin Probst <info@emirror.de>
Date: Mon, 19 Feb 2024 23:46:37 +0100
Subject: [PATCH] feat: Added optional parameter to colorregister.create
 function

---
 VERSION                                          |  2 +-
 lib/+artoa/+soundsources/+colorregister/create.m | 12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/VERSION b/VERSION
index 5ca234c..387c46f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-345
\ No newline at end of file
+346
\ No newline at end of file
diff --git a/lib/+artoa/+soundsources/+colorregister/create.m b/lib/+artoa/+soundsources/+colorregister/create.m
index 3e33b8f..1d7f360 100644
--- a/lib/+artoa/+soundsources/+colorregister/create.m
+++ b/lib/+artoa/+soundsources/+colorregister/create.m
@@ -1,7 +1,13 @@
-function [colorRegister] = create()
-%CREATE Summary of this function goes here
-%   Detailed explanation goes here
+function [colorRegister] = create(pState)
+%CREATE Creates a new color register for the soundsources.
+%   Parameters:
+%       pState (optional): Cell of strings, containing the soundsource names that are
+%       already registered.
 
+if nargin == 1
+    colorRegister = pState;
+    return;
+end
 colorRegister = {};
 
 end
-- 
GitLab