class SongIterator


Definition#include <songIterator.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

 SongIterator (const SongIterator& i)

SongIterator

copy constructor

 SongIterator (Song * song, Position left = 0, Position right = 0)

SongIterator

constructor for an iterator that moves through the song from loft to rigt

void  init (Position left = 0, Position right = 0)

init

initializes the interator to the positions left and right

bool  operator!= (const SongIterator& i)

operator!=

[const]

comparison

bool  operator== (const SongIterator& i)

operator==

[const]

comparison

bool  done (int i=-1)

done

for i >= number of tracks: returns always true for i = 0..number of tracks-1: returns true if the i'th track has no more events to iterate for i =- 1: returns true if none of the tracks has any more events to iterate

Position  start (int i)

start

returns the start position of the i'th part or 0

bool  startsAt (int i, long p)

startsAt

returns true if the current event of track i starts at position p

Element *  operator[] (int n)

operator[]

returns the current event of the n'th track

void  increment (int i)

increment

increments the i'th track

Part *  change (int)

change

returns the part in case the track has switched to a new part during the current iteration, 0 otherwise

Part *  part (int)

part

Track *  track (int i)

track

returns the i'th track

int  channel (int i)

channel

returns the channel of the i'th track

int  program (int i)

program

returns the program of the i'th track

bool  mute (int)

mute

returns the mute-flag of the i'th track

Position  lastPosition ()

lastPosition

returns the last position within the song

Position  endPosition ()

endPosition

returns the end of the song

Vector  chordAt (Position p)

chordAt

returns a vector with references to the notes at the position p

void  activate (int i)

activate

activates the event of the i'th track: puts it on a stack to remember to remove it later...

bool  activeEndsAt (long p)

activeEndsAt

tests if current activated note ends at position p

Note *  activeNote ()

activeNote

returns active note

int  activeChannel ()

activeChannel

returns active channel

int  activeTrack ()

activeTrack

returns active track

void  cutActive ()

cutActive

removes note from the stack

bool  active ()

active

returns true if there are still active notes


Generated by: wuerthne on al on Sun Mar 3 01:36:08 2002, using kdoc 2.0a53.