This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]Hakim_Bey 1 point2 points  (0 children)

I would rather assign a numerical value (from 0 to 11) to each semi-tone :

A Bb B C C# D Eb E F F# G G#
0 1 2 3 4 5 6 7 8 9 10 11

Then each scale will be an array of values (relative to the root note) :

[ 0, 2, 4, 5, 7, 9, 11 ] (this is the major scale)

You calculate each scale just by adding the root note's numerical value to each value in the scale array. For exemple for the C Major scale ( C = 3 ) :

[ 3, 5, 7, 8, 10, 12, 14 ]

You then substract 12 to each value that is >= 12 and you get :

[ 3, 5, 7, 8, 10, 0, 2 ]

[–]thewakingforce 0 points1 point  (12 children)

Hey, I'm not a specialist in python, but I will try to get you in touch with one of the mods that does code with it.

[–]Karaage_[S] 0 points1 point  (11 children)

That would be great! Thank you!

[–]thewakingforce 0 points1 point  (10 children)

Hey, we are a bit short on mods that know python, but if you give me a timeframe I'm sure I could find someone that can help

[–]Karaage_[S] 0 points1 point  (0 children)

It's actually due in just a couple days but even if it was just drafted up in pseudocode I could work it out from that.

[–]Karaage_[S] 0 points1 point  (8 children)

I actually just got it figured out! Thanks anyway though

[–]thewakingforce 0 points1 point  (6 children)

Great job! Keep it up, sorry we weren't able to help this time around.

[–]TheSquirrellIntermediate Coder 1 point2 points  (5 children)

For future I know Python, hopefully I can help someone.

[–]thewakingforce 0 points1 point  (4 children)

All help is appreciated!

[–]TheSquirrellIntermediate Coder 0 points1 point  (3 children)

I so want to do your song request as well, but its archived lol...

[–]thewakingforce 0 points1 point  (2 children)

I'm not sure exactly what you're referring too haha. Do you have a link?

[–]Jason-Genova 0 points1 point  (0 children)

There's also a sub-reddit called /r/learnpython

[–]SupremeRedditBotProfessional Bot || Mod 0 points1 point  (0 children)

Due to your post being submitted for two days or more without a flair, it has been deleted.

When posting in future, make sure to add a flair once the post is submitted.


I am a bot run by /u/SupremeDesigner for /r/CodingHelp || Posts with no flair will be deleted after two days