mrcodefinger/twelvetones
Composer 安装命令:
composer require mrcodefinger/twelvetones
包简介
This script displays all twelve tones in random order.
README 文档
README
This script displays all twelve tones in random order.
Requires PHP 8.2 or later.
composer install
composer test
php index.php
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;
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-10