Check boundries when transposing clips
and move transpose function to NoteVector
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user