Environment: Siren
Instances of this class represent octave dependent notes.
access
oct: o
octave: o
pitchClass
pitchClass: aPc
alterations
isDoubleFlat
isDoubleSharp
isFlat
isNatural
isSharp
natural
sharp
printing
storeOn: s
(N C sharp sharp octave: 3) storeString = '(N C sharp sharp @ 3)'
intervals
diatonicStepsTo: aNote
returns the number of diatonic steps to aNote
following
the next diatonic note of self's natural note
newdiatonicStepsTo: aNote
returns the number of diatonic steps to aNote
nthFollowing: i
yields the nth diatonic note following self.
Takes octave shifts into account
nthPreceding: i
yields the nth diatonic note preceding self.
Takes octave shifts into account
olddiatonicStepsTo: aNote
returns the number of diatonic steps to aNote
oldEquals: x
important pour l'integrite des operations sur les melodies
preceding
the next diatonic note of self's natural note
semiToneCount
related to OctaveDependentNote fromMidiPitch
semiTonesWith: aNote
interval testing
returns the interval between the two octaveDependentNotes.
Assume that aNote is really a OctaveDependentNote
intervalTypeBetween: aNote
returns the type of the interval between the two notes modulo one
octave
(N C octave: 6) intervalTypeBetween: (N re octave: 3)
isLessThanA: interval from: od
ascending or descending direction
realIntervalTypeBetween: aNote
returns the type of the interval between the two notes
(N C octave: 6) realIntervalTypeBetween: (N C octave: 3)
testIntervalsFrom: pitch1 to: pitch2
(N C sharp @ 3) testIntervalsFrom: (N A @ 1) to: (N A @ 4)
public intervals
Join semitons to note in order to obtain the required number of
semitones with self.
Redefined here because interval computation must take octave
into account ...
alterateBelow: note toReach: i
Join semitons to note in order to obtain the required number of
semitones with self.
Redefined here because interval computation must take octave
into account ...
augmentedEleventh
augmentedFifth
augmentedFourth
augmentedNinth
augmentedOctave
augmentedSecond
diminishedFifth
diminishedNinth
diminishedOctave
diminishedSeventh
diminishedThirteenth
eleventh
fifth
flatFifth
flatNinth
flatThirteenth
fourth
majorNinth
majorSecond
majorSeventh
majorSixth
majorThird
majorThirteenth
minorNinth
minorSecond
minorSeventh
minorSixth
minorThird
minorThirteenth
ninth
octave
perfectEleventh
perfectFifth
perfectFourth
second
seventh
sixth
thirteenth
unison
transpose
beTransposedBy: i
beTransposedOneStepDown
used by the score editor as diatonic step!
beTransposedOneStepUp
used by the score editor as diatonic step!
beUpAnOctave
downAnOctave
setPitchTo: aPitch
switchTo: aNote
transposeOf: anInterval
three cases: integer (+/-), method name (= ascending interval), or interval
object
upAnOctave
comparing
<= aNote
= x
> aNote
>= aNote
hash
isbetween: n1 and: n2
isNearerTo: n1 than: n2
midiPitchEquals: aNote
pitchEqual: aNote
theNearestPitch: list
(N A flat @ 2) theNearestPitch: (Array with: (N C @ 2) with: (N C @ 3))
mutations
leading
lowerLeadingToneInScale: s
upperLeadingToneInScale: s
private-pacts
modifying
modify octave according to the given tessitura
mutations more
dottedFull
dottedHalf
dottedQuarter
eighth
eighthInTriplet
full
half
quarter
quarterInTriplet
sixteenth
accessing delegation
constraining
MetaClass: OctaveDependentNote class
creation
fromMidiPitch: n
yields the note that has n as midiPitch. Only natural and sharp
notes are created as there is no possible way of knowing the
intention
named: s
self named: 'Re#2'
octave: o pc: pc
examples
(N do octave: 3) minorThird sharp sharp E#3
(N C octave: 3) semiTonesWith: (N la octave: 4) 21
(#(do re mi fa sol la si ) collect: [:x | (N perform: x) octave: 3])
collect: [:y | y - #octave]
(N B octave: 3) intervalBetween: (N B flat octave: 4)
(N B octave: 3) intervalBetween: (N B flat octave: 2)
(N C octave: 3) intervalBetween: (N C octave: 2) descending octave
(N C octave: 2) intervalBetween: (N C octave: 3) octave
vocal ranges
retourne la collection des notes de l'alto
altoRangeInScale: aScale
OctaveDependentNote sopranoRangeInScale: (N do sharp minorScale)
baseRange
retourne la collection des notes de la basse
baseRangeInScale: aScale
OctaveDependentNote sopranoRangeInScale: (N do sharp minorScale)
sopranoRange
retourne la collection des notes du soprano
sopranoRangeInScale: aScale
OctaveDependentNote sopranoRangeInScale: (N do sharp minorScale)
tenorRange
retourne la collection des notes du tenor
tenorRangeInScale: aScale
OctaveDependentNote sopranoRangeInScale: (N do sharp minorScale)