MidiMountain 0.4.0


Units
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TMCList

Unit

MCList

Declaration

type TMCList = class

Description

MIDI Lists
This class holds lists based on time offsets. (for TMCEvent, TMCMarker, TMCLyric,...)

Methods

Overview

Public constructor Create( aItemClass: TItemClass );
Public destructor Destroy; Override;
Public function Add( aOwner: TMCBase ): TMCItem;
Public function AddOrdered( aOwner: TMCBase; aOffset: TMidiOffset ):TMCItem;
Protected procedure Changed( aNewOffset: TMidiOffset; aMidiItem: TMCItem );
Public procedure Clear;
Public function GetBeforeOffset( aOffset: TMidiOffset ):TMCItem;
Public function GetMaxOffset: TMidiOffset;
Public procedure Grab( aList: TMCList );
Public function HasItemAtZero: boolean;
Public procedure InsertOrdered( aOffset: TMidiOffset; aMCItem: TMCItem );
Protected procedure RebuildIndex;
Public procedure Remove( aMCItem: TMCItem );
Public procedure Sort;

Description

Public constructor Create( aItemClass: TItemClass );

create a list with a certain item class

Public destructor Destroy; Override;

whack the class and all its items

Public function Add( aOwner: TMCBase ): TMCItem;

add a new MIDI class item

Public function AddOrdered( aOwner: TMCBase; aOffset: TMidiOffset ):TMCItem;

add a new MIDI class item in order of offsets

Protected procedure Changed( aNewOffset: TMidiOffset; aMidiItem: TMCItem );

notify the list that the item has changed

Public procedure Clear;

clear the list;

Public function GetBeforeOffset( aOffset: TMidiOffset ):TMCItem;

get the item right before a given offset

Public function GetMaxOffset: TMidiOffset;

get highest offset MIDI information is on

Public procedure Grab( aList: TMCList );

grap all the entries of a given list and create links to them

Public function HasItemAtZero: boolean;

check if the list has an item at the position 0

Public procedure InsertOrdered( aOffset: TMidiOffset; aMCItem: TMCItem );

insert an existing item in the correct position

Protected procedure RebuildIndex;

rebuild the index to access by index

Public procedure Remove( aMCItem: TMCItem );

remove MIDI class item even if added multiple times

Public procedure Sort;

sort the items by offset

Properties

Overview

Public property Clearing: boolean;
Public property Count: longint;
Public property Items[ Index: integer ]: TMCItem;
Public property KeepOrdered: boolean;

Description

Public property Clearing: boolean;

flag showing that all items are getting removed

Public property Count: longint;

the count of the list

Public property Items[ Index: integer ]: TMCItem;

list of TMCItems

Public property KeepOrdered: boolean;

keep the list ordered when offsets of items change


MidiMountain 0.4.0 1999-2002 Adrian Meyer, developed with Delphi and Kylix


Generated by DIPasDoc 0.8.0 on Wed 29 Oct 2003 21:59:09