as_space_time()
and as_vector_time()
are generic since they apply clearly
to and are useful for not only noteworthy strings, but also note info and
music objects. If x
is still a simple character string, these functions
attempt to guess which of the three it is. It is recommended to set the class
before using these functions.
There are many package functions that operate on noteworthy strings that
could in concept work on music objects, but the expectation is that sound
and time/info are disentangled.
The music class is convenient for data entry, e.g., for transcription
purposes, but it is not sensible to perform data analysis with quantities
like pitch and time tightly bound together. This would only lead to
repetitive deconstructions and reconstructions of music class objects. Most
functions that operate on noteworthy strings or note info strings strictly
apply to one or the other. Generic functions are reserved for only the most
fundamental and generally applicable metadata retrieval and format coercion.