Create a melody inspired by Bach's musical 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 A | A ^G A B | c B !fermata!A A | B B e d | c2 !fermata!B A | A ^G A B | c B !fermata!A A | %7
 B B e d | c2 !fermata!B e | d c B d | c B !fermata!A c | B A G/^F/ E/F/ | G A !fermata!B A/B/ | %13
 c d e3/2 d/ | c d/c/ B2 | !fermata!A3 z |] %16
V:2
 z3 E | F E E D | C/D/ E/D/ !fermata!C E/^F/ | G G c3/2 B/ | B/A/4^G/4 A !fermata!G E | F E E D | %6
 C/D/ E/D/ !fermata!C E/^F/ | G G c3/2 B/ | B/A/4^G/4 A !fermata!G E/F/ | G3/2 ^F/ G A | %10
 A ^G !fermata!E ^F | G ^F/E/ ^D E | E D !fermata!D D | E F E/^G/ A/B/ | c/B/ A2 ^G | %15
 !fermata!E3 z |] %16
V:3
 z3 C | B, B, A, E | E/^F/ ^G !fermata!A C | D E/F/ G D/E/ | A,/E,/ E !fermata!E C | B, B, A, E | %6
 E/^F/ ^G !fermata!A C | D E/F/ G D/E/ | A,/E,/ E !fermata!E G,/A,/ | B, C D D | %10
 E E/D/ !fermata!C D | D C B,/A,/ G, | C B,/A,/ !fermata!G, A, | G, A,/B,/ C3/2 B,/ | %14
 E D/E/ F E/D/ | !fermata!^C3 z |] %16
V:4
 z3"Am" A, |"Bm7b5/D" D,"E" E,"F#m" ^F,"E7/G#" ^G, |"Am" A,"E" E,"Am" !fermata!A,,"Am" A, | %3
"G" G,/F,/"Em" E,/D,/"C" C,/E,/"E7/G#" ^F,/^G,/ |"Am" A,/B,/"Am/C" C/D/"E" !fermata!E"Am" A, | %5
"Bm7b5/D" D,"E" E,"F#m" ^F,"E7/G#" ^G, |"Am" A,"E" E,"Am" !fermata!A,,"Am" A, | %7
"G" G,/F,/"Em" E,/D,/"C" C,/E,/"E7/G#" ^F,/^G,/ |"Am" A,/B,/"Am/C" C/D/"E" !fermata!E"C/G" C | %9
"G/B" B,"Am" A,"G" G,"Dm/F" =F, |"Am/E" E,/D,/"E" E,"Am" !fermata!A,,"D" D, | %11
"G" G,,"F#dim/A" A,,"G+/B" B,,"C" C,/D,/ |"C/E" E,"Bm7/F#" ^F,"G" !fermata!G,"Dm/F" =F, | %13
"C/E" E,"Dm" D,"C" C,/E,/"F#m7b5" ^F,/^G,/ |"Am" A,/=G,/"Dm/F" =F,/E,/"Bm7b5/D" D,"E" E, | %15
"A" !fermata!A,,3 z |] %16  