Advertisement
Guest User

Untitled

a guest
May 4th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. /**
  2. * Returns a string uniquely defining this music.
  3. *
  4. * Each note will be represented according to its ABC notation representation including its letter, any accidentals,
  5. * and octave (see Pitch.toString). This will be immediately followed by its duration (Double string representation)
  6. * Each rest will be represented by the letter 'z' followed by its duration in Double representation
  7. * Each pair of Music instances played at the same time will be represented by the concatenation
  8. * '[' + firstMusic.toString() + ' ' + secondMusic.toString() + ']'
  9. * Each pair of Music instances played immediately after one another will be represented by the concatenation
  10. * firstMusic.toString() + '+' + secondMusic.toString()
  11. *
  12. * The binary groupings and ordering of the above will preserve the structure from the Music's construction via
  13. * static factory methods.
  14. *
  15. * @return a string uniquely defining this music
  16. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement