Class SongPart

java.lang.Object
  extended by SongPart

public class SongPart
extends Object

Class that represents a part of a song

Author:
Mark Guzdial, Barb Ericson

Constructor Summary
SongPart(int instrument, SongNode startNode)
          Construct a SongPart
 
Method Summary
 jm.music.data.Phrase collect()
          Collect parts of this SongPart
 jm.music.data.Part getMyPart()
          Method to get the part
 void show()
          Collect all notes in this SongPart and open it up for viewing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SongPart

public SongPart(int instrument,
                SongNode startNode)
Construct a SongPart

Parameters:
instrument - MIDI instrument (program)
startNode - where the song list starts from
Method Detail

getMyPart

public jm.music.data.Part getMyPart()
Method to get the part


collect

public jm.music.data.Phrase collect()
Collect parts of this SongPart

Returns:
all the notes in a phrase

show

public void show()
Collect all notes in this SongPart and open it up for viewing.