Your First Score

Create a file called hello.pta:

score {
  title "Hello Partitura"
  composer "You"

  part "Piano" {
    measure 1 {
      time 4/4
      key c-major

      note c4 quarter
      note d4 quarter
      note e4 quarter
      note f4 quarter
    }

    measure 2 {
      note g4 quarter
      note a4 quarter
      note b4 quarter
      note c5 quarter
    }
  }
}

Compile to MusicXML

partitura compile hello.pta -o hello.musicxml

Open hello.musicxml in any MusicXML-compatible viewer (MuseScore, Finale, Sibelius).

Convert MusicXML to .pta

partitura convert hello.musicxml -o hello.pta

Validate

partitura validate hello.pta

Format

partitura format hello.pta

Export to PDF, PNG, MP3, WAV, MIDI

partitura export hello.pta -o hello.pdf
partitura export hello.pta -o hello.mp3
partitura export hello.pta -o hello.mid

Requires MuseScore installed (partitura doctor to check).

Next Steps