Skip to content

Add another ItemKey variant for float BPM values #334

Closed

Description

@Serial-ATA

Right now, MP4 has its integer and float BPM atoms map to the integer BPM atom:

"tmpo" | "----:com.apple.iTunes:BPM" => Bpm, // integer bpm (fourcc atom) vs. precise bpm (freeform atom)

These are different values, and should not collide with each other. There should be an IntegerBpm and (FloatBpm | PreciseBpm) ItemKey variant.

I do not know yet if other tag formats have a specified float BPM item.

Activity

  1. added
    enhancement
    on Jan 10, 2024
  2. uklotzde commented on Jan 10, 2024

    @uklotzde
    Contributor

    I suggest to introduce IntegerBpm for values that are known to be restricted (ID3v2 TBPM, MP4 tmpo). For all values with unknown precision Bpm should be used as before.

    Reading is unambiguous, but writing could become challenging.

  3. uklotzde commented on Jan 10, 2024

    @uklotzde
    Contributor

    Lofty should not implement any semantics and instead leave it to the client: #335

    If the client wants to ensure that at least one of the values is written it needs to set both and implement the desired conversion/rounding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions