On the Subject of Spangled Stars

I don’t know how to spangle things, and quite frankly I don’t want to know...

This module consists of seven stars arranged in a circle which are flashing a sequence of three to five colors. The colors of the stars correspond to the piano keys C-B. Use the table below to determine which colors correspond to which keys.

If any module on the bomb has “key” in it’s name:
ROYGBIV
FACEDBG
If the number of Spangled Stars modules on the bomb is even:
ROYGBIV
EBDAFCG
If there are no modules with “Forget” in it’s name on the bomb:
ROYGBIV
CDEFGAB
Otherwise:
ROYGBIV
DCAGBFE

There are also letters next to the stars on the outside of the circle which are encrypted using a Caesar Cipher. To decrypt the letters, you must find the key for the cipher.

To get the key, find the keys of the top 3 stars on the module starting with the star 1 counter-clockwise from 12 o’ clock (X), then 12 o’ clock (Y), and then 1 clockwise from 12 o’ clock (Z). Use the table below to convert the keys of X, Y, and Z to a key for the cipher.

In the table, the “Keys” column refers to the keys of the stars (the order is irrelevant) and “Key” is the key for the Caesar Cipher. Note that you have to subtract this number from the alphabetic position of each letter since you’re decrypting.

KeysKeyKeysKeyKeysKeyKeysKeyKeysKey
ABC24ACF22AFG22BDG13CEF14
ABD19ACG13BCD5BEF7CEG1
ABE12ADE25BCE1BEG14CFG24
ABF25ADF7BCF10BFG11DEF12
ABG14ADG13BCG18CDE9DEG22
ACD3AEF20BDE6CDF14DFG13
ACE11AEG25BDF22CDG6EFG10

Notes:

If a star has a '#' next to it then the star does not have a letter to decrypt.

There may also be letters italicized on the inside of the circle, these letters are used when colorblind support is active, do not try and decrypt these letters for this step.

The flashing stars and the letters next to them correspond to notes and words in the “The Star-Spangled Banner” written by Francis Scott Key. The keys are the keys played in the sequence and the letters are the first letters in segments of the words that are sang during that sequence of notes. To solve the module, press the three notes that would go after that sequence. If an incorrect sequence is entered, a strike will be recorded.

GECEGCEDCEF*G
Oh--saycanyouseebythedawn'sear-lylight?
GGEDCBCBCCEGC
Whatsoproud-lywehailedatthetwi-light'slastgleam-ing
GECEGCEDCEF*G
Whosebroadstripesandbrightstarsthroughtheper-i-lousfight
GGEDCBABCCEGC
O'ertheram-partswewatchedweresogal-lient-lystream-ing?
EEEFGGFEDEFF
Andtherock-etsredglarethosebombsbur-stinginair
FEDCBABCEF*G
gaveproofthroughthenightthatourflagwasstillthere
GCCCBAAA
Ohsaydoestha-tstarspan-gled
DFEDCCB
Ban-n-erye-twa-ve
GGCDEFG
O'erthela-ndofthefree
CDEFDC
Andthehomeofthebrave

* These Fs are actually F#s, but you still have to press F if it ends up in your answer.