Write a melody that reflects the style and characteristics of Bach's works.  
X:1
T:Music21 Fragment
T:Music21 Fragment
T:Music21
C:Music21
%%score 1 2 3 4
L:1/4
M:4/4
K:C
V:1 treble 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:2 treble 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:3 treble 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:4 bass 
%%MIDI program 0
%%MIDI control 7 100
%%MIDI control 10 64
V:1
 z3 e | e d e c | B/c/4d/4 B !fermata!A A/B/ | c d e d | g ^f !fermata!e e | a b a e | %6
 ^f e !fermata!d d/e/ | ^f ^g a =g | ^f/g/4a/4 f !fermata!e z |] %9
V:2
 z3 ^G | A A B A | A ^G !fermata!E E | A G G G/A/ | B B/>A/ !fermata!^G A | A G A ^A | %6
 B3/2 ^A/ !fermata!B B/^c/ | d d e/ ^f e/ | e/^d/4^c/4 d !fermata!B z |] %9
V:3
 z3 B, | C D/C/ B, E | =F E/D/ !fermata!C C/D/ | E D C B, | E3/2 ^D/ !fermata!B, C | D D/E/ ^F G | %6
 ^F ^C/F/ !fermata!F G | A B A/^F/ G/B/ | c/^F/ B/A/ !fermata!^G z |] %9
V:4
 z3"E" E, |"Am" A,"Dm" =F"E/G#" ^G,"Am" A, |"Bm7b5/D" D,"E" E,"Am" !fermata!A,,"Am" A,, | %3
"Am" A,"G/B" B,"C" C"G" G,/^F,/ |"Em" E,"Bsus4" B,"E" !fermata!E,"Am" A,/G,/ | %5
"D/F#" ^F,"G" G,"D" D"A#dim7/C#" ^C |"Bm/D" D/E/"C#m" ^F"Bm" !fermata!B,"G" G, | %7
"D" D"G#dim/C#" ^C/B,/"A/C#" C/^D/"Em" E |"F#m7b5/A" A,"B" B,"E" !fermata!E, z |] %9  