Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Projects
Groups
Snippets
Sign up now
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ben Gamari
music
Commits
cfefc7e3
Commit
cfefc7e3
authored
Nov 26, 2021
by
Ben Gamari
Browse files
Fix augmented third
parent
def64d41
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Chord.hs
View file @
cfefc7e3
...
...
@@ -20,6 +20,7 @@ module Chord
,
majorSus4
,
Chord
.
majorSixth
,
dominantSeventh
,
diminishedTriad
,
augmentedTriad
,
augmentedSeventh
,
minorTriad
...
...
@@ -96,10 +97,13 @@ diminishedSeventh :: ChordType
diminishedSeventh
=
Chord
.
majorSixth
-- under equal temperament
dominantSeventh
::
ChordType
dominantSeventh
=
chordType
"dim"
[
unison
,
majorThird
,
perfectFifth
,
I
.
minorSeventh
]
dominantSeventh
=
chordType
"dim7"
[
unison
,
majorThird
,
perfectFifth
,
I
.
minorSeventh
]
diminishedTriad
::
ChordType
diminishedTriad
=
chordType
"dim"
[
unison
,
minorThird
,
diminishedFifth
]
augmentedTriad
::
ChordType
augmentedTriad
=
chordType
"aug"
[
unison
,
m
in
orThird
,
augmentedFifth
]
augmentedTriad
=
chordType
"aug"
[
unison
,
m
aj
orThird
,
augmentedFifth
]
augmentedSeventh
::
ChordType
augmentedSeventh
=
chordType
"aug7"
[
unison
,
minorThird
,
augmentedFifth
,
I
.
minorSeventh
]
...
...
src/Interval.hs
View file @
cfefc7e3
...
...
@@ -64,6 +64,9 @@ perfectFourth = Interval 5
tritone
::
Interval
tritone
=
Interval
6
diminishedFifth
::
Interval
diminishedFifth
=
Interval
6
perfectFifth
::
Interval
perfectFifth
=
Interval
7
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment