Skip to content

Accessing audio format, bit depth, and sample rate as track fields? #219

@ali-ramadhan

Description

@ali-ramadhan

Describe the new feature

I would like to use the file format, bit depth, and sample rate of tracks to format paths. I see that audio_format is a Track property (but not a field) and that bit depth and sample rate are not properties nor fields.

I was wondering if it would make sense to add bit depth and sample rate as Track properties, then make all three fields so they could be used to format paths?

They are accessible via the mediafile I think , so I could try to add them in as Track properties via @property.

I think it's common to use audio format, bit depth, and sample rate to format album paths, however it might not make sense for them to be album properties. One reason being that some albums (some digital releases?) could have a mixture of formats, bit depths, and sampling rates.

So to format album paths using this information, it might make sense to create little plugins to return e.g. album_audio_format which could be FLAC or MP3 or even FLAC+MP3.

But this would still require audio format, bit depth, and sample rate to be Track properties I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions