Before you leave, you do not need to understand much musical notation to execute this challenge.

You are watching: Treble clef to bass clef converter

EXPLANATION

In standard sheet music, twin clefs go across the page serving as referral points to the notes, letting you know what note must be played. If you space not already familiar with the treble and bass clef, right here is a summary from Wikipedia:

A clef is a musical symbol provided to indicate the key of composed notes. Put on among the lines in ~ the start of the stave, it suggests the name and also pitch of the notes on the line. This heat serves together a reference suggest by which the name of the note on any type of other heat or space of the stave may be determined.

*

In the photo above, the top half of the currently is the Treble clef, denoted v a

*

The bottom half is the base clef, denoted through a

*

As you have the right to see top top the treble clef a keep in mind on the bottom-most line is one E. (I am no counting notes external of the clef lines for this challenge) top top the base clef, the lowest line is a G.To complete this challenge, you need to do the following:

CHALLENGE

Given an input in among the adhering to forms (your choice), convert it to the opposite clef. Even if it is it is the Treble or base clef have the right to be a Truthey/Falsey value in your language (not just any kind of two values), e.g.

F# T orF# Trueor F# Treble

but not

F# -1orF# 4

Spaces and also capitalization room optional, Flats will not appear, and also trailing whitespace is no allowed.

Input expected OutputE Treble GF Treble AF# Treble A#G Treble BG# Treble CA Treble CA# Treble C#B Treble DC Treble EC# Treble FD Treble FD# Treble F#E Treble GF Treble AF# Treble A#G base EG# bass FA base FA# base F#B base GC bass AC# bass A#D base BD# bass CE base CF bass DF# bass D#G base EG# base FA base FA# base F#Be forewarned, this is not a trivial consistent difference challenge. Look closely at the inputs and outputs. If girlfriend look in ~ a piano,

*

the black secrets are sharps, denoted through #.

See more: How Long Do Lip Piercings Take To Heal ? Lip Piercing Aftercare & Healing

Keep in mind that there is no an E# or a B#. This way that if you are offered G# on the bass clef, instead of returning E#, you must return F