Accessing audio format, bit depth, and sample rate as track fields? #221
Replies: 1 comment
-
|
Made this a discussion since there's a lot to unpack here and I'd like to keep issues to single, actionable items. So despite the docs, path formats actually use the class attributes. So you can currently use Per the album properties, I agree it doesn't really make a lot of sense for those fields to be album properties, and may be better off as custom plugin functions. If I see there's a common demand for those fields as path template functions it may be worth adding them into core, but I'd like to hold off on that for now I think. So as far as actionable items from this, I think we have:
I just merged #222 for the docs fix, but feel free to create feature requests for or implement 2 or 3. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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_formatis aTrackproperty (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
Trackproperties, then make all three fields so they could be used to format paths?They are accessible via the
mediafileI think , so I could try to add them in asTrackproperties 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_formatwhich could beFLACorMP3or evenFLAC+MP3.But this would still require audio format, bit depth, and sample rate to be
Trackproperties I think.Beta Was this translation helpful? Give feedback.
All reactions