Lua bindings for libardour transient-analysis
[ardour.git] / libs / ardour / ardour / region.h
index 85e0442a41a92c8a9fe09fa6725a74d50ee273e0..f51f54b00cbf2651a5a383def4fcf7cae4a82cdb 100644 (file)
@@ -326,6 +326,13 @@ class LIBARDOUR_API Region
                // no transients, but its OK
        }
 
+       /* wrapper to the above for easy access throug Lua */
+       AnalysisFeatureList transients () {
+               AnalysisFeatureList rv;
+               get_transients (rv);
+               return rv;
+       }
+
        bool has_transients () const;
 
        virtual int separate_by_channel (ARDOUR::Session&,