Compose a melody inspired by Bach's musical style.  
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 A | A A ^G E | A B c c | d c !fermata!B B | c d e/d/ c | f f e/d/ e | d2 !fermata!c c | %7
 B A G/F/ E/F/ | G G A G | F2 !fermata!E e | d c B2 | !fermata!A3 z |] %12
V:2
 z3 G | F ^F E B, | A, E E A | B A !fermata!^G E | E G G A/G/ | F/G/ A A A | D/E/ F !fermata!E A | %7
 D C D C/D/ | E E F E | E/^C/ D !fermata!=C A | A/^G/ A3/2 ^F/ G | !fermata!E3 z |] %12
V:3
 z3 E | D C B, ^G, | D D C/D/ E | F E !fermata!E ^G, | A, B, C/B,/ A, | A, D C/B,/ C | %6
 C B, !fermata!C E, | ^F,/^G,/ A, D, =G, | C C C/D/ E | A,2 !fermata!A, =C | B, E, E3/2 D/ | %11
 !fermata!^C3 z |] %12
V:4
 z3"A7/C#" ^C, |"Dm" D,"D#dim7" ^D,"E" E,"E" E, |"D/F#" ^F,"E7/G#" ^G,"Am" A,"Am" A, | %3
"G#dim7" ^G,"Am" A,"E" !fermata!E,"E" E, |"Am" A,"G" =G,"C" C,"F" F,/E,/ | %5
"Dm" D,/E,/"Dm/F" F,/G,/"Am" A,"Am7/G" G,/^F,/ |"Gsus4" G,2"C" !fermata!C,"Am/C" C, | %7
"Bm/D" D,/E,/"F" =F,"G/B" B,,"C" C, |"C" C/_B,/"Am7" A,/G,/"F" F,/E,/"C#dim" D,/^C,/ | %9
"Dm" D,2"Am" !fermata!A,,"Am" A,, |"Bm" B,,"Am/C" C,/D,/"E" E,2 |"A" !fermata!A,,3 z |] %12  