Class Key

Description

Collection of constants representing the most common key signatures

  • since: 1.0

Located in /Util/Key.php (line 22)


	
			
Class Constant Summary
 AFlatMajor = '252|0'
 AFlatMinor = '255|1'
 AMajor = '3|0'
 AMinor = '0|1'
 ASharpMinor = '7|1'
 BFlatMajor = '254|0'
 BFlatMinor = '253|1'
 BMajor = '5|0'
 BMinor = '2|1'
 CFlatMajor = '249|0'
 CMajor = '0|0'
 CMinor = '251|1'
 CSharpMajor = '7|0'
 CSharpMinor = '4|1'
 DFlatMajor = '251|0'
 DMajor = '2|0'
 DMinor = '249|1'
 DSharpMinor = '6|1'
 EFlatMajor = '253|0'
 EFlatMinor = '254|1'
 EMajor = '4|0'
 EMinor = '1|1'
 FMajor = '255|0'
 FMinor = '252|1'
 FSharpMajor = '6|0'
 FSharpMinor = '3|1'
 GFlatMajor = '250|0'
 GMajor = '1|0'
 GMinor = '250|1'
 GSharpMinor = '5|1'
Variable Summary
static mixed $keyMap
Method Summary
static string getKeySignature (int $accidentals, int $mode)
Variables
static mixed $keyMap = array(
self::CMajor => 'C Major',
self::GMajor => 'G Major',
self::DMajor => 'D Major',
self::AMajor => 'A Major',
self::EMajor => 'E Major',
self::BMajor => 'B Major',
self::FSharpMajor => 'F# Major',
self::CSharpMajor => 'C# Major',

self::FMajor => 'F Major',
self::BFlatMajor => 'Bb Major',
self::EFlatMajor => 'Eb Major',
self::AFlatMajor => 'Ab Major',
self::DFlatMajor => 'Db Major',
self::GFlatMajor => 'Gb Major',
self::CFlatMajor => 'Cb Major',

self::AMinor => 'A Minor',
self::EMinor => 'E Minor',
self::BMinor => 'B Minor',
self::FSharpMinor => 'F# Minor',
self::CSharpMinor => 'C# Minor',
self::GSharpMinor => 'G# Minor',
self::DSharpMinor => 'D# Minor',
self::ASharpMinor => 'A# Minor',

self::DMinor => 'D Minor',
self::GMinor => 'G Minor',
self::CMinor => 'C Minor',
self::FMinor => 'F Minor',
self::BFlatMinor => 'Bb Minor',
self::EFlatMinor => 'Eb Minor',
self::AFlatMinor => 'Ab Minor'
)
(line 209)
  • access: private
Methods
static method getKeySignature (line 255)

Gets the friendly name of the key signature

static string getKeySignature (int $accidentals, int $mode)
  • int $accidentals: 0 + # of sharps or 256 - # of flats
  • int $mode:
    1. for major, 1 for minor
Class Constants
AFlatMajor = '252|0' (line 96)

4 flats

AFlatMinor = '255|1' (line 207)

7 flats

AMajor = '3|0' (line 47)

3 sharps

AMinor = '0|1' (line 121)

0 sharps, 0 flats

ASharpMinor = '7|1' (line 164)

7 sharps

BFlatMajor = '254|0' (line 84)

2 flats

BFlatMinor = '253|1' (line 195)

5 flats

BMajor = '5|0' (line 59)

5 sharps

BMinor = '2|1' (line 134)

2 sharps

CFlatMajor = '249|0' (line 114)

7 flats

CMajor = '0|0' (line 28)

0 flats, 0 sharps

CMinor = '251|1' (line 183)

3 flats

CSharpMajor = '7|0' (line 71)

7 sharps

CSharpMinor = '4|1' (line 146)

4 sharps

DFlatMajor = '251|0' (line 102)

5 flats

DMajor = '2|0' (line 41)

2 sharps

DMinor = '249|1' (line 171)

1 flat

DSharpMinor = '6|1' (line 158)

6 sharps

EFlatMajor = '253|0' (line 90)

3 flats

EFlatMinor = '254|1' (line 201)

6 flats

EMajor = '4|0' (line 53)

4 sharps

EMinor = '1|1' (line 128)

1 sharp

FMajor = '255|0' (line 78)

1 flat

FMinor = '252|1' (line 189)

4 flats

FSharpMajor = '6|0' (line 65)

6 sharps

FSharpMinor = '3|1' (line 140)

3 sharps

GFlatMajor = '250|0' (line 108)

6 flats

GMajor = '1|0' (line 35)

1 sharp

GMinor = '250|1' (line 177)

2 flats

GSharpMinor = '5|1' (line 152)

5 sharps

Documentation generated on Sun, 25 Oct 2009 22:38:18 -0700 by phpDocumentor 1.4.3