code: public Part[] toPartsArray()
    {
      Vector parts = getPartsAsRepeatedOnceVector();
      Part[] partsArray = new Part[parts.size()];
      for (int i=0; i<parts.size(); i++)
        partsArray[i] = (Part)parts.elementAt(i);
      return partsArray;
    }
docs: Returns this multipart as an array of singles parts. The playing of the
  multi part would sound the same as the playing of the array of parts.
  @return An array of singles parts that would sound the same as the
  playing of this multipart.