-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scales/modes? #50
Comments
Maybe I'm missing something but I don't see how a Diatonic syntax of eg.
Major|Minor|Diminished etc (x,x+2,x+4) would be useful or could easily be
used if I have chords like C7b9#5.
…On Thu, Dec 9, 2021 at 6:25 PM jwaldmann ***@***.***> wrote:
I wanted to use the diatonic scale, and transpose inside the scale. E.g.,
transpose 1 c should give d (whole note up), but transpose 1 e should
give f (semi note up),
and a chord is [x, x+2, x+4], giving major, minor, or dim, depending on x.
Electribe2 does have such a chord mode.
Euterpea has chromatic scale everywhere, because MIDI does.
Still the source code (and API docs) mention Mode. But it's never used?
rg Major Euterpea2/
Euterpea2/Euterpea/Music.lhs
38:> data Mode = Major | Minor |
Euterpea's class ToMusic is already designed (I guess) to handle this:
One can make a newtype
data Diatonic = Diatonic Int
and define conversion to chromatic (via some table lookup)
instance ToMusic1 Diatonic where
toMusic1 = mMap ( \ (Diatonic i) -> (pitch _, _) )
Then, transposition in the scale works
tr_dia d = mMap (\ (Diatonic i) -> Diatonic (i+d))
play $ tr_dia 2 $ note 1 $ Diatonic 0
The nice thing is that the type system will prohibit a confusion of scales
(using a diatonic number as it were chromatic).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#50>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFX6DRU275JA6PR5EHGBGTUQDYDNANCNFSM5JXE6SXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Yes, it'd be limited to notes in the scale. For diatonic, you'd get the things you can play "on the white keys", etc. I was thinking mainly for teaching. For making actual music, it's quite a restriction. But that's not necessarily bad? - Related:
|
Tnx for the link to Electribe2; I've failed to get Tidal Cycles working so
far. White notes are definitely a bad restriction if you're a Bartok fan
like me :)
…On Sat, Dec 11, 2021 at 11:12 PM jwaldmann ***@***.***> wrote:
Yes, it'd be limited to notes in the scale. For diatonic, you'd get the
things you can play "on the white keys", etc. I was thinking mainly for
teaching. For making actual music, it's quite a restriction. But that's not
necessarily bad? - Related:
- Electribe2 (Korg) has this mode for chords, and for (quasi random)
notes from the touchpad
- Tidal Cycles
http://tidalcycles.org/docs/reference/harmony_melody#scales
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFX6DUK6IDMTX5ASHC6WTDUQPLHVANCNFSM5JXE6SXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to use the diatonic scale, and transpose inside the scale. E.g.,
transpose 1 c
should gived
(whole note up), buttranspose 1 e
should givef
(semi note up),and a chord is [x, x+2, x+4], giving major, minor, or dim, depending on
x
.Electribe2 does have such a chord mode.
Euterpea has chromatic scale everywhere, because MIDI does.
Still the source code (and API docs) mention
Mode
. But it's never used?Euterpea's
class ToMusic
is already designed (I guess) to handle this:One can make a newtype
and define conversion to chromatic (via some table lookup)
Then, transposition in the scale works
The nice thing is that the type system will prohibit a confusion of scales (using a diatonic number as it were chromatic).
The text was updated successfully, but these errors were encountered: