PitchClassSet:
Filter:
Classes (extension) | Notator

PitchClassSet : Object
ExtensionExtension

Pitch Class Set

โ€‹

Description

This is a Pitch Class Set implementation. Quarter tones are supported for the name system used in LilyPond and the musician-friendly naming convention. The sixteenth tones are supported for its own style \ez.

Twelve-tone Support

Standard notationSyntactic sugarResult in the Post window
โ€‹

No syntactic sugar
-> [ cs, df, bx ]
No syntactic sugar
-> [ cโ™ฏ, dโ™ญ, b๐„ช ]
No syntactic sugar
-> [ cs, df, bS ]
โ€‹

-> [ b, ax, cf, bโ™ฎ, a๐„ช, cโ™ญ, bn, b, aS, cf ]
โ€‹

-> 4

Microtonal Support

Decimals are not rounded. LilyPond style names and musician-friendly names are only supported up to quarter notes. See the Example Section of this help document:
Quarter tones
Standard notationSyntactic sugarResult in the Post window
โ€‹

-> 0.5
-> [ bqf, atqs, ctqf, cffqs, b ยผโ†“ , aโ™ฏ ยผโ†‘ , bโ™ญ ยผโ†‘ , cโ™ญ ยผโ†“ , c๐„ซ ยผโ†‘ , bu, aQ, cU, cFq ]
Sixteenth tones
Standard notationSyntactic sugarResult in the Post window
โ€‹

-> [ c1_16 ]
-> [ c1_8 ]
โ€‹

-> [ c3_16 ]
-> [ c5_16 ]
โ€‹

-> [ c3_8 ]
-> [ c7_16 ]
โ€‹

Full list of pitch class names with all styles

Pitch class integer notation

with numerical alternative

(floats: microtonal)

Pitch class name per style
\lilyโ€‚ - โ€‚[ c, bs, dff ]

\musโ€‚โ€‚ - โ€‚[ cโ™ฎ, bโ™ฏ, d๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ cn, c, bs, dF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ c1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ c1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ c3_16 ]
\lilyโ€‚ - โ€‚[ cqs, btqs, dtqf, dffqs, bxqf ]

\musโ€‚โ€‚ - โ€‚[ c ยผโ†‘ , cโ™ฏ ยผโ†“ , bโ™ฏ ยผโ†‘ , dโ™ญ ยผโ†“ , d๐„ซ ยผโ†‘ , b๐„ช ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ cq, bQ, dU, dFq, bSu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ c5_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ c3_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ c7_16 ]
\lilyโ€‚ - โ€‚[ cs, df, bx ]

\musโ€‚โ€‚ - โ€‚[ cโ™ฏ, dโ™ญ, b๐„ช ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ cs, df, bS ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ c9_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ c5_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ dm5_16 ]
\lilyโ€‚ - โ€‚[ dqf, ctqs, bxqs, cxqf, effqf ]

\musโ€‚โ€‚ - โ€‚[ d ยผโ†“ , dโ™ญ ยผโ†‘ , cโ™ฏ ยผโ†‘ , b๐„ช ยผโ†‘ , c๐„ช ยผโ†“ , e๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ du, cQ, bSq, cSu, eFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ dm3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ dm1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ dm1_16 ]
\lilyโ€‚ - โ€‚[ d, cx, eff ]

\musโ€‚โ€‚ - โ€‚[ dโ™ฎ, c๐„ช, e๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ dn, d, cS, eF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ d1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ d1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ d3_16 ]
\lilyโ€‚ - โ€‚[ dqs, etqf, fffqf, cxqs, effqs ]

\musโ€‚โ€‚ - โ€‚[ d ยผโ†‘ , dโ™ฏ ยผโ†“ , eโ™ญ ยผโ†“ , f๐„ซ ยผโ†“ , c๐„ช ยผโ†‘ , e๐„ซ ยผโ†‘ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ dq, eU, fFu, cSq, eFq ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ d5_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ d3_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ d7_16 ]
\lilyโ€‚ - โ€‚[ ds, ef, fff ]

\musโ€‚โ€‚ - โ€‚[ dโ™ฏ, eโ™ญ, f๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ ds, ef, fF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ d9_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ d5_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ em5_16 ]
\lilyโ€‚ - โ€‚[ eqf, dtqs, ftqf, fffqs ]

\musโ€‚โ€‚ - โ€‚[ eโ™ฎ ยผโ†“ , eโ™ญ ยผโ†‘ , dโ™ฏ ยผโ†‘ , fโ™ญ ยผโ†“ , f๐„ซ ยผโ†‘ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ eu, dQ, fU, fFq ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ em3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ em1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ em1_16 ]
\lilyโ€‚ - โ€‚[ e, ff, dx ]

\musโ€‚โ€‚ - โ€‚[ eโ™ฎ, fโ™ญ, d๐„ช ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ en, e, ff, dS ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ e1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ e1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ e3_16 ]
\lilyโ€‚ - โ€‚[ eqs, fqf, dxqs, gffqf ]

\musโ€‚โ€‚ - โ€‚[ e ยผโ†‘ , f ยผโ†“ , fโ™ญ ยผโ†‘ , eโ™ฏ ยผโ†“ , d๐„ช ยผโ†‘ , g๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ eq, fu, dSq, gFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ fm3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ fm1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ fm1_16 ]
\lilyโ€‚ - โ€‚[ f, es, gff ]

\musโ€‚โ€‚ - โ€‚[ fโ™ฎ, eโ™ฏ, g๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ fn, f, es, gF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ f1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ f1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ f3_16 ]
\lilyโ€‚ - โ€‚[ fqs, etqs, gtqf, gffqs, exqf ]

\musโ€‚โ€‚ - โ€‚[ f ยผโ†‘ , eโ™ฏ ยผโ†‘ , fโ™ฏ ยผโ†“ , gโ™ญ ยผโ†“ , g๐„ซ ยผโ†‘ , e๐„ช ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ fq, eQ, gU, gFq, eSu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ f5_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ f3_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ f7_16 ]
\lilyโ€‚ - โ€‚[ fs, gf, ex ]

\musโ€‚โ€‚ - โ€‚[ fโ™ฏ, gโ™ญ, e๐„ช ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ fs, gf, eS ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ f9_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ f5_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ gu, fQ, eSq, fSu, aFu ]
\lilyโ€‚ - โ€‚[ gqf, ftqs, exqs, fxqf, affqf ]

\musโ€‚โ€‚ - โ€‚[ g ยผโ†“ , fโ™ฏ ยผโ†‘ , gโ™ญ ยผโ†‘ , e๐„ช ยผโ†‘ , f๐„ช ยผโ†“ , a๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ gu, fQ, eSq, fSu, aFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ gm3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ gm1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ gm1_16 ]
\lilyโ€‚ - โ€‚[ g, fx, aff ]

\musโ€‚โ€‚ - โ€‚[ gโ™ฎ, f๐„ช, a๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ gn, g, fS, aF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ g1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ g1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ g3_16 ]
\lilyโ€‚ - โ€‚[ gqs, atqf, fxqs, affqs ]

\musโ€‚โ€‚ - โ€‚[ g ยผโ†‘ , aโ™ญ ยผโ†“ , gโ™ฏ ยผโ†“ , f๐„ช ยผโ†‘ , a๐„ซ ยผโ†‘ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ gq, aU, fSq, aFq ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ g5_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ g3_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ g7_16 ]
\lilyโ€‚ - โ€‚[ gs, af ]

\musโ€‚โ€‚ - โ€‚[ gโ™ฏ, aโ™ญ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ gs, af ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ g9_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ g5_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ am5_16 ]
\lilyโ€‚ - โ€‚[ aqf, gtqs, gxqf, bffqf ]

\musโ€‚โ€‚ - โ€‚[ a ยผโ†“ , gโ™ฏ ยผโ†‘ , aโ™ญ ยผโ†‘ , g๐„ช ยผโ†“ , b๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ au, gQ, gSu, bFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ am3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ am1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ am1_16 ]
\lilyโ€‚ - โ€‚[ a, gx, bff ]

