MuseScore  3.4
Music composition and notation
pitchvalue.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2010-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __PITCHVALUE_H__
14 #define __PITCHVALUE_H__
15 
16 namespace Ms {
17 
18 //---------------------------------------------------------
19 // PitchValue
20 // used in class Bend, BendCanvas
21 //
22 // - time is 0 - 60 for 0-100% of the chord duration the
23 // bend is attached to
24 // - pitch is 100 for one semitone
25 //---------------------------------------------------------
26 
27 struct PitchValue {
28  int time;
29  int pitch;
30  bool vibrato;
32  PitchValue(int a, int b, bool c = false) : time(a), pitch(b), vibrato(c) {}
33  inline bool operator==(const PitchValue& pv) const {
34  return (pv.time == time && pv.pitch == pitch && pv.vibrato == vibrato);
35  }
36  };
37 
38 
39 } // namespace Ms
40 #endif
41 
PitchValue(int a, int b, bool c=false)
Definition: pitchvalue.h:32
PitchValue()
Definition: pitchvalue.h:31
int time
Definition: pitchvalue.h:28
bool vibrato
Definition: pitchvalue.h:30
int pitch
Definition: pitchvalue.h:29
Definition: aeolus.cpp:26
Definition: pitchvalue.h:27
bool operator==(const PitchValue &pv) const
Definition: pitchvalue.h:33