mrcodefinger / twelvetones
This script displays all twelve tones in random order.
dev-master
2020-12-01 07:33 UTC
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-06-29 01:58:56 UTC
README
This script displays all twelve tones in random order.
Examples:
$tones = new ShuffleArray( [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
new RandomValue( [ "Ab", "G#" ] ),
new RandomValue( [ "Bb", "A#" ] ),
new RandomValue( [ "C#", "Db" ] ),
new RandomValue( [ "D#", "Eb" ] ),
new RandomValue( [ "F#", "Gb" ] ),
] );
array_map("printf", $tones->getValue());
foreach($tones->getValue() as $tone) {
echo $tone . " ";
}
echo $tones;