Download the PHP package iammordaty/key-tools without Composer
On this page you can find all versions of the php package iammordaty/key-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iammordaty/key-tools
More information about iammordaty/key-tools
Files in iammordaty/key-tools
Package key-tools
Short Description KeyTools is a library that allows you to convert musical keys between notations. In addition, KeyTools allows you to calculate matching keys for harmonic mixing.
License MIT
Informations about the package key-tools
iammordaty/key-tools
KeyTools is a library that allows you to convert musical keys between notations. In addition, KeyTools allows you to calculate matching keys for harmonic mixing.
Supported notations:
- Camelot Key
- Open Key
- Musical
- Musical used by Beatport
- Musical used by Essentia streaming extractor
KeyTools is based on the code written by @mossspence, which can be found here.
Table of Contents
- Installation
- Requirements
- Usage
- Tests
- Further information
- License
Installation
The easiest way to install this library is via composer:
Requirements
- PHP 7.1 and higher
Usage
The following example shows how to calculate a new key.
KeyTools can return keys with a leading zero – just set the parameter leading_zero
to true
,
as in the following example. Please note that, this setting applies only to Camelot Key and Open Key notations.
To calculate new key, you can also use shorthand methods:
Also, conversion of keys between notations is easy:
KeyTools allows key and notation validation by suitable methods...
... or by throwing appropriate exceptions:
Tests
Copy phpunit.xml.dist
file to phpunit.xml
and use PHPUnit to run tests:
Further information
- Harmonic mixing overview and how-to
- "What Is Harmonic Mixing?" – tutorial by DJ Endo
- "Digital DJing: harmonic mixing" – tutorial by Radley Marx
- Open Key notation
- Camelot wheel (image)
- More possibilities for harmonic mixing (image)
- Essentia – C++ library for audio and music analysis, description and synthesis
- Essentia streaming extractor music command-line tool
License
iammordaty/key-tools is licensed under the MIT License.