-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Pedro Santos edited this page Nov 11, 2020
·
3 revisions
- Basics
- Guitar
import org.harris.Interval.*
import org.harris.Pitch.*
Example | Output |
---|---|
C.sharp() | CSharp |
E.flat() | EFlat |
C.absoluteDistance(C) | 0 |
C.absoluteDistance(GSharp) | 8 |
C.intervalTo(DFlat). | MinorSecond |
C.intervalTo(GFlat). | DiminishedFifth |
C.transpose(DiminishedFifth) | GFlat |
import org.harris.Interval.*
import org.harris.Pitch.*
Example | Output |
---|---|
CMajor.notes() | [ C, D, E, F, G, A, B ] |
EFlatMajor.Notes() | [ EFlat, F, G, AFlat, BFlat, C, D ] |
DMinor.notes() | [ D, E, F, G, A, BFlat, C ] |
import org.harris.Pitch.*
import org.harris.ScaleDegree.*
import org.harris.ScalePattern.*
Example | Output |
---|---|
Scale(Phrygian, C).pitches() | [ C, DFlat, EFlat, F, G, AFlat, BFlat] |
Scale(LydianAugmented, C).pitches() | [ C, D, E; FSharp, GSharp, A, B ] |
import org.harris.ChordNoteFunction.*
import org.harris.Pitch.*
import org.harris.ChordPattern.*
let cMaj7 = ClosedChord(C, Major7)
let cMaj = ClosedChord(C, Major)
Example | Output |
---|---|
cMaj7.bass() | C |
cMaj7.leadI() | B |
cMaj7.name() | "CMaj7" |
cMaj7.noteForFunction(Fifth) | G |
cMaj7.motes() | [C, E, G, B] |
cMaj.invert().notes() | [E, G, C] |
cMaj.invert().invert().notes() | [G, C, E] |
cMaj7.toDrop2().notes() | [C, G, B, E] |
cMaj7.toDrop3().notes(). | [C, B, E, G] |
import org.harris.Pitch.*
import org.harris.ScalePattern.*
cIonian = Ionian.createScale(C)
triadsHarmonizer = TriadHarmonizer(cIonian)
seventhsHarmonizer = SeventhsHarmonizer(cIonian)
Example | Output |
---|---|
triadsHarmonizer.chordFor(ScaleDgrees.I) | cMaj |
triadsHarmonizer.chordFor(ScaleDgrees.II) | dMin |
seventhsHarmonizer.chordFor(ScaleDgrees.I) | cMaj7 |
seventhsHarmonizer.chordFor(ScaleDgrees.II) | dMin7 |
Coming soon :)