2.0.1 - 2022-10-19
- createRange() method was not working properly due to missing this context.
- applyPattern() method was not working properly due to missing this context.
2.0.0 - 2022-10-11
- Open Key support (in addition to Camelot Keys and Standard Notation). Methods to apply movements on the wheel are notation agnostic, as long as you work with the key object (Camelot Key or Open Key), so they work in both cases the same.
- Added 2 methods to translate object keys between Camelot notation and Open one: translateObjectCamelotToOpen() and translateObjectOpenToCamelot().
- getKeyNotationTable() and getKeyNotationObjectTable() to retrieve a copy (not a reference) of the private translation tables.
- translateToNotation() method to convert any key object to multiple notations at the same time, for ex. for queries.
- clone() method to clone a key object. i.e. simple object destructuring.
- createRange() method to return a cross on wheel with a given length. i.e. can change hour or letter, but not both without a penalty (-1 length)
- getDistance(), getLetterDistance(), getHourDistance() to measure the 'distance' between 2 keys.
- getKeyNotationObject() has been split into 2 versions, one for Camelot Keys (getKeyNotationObjectCamelot) and another for Open Keys (getKeyNotationObjectOpen), they work the same as previously and output their respective key object.
- getKeyNotation() has been split into 2 versions, same comment applies (getKeyNotationCamelot and getKeyNotationOpen). They convert the key object to a string ('7A').
- Pattern creation: random shuffling is now up to x1000 times faster for big sizes.
- General cleanup of code while remaining compatible with plain java-script. Moved all functions to camelotWheel object, as methods. Moved maps to private variables. Previous code using this library may need a small rewrite for a few functions. In particular applyPattern(), cyclicOffset() and createHarmonicMixingPattern() are now methods of cameloWheel instead of functions polluting the global namespace and the notation tables (maps) are private and not reachable anymore (the new methods must be used for that use-case).
1.1.1 - 2021-06-07
- Pattern creation: not really random due to using sort + random method. Using an array shuffle now instead.
1.1.0 - 2021-05-03
- Method for pattern creation from harmonic mixing.
- Method for pattern application to keys.
- keyNotation for self mapped keys was wrong.
1.0.0 - 2021-05-02
- First release.