Here we have the four examples we were asked to encode into Kern format:
My code for example 1:
**kern
*clefG2
*M2/4
=1
8c
16c
16e
=2
8g
8g
8a
8a
=3
8g
16a
16b
8cc
8g
=4
8g
8g
8a
8a
=5
4g
8g
16g
16g
=6
8g
8a
8g
8f
==
*-
Example 2:
**kern
*clefG2
*M4/4
=1
2c
4c
4c
=2
(4a
4g#)
4ee
4r
=3
4g
(2g
4b-)
=4
(4a-
4c)
[2a
=5
4a]
(4g
4Bn)
4r
==
*-
Example 3:
**kern
*clefG2
*k[f#]
*M7/8
=1
8g
8f#
8g
4f#
4g
=2
8f#
8e
8f#
4e
4f#
=3
8g
8f#
8g
4f#
4g
=4
8f#
8e
8a
4b
4cc
==
*-
Example 4:
**kern **kern
*clefG2 *clefF4
*k[f#c#] *k[f#c#]
*M2/4 *M2/4
=1 =1
8r 8g'
=2 =2
4D 8f'L 8dd
. 8f' 8ddJ
8r 8cc 8ee'L
8d 8dd 8ff'J
=3 =3
4.A 8ff 8aaL
. 8ee 8ggJ
. 8dd 8ff'L
8G 8cc 8ee'J
=4 =4
4F 8gg 8bbL
. 8ff 8aaJ
8G#' 8ee 8gg'L
8G' 8dd 8ff'J
=5 =5
4A 16cc 16eeLL
. 16dd
. 16ee
. 16ffJJ
4r 8cc 8ee'L
. 8a'J
=6 =6
8F' 8a 8dd'L
8F' 8a 8dd'J
8E' 8cc 8ee'L
8D' 8dd 8ff'J
=7 =7
4.AA 8ff 8aaL
. 8ee 8ggJ
. 8dd 8ff'L
8g' 8cc 8ee'J
== ==
*- *-
Little note about this last one - I'm not sure how to have a connected barline at the beginning of the tune. Also I didn't get to test this one with the L's and J's in there - those are for beams and I think I've got it right, but I didn't get to test.