Skip to content

Commit 313f4e7

Browse files
committed
First Changes to address #2. Make the names of the DynamicExecutors more common to autogenerate them much easier.
!!!Important: All connections to DynamicExecutors in the InputAssignment must be redefined once!!!
1 parent a13f9f7 commit 313f4e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MidiPlugin/Utilities/ExecutorWindowHelper.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ private void OnFaderValueChanged(object sender, double e)
222222
}
223223
public const int ExecutorWindow_MaxExecutors = 8;
224224
public const string ExecutorWindow_ListenerId = "{CA528EAA-2768-498F-AF76-4F8D5F85E5D9}";
225+
226+
List<string> executorIds = new List<string>();
227+
228+
/*
225229
static string[] executorIds = {
226230
"{85EB4AF4-32BF-4246-8CEF-C5CA66C6C90F}",
227231
"{DCF4CD04-061D-4DC5-96F1-932EAF9C1451}",
@@ -232,10 +236,16 @@ private void OnFaderValueChanged(object sender, double e)
232236
"{A0A1DFE4-9AFD-4DFB-A2DA-35DCA0B927FC}",
233237
"{037D0678-A050-478F-8667-9586F56BF8C5}",
234238
};
239+
*/
235240

236241
DynamicExecutor[] dynExecutors;
237242
public ExecutorWindowHelper()
238243
{
244+
245+
246+
for (int i = 0; i < ExecutorWindow_MaxExecutors; i++) {
247+
executorIds.Add("dynExecutorID_" + i);
248+
}
239249
dynExecutors = executorIds.Select(j => new DynamicExecutor { GUID = j, Tolerance = 0.07, IsModifierKeyPressed = () => { return modifierKey; } }).ToArray();
240250
}
241251
private bool modifierKey;

0 commit comments

Comments
 (0)