Get meta data of a tracker module such as its "type", "title" and "tracker". Use get_metadata_keys() to get the available keys for a module object.

get_metadata(mod, key = "title", ...)

get_metadata_keys(mod, ...)

Arguments

mod

A tracker module object of class openmpt.

key

A key as listed by get_metadata_keys().

...

Ignored

Value

A list of available keys in case of get_metadata_keys(), the requested information in case of get_metadata().

Examples

mod <- demo_mod()
get_metadata_keys(mod)
#>  [1] "type"              "type_long"         "originaltype"     
#>  [4] "originaltype_long" "container"         "container_long"   
#>  [7] "tracker"           "artist"            "title"            
#> [10] "date"              "message"           "message_raw"      
#> [13] "warnings"         

get_metadata(mod, "tracker")
#> [1] "Generic ProTracker or compatible"