Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Add control deduction functions #14

Merged
merged 78 commits into from
May 25, 2020
Merged

Conversation

js-jslog
Copy link
Owner

There are 3 dependent control items:

  • pozitionId
  • harpKeyId
  • rootPitchId

Given 2 of these we should be able to determine the third. This is important for using the control system in the UI since we will want to lock one variable, alter a second and see the third vary in line.

js-jslog added 30 commits May 22, 2020 21:42
And in to dedicated file.
In preparation for adding more functionality. I don't want the index
file to be cluttered.
I wouldn't want to clear the cache unless I also wanted to run the
tests, right?
This one has definitely proved that we should be providing helper
functions rather than just ordered constants. It's not really a constant
that ORDERED_POZITIONS variable. But I've stuck with the pattern defined
elsewhere before I have a review in a moment.
We can rely on the Map to be ordered so this will do as our function for
getting ordered ids.
The order of the arrays returned will soon be critical so make higher demands
in tests of this function.
No longer required now we have the getOrderedPitchIds function.
No longer required since pozitionMap is already ordered and offers
improved functionality.
@js-jslog js-jslog merged commit faeecd3 into master May 25, 2020
@js-jslog js-jslog deleted the add-control-derivation-functions branch May 25, 2020 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant