• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdemid
 

libtdemid

Public Member Functions | List of all members
NoteArray Class Reference

#include <notearray.h>

Public Member Functions

 NoteArray (void)
 
 ~NoteArray ()
 
void at (ulong pos, ulong ms, int chn, int cmd, int note)
 
void at (ulong pos, noteCmd s)
 
noteCmd at (int pos)
 
void add (ulong ms, int chn, int cmd, int note)
 
void iteratorBegin (void)
 
noteCmd * get (void)
 
void next (void)
 
void moveIteratorTo (ulong ms, int *pgm=NULL)
 

Detailed Description

Holds a resizeable array of note on/off and patch change events.

It can increase it size, but it doesn't decreases (until destruction :-) )

Stores an array of note on/off events

Version
0.9.5 17/01/2000
Author
Antonio Larrosa Jimenez larro.nosp@m.sa@k.nosp@m.de.or.nosp@m.g

Definition at line 38 of file notearray.h.

Constructor & Destructor Documentation

◆ NoteArray()

NoteArray::NoteArray ( void  )

Constructor.

Initializes internal variables.

Definition at line 30 of file notearray.cpp.

◆ ~NoteArray()

NoteArray::~NoteArray ( )

Destructor.

Definition at line 37 of file notearray.cpp.

Member Function Documentation

◆ add()

void NoteArray::add ( ulong  ms,
int  chn,
int  cmd,
int  note 
)

Adds a note/patch event at a given millisecond.

Note: This method always appends at the end of the list.

Definition at line 80 of file notearray.cpp.

◆ at() [1/3]

NoteArray::noteCmd NoteArray::at ( int  pos)

Returns the note event at a given position.

Definition at line 75 of file notearray.cpp.

◆ at() [2/3]

void NoteArray::at ( ulong  pos,
noteCmd  s 
)

A convenience function, which differs from the above in the parameters it accepts.

Definition at line 66 of file notearray.cpp.

◆ at() [3/3]

void NoteArray::at ( ulong  pos,
ulong  ms,
int  chn,
int  cmd,
int  note 
)

Adds (or modifies) an event in the given position .

Note that this has nothing to do with what is being played, this just modifies an internal array.

Definition at line 57 of file notearray.cpp.

◆ get()

noteCmd * NoteArray::get ( void  )
inline

Get the command currently pointed to by the iterator.

Definition at line 131 of file notearray.h.

◆ iteratorBegin()

void NoteArray::iteratorBegin ( void  )
inline

Initializes the iterator.

See also
get()
next()

Definition at line 126 of file notearray.h.

◆ moveIteratorTo()

void NoteArray::moveIteratorTo ( ulong  ms,
int *  pgm = NULL 
)

Calls next() until the next event is over ms milliseconds and puts in pgm[16] the instruments used at this moment.

Definition at line 105 of file notearray.cpp.

◆ next()

void NoteArray::next ( void  )

Advances the iterator to the next position.

Definition at line 99 of file notearray.cpp.


The documentation for this class was generated from the following files:
  • notearray.h
  • notearray.cpp

libtdemid

Skip menu "libtdemid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdemid

Skip menu "libtdemid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.9.4
This website is maintained by Timothy Pearson.