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

« back to all changes in this revision

Viewing changes to src/base/NotationTypes.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>
426
426
        return k.m_name == m_name;
427
427
    }
428
428
 
 
429
    bool operator!=(const Key &k) const {
 
430
        return !(k == *this);
 
431
    }
 
432
 
429
433
    /**
430
434
     * Test whether the given event is a valid Key event.
431
435
     */
684
688
    static const std::string Tempo;
685
689
    static const std::string LocalTempo;
686
690
    static const std::string Annotation;
687
 
    static const std::string LilypondDirective;
 
691
    static const std::string LilyPondDirective;
688
692
 
689
693
    /**
690
 
     * Special Lilypond directives
 
694
     * Special LilyPond directives
691
695
     */
692
696
    static const std::string Segno;       // print segno here
693
697
    static const std::string Coda;        // print coda sign here
727
731
    static std::vector<std::string> getUserStyles();
728
732
 
729
733
    /**
730
 
     * Return a list of available special Lilypond directives
 
734
     * Return a list of available special LilyPond directives
731
735
     */
732
 
    static std::vector<std::string> getLilypondDirectives();
 
736
    static std::vector<std::string> getLilyPondDirectives();
733
737
 
734
738
    /// Returned event is on heap; caller takes responsibility for ownership
735
739
    Event *getAsEvent(timeT absoluteTime) const;
889
893
     * conventional 5-line staff.  0 is the bottom line, 1 the first
890
894
     * space, etc., so for example middle-C in the treble clef would
891
895
     * return -2.
 
896
     *
 
897
     * Chooses the most likely accidental for this pitch in this key.
892
898
     */
893
899
    int getHeightOnStaff(const Clef &clef, const Key &key) const;
894
900
 
895
901
    /**
 
902
     * Return the height at which this pitch should display on a
 
903
     * conventional 5-line staff.  0 is the bottom line, 1 the first
 
904
     * space, etc., so for example middle-C in the treble clef would
 
905
     * return -2.
 
906
     *
 
907
     * Chooses the accidental specified by the 'useSharps' parameter
 
908
     */
 
909
    int getHeightOnStaff(const Clef &clef, bool useSharps) const;
 
910
 
 
911
    /**
896
912
     * Return the octave containing this pitch.  The octaveBase argument
897
913
     * specifies the octave containing MIDI pitch 0; middle-C is in octave
898
914
     * octaveBase + 5.