~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/base/SegmentPerformanceHelper.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    Rosegarden
6
6
    A sequencer and musical notation editor.
7
7
 
8
 
    This program is Copyright 2000-2007
 
8
    This program is Copyright 2000-2008
9
9
        Guillaume Laurent   <glaurent@telegraph-road.org>,
10
10
        Chris Cannam        <cannam@all-day-breakfast.com>,
11
11
        Richard Bown        <bownie@bownie.com>
47
47
    iteratorcontainer getTiedNotes(iterator i);
48
48
 
49
49
    /**
 
50
     * Returns two sequences of iterators pointing to the note events
 
51
     * that are grace notes, or host notes for grace notes, associated
 
52
     * with the given event, which is itself either a grace note or a
 
53
     * host note for a grace note.  The grace note iterators are
 
54
     * returned in the graceNotes sequence, and the host note
 
55
     * iterators in hostNotes.  isHostNote is set to true if the
 
56
     * given event is a host note, false otherwise.
 
57
     * 
 
58
     * If the given event is not a grace note, is a grace note with no
 
59
     * host note, or is a potential host note without any grace notes,
 
60
     * the sequences will both be empty and the function will return
 
61
     * false.
 
62
     */
 
63
    bool getGraceAndHostNotes(iterator i,
 
64
                              iteratorcontainer &graceNotes,
 
65
                              iteratorcontainer &hostNotes,
 
66
                              bool &isHostNote);
 
67
 
 
68
    /**
50
69
     * Returns the absolute time of the note event pointed to by i.
51
70
     */
52
71
    timeT getSoundingAbsoluteTime(iterator i);
89
108
     * any tempo changes occurring during the event at i.
90
109
     */
91
110
    RealTime getRealSoundingDuration(iterator i);
 
111
 
 
112
    /**
 
113
     * Return a sounding duration (estimated) and start time for the
 
114
     * note event pointed to by i.  If host is true, i is expected to
 
115
     * be the "host" note for one or more grace notes; if host is
 
116
     * false, i is expected to point to a grace note.  If the relevant
 
117
     * expectation is not met, this function returns false.  Otherwise
 
118
     * the sounding time and duration are returned through t and d and
 
119
     * the function returns true.
 
120
     */
 
121
    bool getGraceNoteTimeAndDuration(bool host, iterator i, timeT &t, timeT &d);
92
122
};
93
123
 
94
124
}