Skip to content

Commit

Permalink
First Changes to address #2. Make the names of the DynamicExecutors m…
Browse files Browse the repository at this point in the history
…ore common to autogenerate them much easier.

!!!Important: All connections to DynamicExecutors in the InputAssignment must be redefined once!!!
  • Loading branch information
jpk6789 committed Aug 10, 2018
1 parent a13f9f7 commit 313f4e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions MidiPlugin/Utilities/ExecutorWindowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ private void OnFaderValueChanged(object sender, double e)
}
public const int ExecutorWindow_MaxExecutors = 8;
public const string ExecutorWindow_ListenerId = "{CA528EAA-2768-498F-AF76-4F8D5F85E5D9}";

List<string> executorIds = new List<string>();

/*
static string[] executorIds = {
"{85EB4AF4-32BF-4246-8CEF-C5CA66C6C90F}",
"{DCF4CD04-061D-4DC5-96F1-932EAF9C1451}",
Expand All @@ -232,10 +236,16 @@ private void OnFaderValueChanged(object sender, double e)
"{A0A1DFE4-9AFD-4DFB-A2DA-35DCA0B927FC}",
"{037D0678-A050-478F-8667-9586F56BF8C5}",
};
*/

DynamicExecutor[] dynExecutors;
public ExecutorWindowHelper()
{


for (int i = 0; i < ExecutorWindow_MaxExecutors; i++) {
executorIds.Add("dynExecutorID_" + i);
}
dynExecutors = executorIds.Select(j => new DynamicExecutor { GUID = j, Tolerance = 0.07, IsModifierKeyPressed = () => { return modifierKey; } }).ToArray();
}
private bool modifierKey;
Expand Down

0 comments on commit 313f4e7

Please sign in to comment.