class Part

A Part is thought of as a container for events (like Notes, MasterEvents, etc. More...

Definition#include <part.h>
InheritsCompound [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Members


Detailed Description

A Part is thought of as a container for events (like Notes, MasterEvents, etc. An Event is an Atom which has a position and a length). These events have to appear ordered in their position property. More than one event at the same position are admitted.

PrPart * _pr

_pr

[protected]

 Part ()

Part

* The Part's Constructors * -----------------------

 Part (const Part&)

Part

 Part (Track*)

Part

 ~Part ()

~Part

Position  start ()

start

[const]

* Manipulationg the Part's Properties * -----------------------------------

Position  start (Event * ev)

start

[const]

long  end (Event * ev)

end

[const]

int  key ()

key

[const]

int  clef ()

clef

[const]

int  meter0 ()

meter0

int  meter1 ()

meter1

int  program ()

program

[const]

Track *  track ()

track

[const]

void  setStart (Position)

setStart

void  setStart (Event * ev, Position pos)

setStart

void  setKey (int key)

setKey

void  setClef (int clef)

setClef

void  setMeter (int numerator,int denominator)

setMeter

void  setMeter0 (int numerator)

setMeter0

void  setMeter1 (int denominator)

setMeter1

void  setProgram (int program)

setProgram

void  setTrack (Track *)

setTrack

bool  eventEndsAt (Event * ev, long p)

eventEndsAt

bool  eventStartsAt (Event * ev, long p)

eventStartsAt

bool  eventStartsAfter (Event * ev, long p)

eventStartsAfter

PrPart *  presentation ()

presentation

[const]

This funktion returns a pointer to its presentation

void  hide ()

hide

Reimplemented from Compound.

void  show ()

show

Reimplemented from Compound.

Event *  grabEvent (Position p)

grabEvent

* Other Functionality * -------------------

Reference *  makeRefs (int lowPitch, int highPitch, long left, long right)

makeRefs

returns a list of references containing events between left and right, where notes also have their pitch to be between lowPitch and highPitch

void  reorder ()

reorder

void  partCopy ()

partCopy

Part *  partGlue ()

partGlue

glues two parts. Returns the 'lost' part which should not be deleted if the operation is to be undone

Event *  partSplit (Position p)

partSplit

splits the part at position p and returns the event after p (or null)

void  add (Element *)

add

[virtual]

this add method differs from the compounds add method by inserting the new element not at the end of the part, but at the correct position

Reimplemented from Compound.

Symbol *  setSymbol (Position p, int sym, int off, int par=-1)

setSymbol

ostream &  print (int,ostream&)

print

[const virtual]

* Virtual operations, each element has to implement * -------------------------------------------------

Reimplemented from Compound.

void  flush (const char*)

flush

[const virtual]

Reimplemented from Compound.

Element *  copy ()

copy

[const virtual]

Reimplemented from Compound.

Element *  ghostcopy ()

ghostcopy

Part *  ghostOf ()

ghostOf

[const]

int  ghosts ()

ghosts

[const]

void  incGhosts ()

incGhosts

void  decGhosts ()

decGhosts

Element *  load (char*,ifstream*&,Element*)

load

[static]


Generated by: wuerthne on al on Sun Jan 6 22:32:42 2002, using kdoc 2.0a53.