[
  {
    "type": "measure-context",
    "key": {
      "signature": "C",
      "number": 1,
      "mode": "major"
    },
    "meter": {
      "beats": 4,
      "beat-type": 4,
      "beat-divisions": 4,
      "grouping": [1, 1, 1, 1]
    },
    "tempo": {
      "mm": 112,
      "beat-unit": "quarter",
      "directive": "Allegretto"
    }
  },
  {
    "type": "measure",
    "measure_number": 1,
    "notes": [
      {
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation":"C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 16,
        "type": "whole",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          },
          {
            "tie": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "start_level": "p",
              "end_level": "f",
              "start_event": {
                "measure": 1,
                "beat": 1
              },
              "end_event": {
                "measure": 2,
                "beat": 4,
                "actually": "at end of bar 2 - how to represent this?"
              },
              "curve": "exponential"
            }
          }
        ],
        "phrase_role":"opening",
        "tension":0.3,
        "gesture":"establishing",
        "dynamic_direction":"increasing"
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 2,
    "notes": [
      {
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation":"C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 8,
        "type": "half",
        "notations": [
          {
            "slur": {
              "type": "continue",
              "number": 1
            }
          },
          {
            "tie": {
              "type": "stop",
              "number": 1
            }
          },
          { 
            "dynamic_gesture": {
              "type": "crescendo",
              "continue": true
            }
          }

        ]
      },
      {
        "pitch": {
          "step": "B",
          "octave": 4,
          "notation":"B4",
          "midi":71,
          "frequency":493.88
        },
        "voice":1,
        "duration": 8,
        "type": "half",
        "notations": [
          {
            "slur": {
              "type": "stop",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "end_event": {
                "measure": 2,
                "beat": 4,
                "actually": "at end of bar 2 - how to represent this?"
              }
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 3,
    "notes": [
      {
        "pitch": {
          "step": "G",
          "octave": 4,
          "notation":"G4",
          "midi":67,
          "frequency":391.995
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "static",
              "level": "mf"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "A",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Ab4",
          "midi":68,
          "frequency":415.305
        },
        "voice":1,
        "duration": 8,
        "type": "half",
        "accidental":"flat",
        "stem":"up"
      },
      {
        "pitch": {
          "step": "F",
          "octave": 4,
          "notation":"F4",
          "midi":65,
          "frequency":349.228
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "stem":"up",
        "notations":[
          {
            "slur":{
              "type":"stop",
              "number":1
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 4,
    "notes": [
      {
        "pitch": {
          "step": "E",
          "octave": 4,
          "notation":"E4",
          "midi":64,
          "frequency":329.63
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "start_level": "mf",
              "end_level": "p",
              "start_event": {
                "measure": 4,
                "beat": 1
              },
              "end_event": {
                "measure": 4,
                "beat": 2
              },
              "curve": "exponential"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "D",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"D4",
          "midi":62,
          "frequency":293.66
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations": [
          {
            "slur": {
              "type": "stop",
              "number": 1
            },
            "dynamic_gesture": {
              "type": "diminuendo",
              "continue": true
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 4,
          "notation":"C4",
          "midi":60,
          "frequency":261.63
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "tie": {
              "type": "start",
              "number": 1
            },
            "dynamic_gesture": {
              "type": "diminuendo",
              "end_event": {
                "measure": 4,
                "beat": 2,
                "actually": "at end of beat 1 - landing on piano on beat 2"
              }
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 4,
          "notation":"C4",
          "midi":60,
          "frequency":261.63
        },
        "voice":1,
        "duration": 8,
        "type": "half",
        "notations": [
          {
            "tie": {
              "type": "stop",
              "number": 1
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 5,
    "notes": [
      {
        "pitch": {},
        "voice":1,
        "duration": 16,
        "type": "whole",
        "notations": []
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 6,
    "notes": [
      {
        "pitch": {
          "step": "C",
          "octave": 4,
          "notation":"C4",
          "midi":60,
          "frequency":261.63
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            },
            "dynamic_gesture": {
              "type": "static",
              "level": "mf"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "F",
          "octave": 4,
          "notation":"F4",
          "midi":65,
          "frequency":349.228
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "slur": {
              "type": "stop",
              "number": 1
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "E",
          "octave": 4,
          "notation":"E4",
          "midi":64,
          "frequency":329.63
        },
        "voice":1,
        "duration": 4,
        "type": "quarter"
      },
      {
        "pitch": {
          "step": "B",
          "octave": 4,
          "notation":"B4",
          "midi":71,
          "frequency":493.88
        },
        "voice":1,
        "duration": 4,
        "type": "quarter"
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 7,
    "notes": [
      {
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation": "C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 2,
        "type": "eight",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "start_level": "mf",
              "end_level": "f",
              "start_event": {
                "measure": 7,
                "beat": 1
              },
              "end_event": {
                "measure": 8,
                "beat": 1,
                "actually": "at end of bar 2 - how to represent this?",
                "idea": "add division to start_event and end_event"
              },
              "curve": "exponential"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "D",
          "accidental": "flat",
          "alter": -1,
          "octave": 5,
          "notation":"Db5",
          "midi": Fill in this??,
          "frequency": Fill in this??
        },
        "voice":1,
        "duration":2,
        "type":"eight",
        "notations":[
          {
            "slur":{
              "type":"stop",
              "number":1
            }
          },
          { 
            "dynamic_gesture": {
              "type": "crescendo",
              "continue": true
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation": "C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notation": [
          {
            "tie": {
              "type": "start",
              "number": 1
            }
          },
          { 
            "dynamic_gesture": {
              "type": "crescendo",
              "continue": true
            }
          }
        ]
      },
      {    
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation": "C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notation": [
          {
            "tie": {
              "type": "stop",
              "number": 1
            }
          },
          { 
            "dynamic_gesture": {
              "type": "crescendo",
              "continue": true
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "A",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Ab4",
          "midi":68,
          "frequency":415.305
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "end_event": {
                "measure": 7,
                "beat": 2,
                "actually": "at end of bar 2 - how to represent this?",
                "idea": "add division to start_event and end_event",
                "also": "I am going to mark this in the next measure beat 1 as well - undecided which method to use."
              }
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 8,
    "notes": [
      {
        "pitch": {
          "step": "F",
          "octave": 5,
          "notation":"F5",
          "midi":??,
          "frequency":??
        },
        "voice":1,
        "duration": 8,
        "type": "half",
        "notations": [
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "end_event": {
                "measure": 8,
                "beat":  1,
                "actually": "at end of bar 2 - how to represent this?",
                "idea": "add division to start_event and end_event",
                "also": "Should this be here instead - undecided which method to use. It is where I have the new forte marking."
              }
            }
          },
          {
            "dynamic_gesture": {
              "type": "static",
              "level": "f"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "D",
          "accidental": "flat",
          "alter": -1,
          "octave": 5,
          "notation":"Db5",
          "midi": Fill in this??,
          "frequency": Fill in this??
        },
        "voice":1,
        "duration":2,
        "type":"eight"
      },
      {
        "pitch": {
          "step": "E",
          "octave": 5,
          "notation":"E5",
          "midi": Fill in this??,
          "frequency": Fill in this??
        },
        "voice":1,
        "duration":2,
        "type":"eight"
      },
      {
        "pitch": {
          "step": "B",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Bb4",
          "midi":??,
          "frequency":??
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "tie": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "start_level": "f",
              "end_level": "mf",
              "start_event": {
                "measure": 8,
                "beat": 4
              },
              "end_event": {
                "measure": 9,
                "beat": 4
              },
              "curve": "exponential"
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 9,
    "notes": [
      {
        "pitch": {
          "step": "B",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Bb4",
          "midi":??,
          "frequency":??
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "tie": {
              "type": "stop",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "continue": true
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 5,
          "notation":"C5",
          "midi":72,
          "frequency":523.25
        },
        "voice":1,
        "duration": 12,
        "type": "dotted-half",
        "notations": [
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "end_event": {
                "measure": 9,
                "beat": 4,
                "division": 4
              }
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 10,
    "notes": [
      {
        "pitch": {
          "step": "A",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Ab4",
          "midi":68,
          "frequency":415.305
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations":[
          {
            "slur":{
              "type":"start",
              "number":1
            }
          },
          {
            "dynamic_gesture": {
              "type": "static",
              "level": "mf"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "G",
          "octave": 4,
          "notation":"G4",
          "midi":67,
          "frequency":391.995
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations":[
          {
            "slur":{
              "type":"stop",
              "number":1
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "A",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"Ab4",
          "midi":68,
          "frequency":415.305
        },
        "voice":1,
        "duration": 2,
        "type": "eighth"
      },
      {
        "pitch": {
          "step": "G",
          "octave": 4,
          "notation":"G4",
          "midi":67,
          "frequency":391.995
        },
        "voice":1,
        "duration": 2,
        "type": "eighth"
      },
      {
        "pitch": {
          "step": "F",
          "octave": 4,
          "notation":"F4",
          "midi":65,
          "frequency":349.228
        },
        "voice":1,
        "duration": 8,
        "type": "half"
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 11,
    "notes": [
      {
        "pitch": {
          "step": "E",
          "octave": 4,
          "notation":"E4",
          "midi":64,
          "frequency":329.63
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "D",
          "accidental": "flat",
          "alter": -1,
          "octave": 4,
          "notation":"D4",
          "midi":62,
          "frequency":293.66
        },
        "voice":1,
        "duration": 2,
        "type": "eighth",
        "notations": [
          {
            "slur": {
              "type": "stop",
              "number": 1
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 4,
          "notation":"C4",
          "midi":60,
          "frequency":261.63
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "slur": {
              "type": "start",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "start_level": "mf",
              "end_level": "p",
              "start_event": {
                "measure": 11,
                "beat": 2
              },
              "end_event": {
                "measure": 12,
                "beat": 1
              },
              "curve": "exponential"
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "B",
          "octave": 3,
          "notation":"B3",
          "midi":59,
          "frequency": ??
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "slur": {
              "type": "stop",
              "number": 1
            }
          },
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "continue": true
            }
          }
        ]
      },
      {
        "pitch": {
          "step": "C",
          "octave": 4,
          "notation":"C4",
          "midi":60,
          "frequency":261.63
        },
        "voice":1,
        "duration": 4,
        "type": "quarter",
        "notations": [
          {
            "dynamic_gesture": {
              "type": "diminuendo",
              "continue": true
            }
          }
        ]
      }
    ]
  },
  {
    "type": "measure",
    "measure_number": 12,
    "notes": [
      {
        "pitch": {
          "step": "F",
          "octave": 3,
          "notation":"F3",
          "midi": ??,
          "frequency": ???
        },
        "voice":1,
        "duration": 12,
        "type": "dotted-half",
        "notations": [
          {
            "dynamic_gesture": {
              "type": "crescendo",
              "end_event": {
                "measure": 12,
                "beat": 1,
                "actually": "at end of bar 11 - how to represent this?"
              }
            }
          }
        ]
      }
    ]
  }
]