From cb218f28271613cf87f95e0f8fccc3ef356c43af Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 30 Dec 2013 14:22:37 +0100 Subject: [PATCH] taglist: add a tag for midi base note numbers Audio files containing sampled instruments can have metadata describing the note that was played on the instrument. --- gst/gsttaglist.c | 3 +++ gst/gsttaglist.h | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index bab49a5..f8f8f04 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -395,6 +395,9 @@ _priv_gst_tag_initialize (void) _("interpreted-by"), _("Information about the people behind a remix and similar " "interpretations"), gst_tag_merge_strings_with_comma); + gst_tag_register_static (GST_TAG_MIDI_BASE_NOTE, GST_TAG_FLAG_META, + G_TYPE_UINT, + _("midi-base-note"), _("Midi note number of the audio track."), NULL); } /** diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index b5e683e..138be8d 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -1060,6 +1060,16 @@ gst_tag_list_copy (const GstTagList * taglist) * Since: 1.2 */ #define GST_TAG_INTERPRETED_BY "interpreted-by" +/** + * GST_TAG_MIDI_BASE_NOTE: + * + * Midi note number + * of the audio track. This is useful for sample instruments and in particular + * for multi-samples. + * + * Since: 1.2 + */ +#define GST_TAG_MIDI_BASE_NOTE "midi-base-note" G_END_DECLS -- 2.7.4