changeset 599:dc3632590d01

Add sampleType and sampleRate to rdf-read output descriptor
author Chris Cannam
date Wed, 18 Jan 2017 16:21:04 +0000
parents fb845664b699
children 956074cc1f7c
files .hgsubstate src/may/vamp/vamprdf.yeti
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsubstate	Wed Nov 16 09:13:31 2016 +0000
+++ b/.hgsubstate	Wed Jan 18 16:21:04 2017 +0000
@@ -1,1 +1,1 @@
-ae17e8817b04eb97f6d9918c866e4fdd16ebbf40 ext
+6a8eec962ffaafbcf3945a29d6985bcaac36671a ext
--- a/src/may/vamp/vamprdf.yeti	Wed Nov 16 09:13:31 2016 +0000
+++ b/src/may/vamp/vamprdf.yeti	Wed Jan 18 16:21:04 2017 +0000
@@ -216,6 +216,14 @@
             then Known (nprop "vamp:bin_count")
             else Unknown ()
             fi,
+        sampleType = iprop "vamp:sample_type",
+        sampleRate =
+            case tprop "vamp:sample_rate" of
+            "": Unknown();
+            sr: try Known (number sr)
+                catch Exception _: Unknown ()
+                yrt;
+            esac,
         computes =
             case iprop "vamp:computes_event_type" of
             IRI iri: Event iri;