Check boundries when transposing clips

and move transpose function to NoteVector
This commit is contained in:
allejok96
2022-05-24 21:35:54 +02:00
parent 0861d30616
commit d56c0fe4bd
6 changed files with 92 additions and 12 deletions

View File

@@ -72,7 +72,6 @@ public:
// Split the list of notes on the given position
void splitNotes(NoteVector notes, TimePos pos);
void transpose(int semitones);
// clip-type stuff
inline MidiClipTypes type() const

View File

@@ -244,7 +244,14 @@ private:
};
typedef QVector<Note *> NoteVector;
class NoteVector: public QVector<Note*>
{
public:
bool getBounds(TimePos& start, TimePos& end, int& lower, int& upper) const;
void transpose(int semitones) const;
};
#endif