+struct MidiNoteSelection : std::list<MidiCutBuffer*> {
+public:
+ const_iterator
+ get_nth(size_t nth) const {
+ size_t count = 0;
+ for (const_iterator m = begin(); m != end(); ++m) {
+ if (count++ == nth) {
+ return m;
+ }
+ }
+ return end();
+ }
+};