Compose a melody inspired by Bach's work.  
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 bass 
%%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 D | A A G d | c B !fermata!A c | A c B/A/ B | !fermata!A3 B | c B c A | G F G E | %7
 !fermata!D2 A3/2 G/ | F/E/ D !fermata!C2 | A F c A | G/F/ G !fermata!A G | F E/D/ ^C F | %12
 E/D/ E !fermata!D z |] %13
V:2
 z3 A, | E F E D/E/ | E/^F/ ^G !fermata!E =G | F F B,/C/ D | !fermata!^C3 D | E F G F | %6
 E F/E/ D C | !fermata!B,2 E3/2 ^C/ | D/=C/ _B, !fermata!A,2 | E F G F | E/D/ ^C/D/ !fermata!C C | %11
 D/=C/ _B, A, D | E/F/ ^C !fermata!A, z |] %13
V:3
 z3 F, | A, D B, A,/B,/ | C/D/ E/D/ !fermata!C C | C/B,/ A, ^G,/ A, G,/ | !fermata!A,3 F, | %5
 G, D C C | _B, C G, G, | !fermata!G,2 A, A, | A,/G,/ F, !fermata!F,2 | A, A, G, C | %10
 _B,/A,/ G, !fermata!E, A, | A, G,/F,/ E, A, | A,3/2 G,/ !fermata!^F, z |] %13
V:4
 z3"Dm" D, |"A/C#" ^C,"Dm" D,"Em" E,"D/F#" ^F,/^G,/ |"Am" A,"E" E,"Am" !fermata!A,,"C/E" E, | %3
"F" F,"Fmaj7/E" E,/D,/"E7" E,2 |"A" !fermata!A,,3"Bdim/D" D, |"C" C,"Bdim/D" D,"C/E" E,"F" F, | %6
"Edim/G" G,"F/A" A,"G" =B,"C/G" C |"G" !fermata!G,2"A/C#" ^C,3/2 A,,/ | %8
"Dm" D,3/2 E,/"F" !fermata!F,2 |"A/C#" ^C,"Dm" D,"C/E" E,"F" F, | %10
"Edim/G" G,/A,/"Gm" _B,"A/E" !fermata!A,"A" A,, |"Dm" D,"Edim/G" G,,"Fmaj7/E" G,/F,/"Dm/E" E,/D,/ | %12
"A/C#" ^C,/D,/"A" A,,"D" !fermata!D, z |] %13  