Click here to Skip to main content
15,886,362 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Does anyone here know any formal music theory? Pin
honey the codewitch9-Jul-20 3:45
mvahoney the codewitch9-Jul-20 3:45 
GeneralRe: Does anyone here know any formal music theory? Pin
kalberts9-Jul-20 4:05
kalberts9-Jul-20 4:05 
GeneralRe: Does anyone here know any formal music theory? Pin
honey the codewitch9-Jul-20 4:17
mvahoney the codewitch9-Jul-20 4:17 
GeneralRe: Does anyone here know any formal music theory? Pin
User 110609799-Jul-20 7:50
User 110609799-Jul-20 7:50 
GeneralRe: Does anyone here know any formal music theory? Pin
OriginalGriff9-Jul-20 4:08
mveOriginalGriff9-Jul-20 4:08 
GeneralRe: Does anyone here know any formal music theory? Pin
David O'Neil9-Jul-20 8:11
professionalDavid O'Neil9-Jul-20 8:11 
GeneralRe: Does anyone here know any formal music theory? Pin
Ron Anders9-Jul-20 15:21
Ron Anders9-Jul-20 15:21 
GeneralRe: Does anyone here know any formal music theory? Pin
Rich Leyshon9-Jul-20 21:06
Rich Leyshon9-Jul-20 21:06 
Maybe it's just a typo, but you have two of the major keys transposed (bad choice of words maybe in this context!)

Line 2 SHARPS should be "GDAEBFC"

However, there are bigger problems!

This code will return mostly wrong answers. If we look at the sharps only, your code (assume it's major) would return:

C, G# major, D# major, A# major ...

which is incorrect.

The correct sequence (without all the "majors" shown) would be: C G D A E B F# C#

And a sort of reverse applies situation applies to the flats. (C), F, Bb, Eb, Ab, Db, Gb, Cb

Hope that helped!

modified 10-Jul-20 3:54am.

GeneralRe: Does anyone here know any formal music theory? Pin
Steve A Lee9-Jul-20 22:36
Steve A Lee9-Jul-20 22:36 
GeneralRe: Does anyone here know any formal music theory? Pin
honey the codewitch10-Jul-20 3:01
mvahoney the codewitch10-Jul-20 3:01 
GeneralRe: Does anyone here know any formal music theory? Pin
Member 135867739-Jul-20 23:24
Member 135867739-Jul-20 23:24 
GeneralRe: Does anyone here know any formal music theory? Pin
t-j@home10-Jul-20 2:36
professionalt-j@home10-Jul-20 2:36 
GeneralRe: Does anyone here know any formal music theory? Pin
Dan Neely10-Jul-20 2:51
Dan Neely10-Jul-20 2:51 
GeneralRe: Does anyone here know any formal music theory? Pin
destynova10-Jul-20 5:55
destynova10-Jul-20 5:55 
GeneralRe: Does anyone here know any formal music theory? Pin
Dan Sutton10-Jul-20 5:54
Dan Sutton10-Jul-20 5:54 
GeneralRe: Does anyone here know any formal music theory? Pin
nepdev11-Jul-20 6:36
nepdev11-Jul-20 6:36 
GeneralRe: Does anyone here know any formal music theory? Pin
honey the codewitch11-Jul-20 8:54
mvahoney the codewitch11-Jul-20 8:54 
GeneralRe: Does anyone here know any formal music theory? Pin
Olfello11-Jul-20 21:31
Olfello11-Jul-20 21:31 
GeneralRe: Does anyone here know any formal music theory? Pin
kholsinger13-Jul-20 6:02
kholsinger13-Jul-20 6:02 
GeneralI've got ants in my kitchen... PinPopular
Sander Rossel9-Jul-20 1:33
professionalSander Rossel9-Jul-20 1:33 
GeneralRe: I've got ants in my kitchen... Pin
Richard Deeming9-Jul-20 1:39
mveRichard Deeming9-Jul-20 1:39 
GeneralRe: I've got ants in my kitchen... Pin
musefan9-Jul-20 1:50
musefan9-Jul-20 1:50 
GeneralRe: I've got ants in my kitchen... Pin
Daniel Pfeffer9-Jul-20 2:01
professionalDaniel Pfeffer9-Jul-20 2:01 
GeneralRe: I've got ants in my kitchen... Pin
musefan9-Jul-20 2:19
musefan9-Jul-20 2:19 
GeneralRe: I've got ants in my kitchen... Pin
Daniel Pfeffer9-Jul-20 2:55
professionalDaniel Pfeffer9-Jul-20 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.