package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

doc/shakuhachi.database/SkhcDb/Album/Stats/index.html

Module Album.StatsSource

Operations on album's stats

Sourcetype t

type of album's stats

Sourceval init : music_count:int -> duration:int -> play_count:int -> size:int64 -> avg_rating:float -> t

init ~music_count ~duration ~play_count ~size ~avg_rating creates a new album stats.

Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval music_count : t -> int

music_count stats returns the number of songs.

Sourceval duration : t -> int

duration stats returns the total duration.

Sourceval play_count : t -> int

play_count stats returns the sum of play count.

Sourceval size : t -> int64

size stats returns the total size.

Sourceval avg_duration : t -> float

avg_duration stats returns the average duration.

Sourceval avg_rating : t -> float

avg_rating stats returns the average rating.

Sourceval avg_size : t -> float

avg_size stats returns the average size.