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

libtdemid

  • libtdemid
notearray.h
1/* notearray.h - NoteArray class, which holds an array of notes
2 This file is part of LibKMid 0.9.5
3 Copyright (C) 1998,99,2000 Antonio Larrosa Jimenez
4 LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libtdemid.html
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20
21 Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
22
23***************************************************************************/
24#ifndef NOTEARRAY_H
25#define NOTEARRAY_H
26
27#include <libtdemid/dattypes.h>
28#include <tdelibs_export.h>
29
38class KMID_EXPORT NoteArray
39{
40 private:
41 class NoteArrayPrivate;
42 NoteArrayPrivate *d;
43
44 public:
45 struct noteCmd {
49 ulong ms;
50
54 int chn;
55
59 int cmd;
60
66 int note;
67 };
68
69 private:
70 noteCmd *data;
71 ulong totalAllocated;
72
73 ulong last;
74 noteCmd *lastAdded;
75
80 noteCmd *it;
81
82 noteCmd *pointerTo(ulong pos);
83
84 public:
88 NoteArray(void);
92 ~NoteArray();
93
100 void at(ulong pos, ulong ms,int chn,int cmd,int note);
101
106 void at(ulong pos, noteCmd s);
107
111 noteCmd at(int pos);
112
118 void add(ulong ms,int chn,int cmd,int note);
119
126 void iteratorBegin(void) { it=data; }
127
131 noteCmd *get(void) { return it; }
132
136 void next(void);
137
142 void moveIteratorTo(ulong ms,int *pgm=NULL);
143};
144
145#endif
NoteArray
Holds a resizeable array of note on/off and patch change events.
Definition: notearray.h:39
NoteArray::iteratorBegin
void iteratorBegin(void)
Initializes the iterator.
Definition: notearray.h:126
NoteArray::get
noteCmd * get(void)
Get the command currently pointed to by the iterator.
Definition: notearray.h:131

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.