PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7 files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes, and the global library files (Macros, Labels, Groups, ClearGroups, CCLI, Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar, KeyMappings, CommunicationDevices). Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy (v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/, binary-format specs, and a synthetic 369-test PHPUnit suite covering RTF extraction, translation slides, ZIP64 repair, round-trip fidelity, and end-to-end generation.
145 lines
4.4 KiB
PHP
145 lines
4.4 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: musicKeyScale.proto
|
|
|
|
namespace Rv\Data\MusicKeyScale;
|
|
|
|
use UnexpectedValueException;
|
|
|
|
/**
|
|
* Protobuf type <code>rv.data.MusicKeyScale.MusicKey</code>
|
|
*/
|
|
class MusicKey
|
|
{
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_A_FLAT = 0;</code>
|
|
*/
|
|
const MUSIC_KEY_A_FLAT = 0;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_A = 1;</code>
|
|
*/
|
|
const MUSIC_KEY_A = 1;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_A_SHARP = 2;</code>
|
|
*/
|
|
const MUSIC_KEY_A_SHARP = 2;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_B_FLAT = 3;</code>
|
|
*/
|
|
const MUSIC_KEY_B_FLAT = 3;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_B = 4;</code>
|
|
*/
|
|
const MUSIC_KEY_B = 4;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_B_SHARP = 5;</code>
|
|
*/
|
|
const MUSIC_KEY_B_SHARP = 5;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_C_FLAT = 6;</code>
|
|
*/
|
|
const MUSIC_KEY_C_FLAT = 6;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_C = 7;</code>
|
|
*/
|
|
const MUSIC_KEY_C = 7;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_C_SHARP = 8;</code>
|
|
*/
|
|
const MUSIC_KEY_C_SHARP = 8;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_D_FLAT = 9;</code>
|
|
*/
|
|
const MUSIC_KEY_D_FLAT = 9;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_D = 10;</code>
|
|
*/
|
|
const MUSIC_KEY_D = 10;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_D_SHARP = 11;</code>
|
|
*/
|
|
const MUSIC_KEY_D_SHARP = 11;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_E_FLAT = 12;</code>
|
|
*/
|
|
const MUSIC_KEY_E_FLAT = 12;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_E = 13;</code>
|
|
*/
|
|
const MUSIC_KEY_E = 13;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_E_SHARP = 14;</code>
|
|
*/
|
|
const MUSIC_KEY_E_SHARP = 14;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_F_FLAT = 15;</code>
|
|
*/
|
|
const MUSIC_KEY_F_FLAT = 15;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_F = 16;</code>
|
|
*/
|
|
const MUSIC_KEY_F = 16;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_F_SHARP = 17;</code>
|
|
*/
|
|
const MUSIC_KEY_F_SHARP = 17;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_G_FLAT = 18;</code>
|
|
*/
|
|
const MUSIC_KEY_G_FLAT = 18;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_G = 19;</code>
|
|
*/
|
|
const MUSIC_KEY_G = 19;
|
|
/**
|
|
* Generated from protobuf enum <code>MUSIC_KEY_G_SHARP = 20;</code>
|
|
*/
|
|
const MUSIC_KEY_G_SHARP = 20;
|
|
|
|
private static $valueToName = [
|
|
self::MUSIC_KEY_A_FLAT => 'MUSIC_KEY_A_FLAT',
|
|
self::MUSIC_KEY_A => 'MUSIC_KEY_A',
|
|
self::MUSIC_KEY_A_SHARP => 'MUSIC_KEY_A_SHARP',
|
|
self::MUSIC_KEY_B_FLAT => 'MUSIC_KEY_B_FLAT',
|
|
self::MUSIC_KEY_B => 'MUSIC_KEY_B',
|
|
self::MUSIC_KEY_B_SHARP => 'MUSIC_KEY_B_SHARP',
|
|
self::MUSIC_KEY_C_FLAT => 'MUSIC_KEY_C_FLAT',
|
|
self::MUSIC_KEY_C => 'MUSIC_KEY_C',
|
|
self::MUSIC_KEY_C_SHARP => 'MUSIC_KEY_C_SHARP',
|
|
self::MUSIC_KEY_D_FLAT => 'MUSIC_KEY_D_FLAT',
|
|
self::MUSIC_KEY_D => 'MUSIC_KEY_D',
|
|
self::MUSIC_KEY_D_SHARP => 'MUSIC_KEY_D_SHARP',
|
|
self::MUSIC_KEY_E_FLAT => 'MUSIC_KEY_E_FLAT',
|
|
self::MUSIC_KEY_E => 'MUSIC_KEY_E',
|
|
self::MUSIC_KEY_E_SHARP => 'MUSIC_KEY_E_SHARP',
|
|
self::MUSIC_KEY_F_FLAT => 'MUSIC_KEY_F_FLAT',
|
|
self::MUSIC_KEY_F => 'MUSIC_KEY_F',
|
|
self::MUSIC_KEY_F_SHARP => 'MUSIC_KEY_F_SHARP',
|
|
self::MUSIC_KEY_G_FLAT => 'MUSIC_KEY_G_FLAT',
|
|
self::MUSIC_KEY_G => 'MUSIC_KEY_G',
|
|
self::MUSIC_KEY_G_SHARP => 'MUSIC_KEY_G_SHARP',
|
|
];
|
|
|
|
public static function name($value)
|
|
{
|
|
if (!isset(self::$valueToName[$value])) {
|
|
throw new UnexpectedValueException(sprintf(
|
|
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
|
}
|
|
return self::$valueToName[$value];
|
|
}
|
|
|
|
|
|
public static function value($name)
|
|
{
|
|
$const = __CLASS__ . '::' . strtoupper($name);
|
|
if (!defined($const)) {
|
|
throw new UnexpectedValueException(sprintf(
|
|
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
|
}
|
|
return constant($const);
|
|
}
|
|
}
|
|
|