\musโ€‚โ€‚ - โ€‚[ aโ™ฎ, g๐„ช, b๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ an, a, gS, bF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ a1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ a1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ a3_16 ]
\lilyโ€‚ - โ€‚[ aqs, btqf, gxqs, bffqs, cffqf ]

\musโ€‚โ€‚ - โ€‚[ a ยผโ†‘ , bโ™ญ ยผโ†“ , aโ™ฏ ยผโ†“ , g๐„ช ยผโ†‘ , b๐„ซ ยผโ†‘ , c๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ aq, bU, gSq, bFq, cFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ a5_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ a3_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ a7_16 ]

\lilyโ€‚ - โ€‚[ as, bf, cff ]

\musโ€‚โ€‚ - โ€‚[ aโ™ฏ, bโ™ญ, c๐„ซ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ as, bf, cF ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ a9_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ a5_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ bm5_16 ]
\lilyโ€‚ - โ€‚[ bqf, atqs, ctqf, cffqs ]

\musโ€‚โ€‚ - โ€‚[ b ยผโ†“ , aโ™ฏ ยผโ†‘ , bโ™ญ ยผโ†‘ , cโ™ญ ยผโ†“ , c๐„ซ ยผโ†‘ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ bu, aQ, cU, cFq ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ bm3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ bm1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ bm1_16 ]

\lilyโ€‚ - โ€‚[ b, ax, cf ]

\musโ€‚โ€‚ - โ€‚[ bโ™ฎ, a๐„ช, cโ™ญ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ bn, b, aS, cf ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ b1_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ b1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ b3_16 ]

\lilyโ€‚ - โ€‚[ bqs, cqf, axqs, dffqf ]

\musโ€‚โ€‚ - โ€‚[ b ยผโ†‘ , c ยผโ†“ , cโ™ญ ยผโ†‘ , bโ™ฏ ยผโ†“ , a๐„ช ยผโ†‘ , d๐„ซ ยผโ†“ ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ bq, cu, aSq, dFu ]

\ezโ€‚โ€‚โ€‚ - โ€‚[ cm3_16 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ cm1_8 ]
\ezโ€‚โ€‚โ€‚ - โ€‚[ cm1_16 ]

Class Methods

โ€‹โ€‹

PitchClassSet.ez(pitchClassNum)

returns

โ€‹

PitchClassSet.lily(pitchClassNum)

returns

PitchClassSet.getName(which: 0)

returns the pitch class name and its enharmonically-respelled ones as an array from the given pitch class number.

Arguments:

which

Pitch class number from 0 to 11.5. \t can be used for 10; \e for 11; \t5 and 't.5' for 10.5; \e5 and 'e.5' for 11.5. โ€‹

PitchClassSet.getValue(which: 'c')

returns the pitch class number from the given pitch class number.

Arguments:

which

Pitch class name in any style listed in the Full list of pitch class names with all stylesโ€‹

PitchClassSet.mus(pitchClassNum)

โ€‹โ€‹โ€‹returns

Inherited class methods

Undocumented class methods

PitchClassSet.prEzClassHigherPart

PitchClassSet.prEzClassLowerPart

PitchClassSet.prEzCommonPart

PitchClassSet.prEzOctaveHigherPart

PitchClassSet.prEzOctaveLowerPart

PitchClassSet.prLilyClassHigherPart

PitchClassSet.prLilyClassLowerPart

PitchClassSet.prLilyCommonPart

PitchClassSet.prLilyOctaveHigherPart

PitchClassSet.prLilyOctaveLowerPart

PitchClassSet.prMake(quarterToneScale)

PitchClassSet.prMakeEZ(sixteenthToneScale)

PitchClassSet.prMusicSymbolClassHigherPart

PitchClassSet.prMusicSymbolClassLowerPart

PitchClassSet.prMusicSymbolCommonPart

PitchClassSet.prMusicSymbolOctaveHigherPart

PitchClassSet.prMusicSymbolOctaveLowerPart

Instance Methods

โ€‹ โ€‹

Inherited instance methods

Examples

โ€‹

Pitch class numerical notation is not rounded:

LilyPond naming style pitch class set:

Musician-friendly naming style pitch class set:

Simple naming Style (ez style) pitch class set:

Get all the naming styles from PitchClassSet