MuseScore  3.4
Music composition and notation
velo.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2009-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 __VELO_H__
14 #define __VELO_H__
15 
21 namespace Ms {
22 
23 //---------------------------------------------------------
26 //---------------------------------------------------------
27 
28 enum class VeloType : char { FIX, RAMP };
29 
30 struct VeloEvent {
32  char val;
33  VeloEvent() {}
34  VeloEvent(VeloType t, char v) : type(t), val(v) {}
35  };
36 
37 //---------------------------------------------------------
40 //---------------------------------------------------------
41 
42 class VeloList : public QMap<int, VeloEvent> {
43  public:
44  VeloList() {}
45  int velo(int tick) const;
46  int nextVelo(int tick) const;
47  void setVelo(int tick, VeloEvent velo);
48  void setVelo(int tick, int velocity);
49  };
50 
51 
52 } // namespace Ms
53 #endif
54 
VeloList List of note velocity changes.
Definition: velo.h:42
VeloList()
Definition: velo.h:44
VeloType
VeloEvent item in VeloList.
Definition: velo.h:28
Definition: velo.h:30
char val
Definition: velo.h:32
Definition: aeolus.cpp:26
VeloType type
Definition: velo.h:31
VeloEvent(VeloType t, char v)
Definition: velo.h:34
VeloEvent()
Definition: velo.h:33