Code Monkey home page Code Monkey logo

flac_metadata's Introduction

FLAC_metadata

flac_add_composition.py

Roon处理古典音乐时,会出现一首作品的几个乐章被分拆显示的问题。Roon提供的解决方案是使用Composition/WorkMovement/Part两个tag。这个python小程序就是为了自动分拆,其作用是,在曲目中找" - "(注意,包含前后空格),以此分割,之前的是作品名(Composition),之后的是小曲目或乐章名(Movement)。

例如"Brahms:Piano Concerto No.1 in D minor, Op.15 - I. Maestoso-Poco più moderato",其中"Brahms:Piano Concerto No.1 in D minor, Op.15"就是作品名,写入Composition字段,"I. Maestoso-Poco più moderato"写入Movement字段。

所以,具体的分隔符可以按个人的习惯设置,这里是我个人喜欢的方式。

与Roon相结合的详细说明,参见我的文章吧。

P.S:Composition-MovementWork-Part这两组对Roon来说是等价的,从习惯出发,我选了第一组名称。

使用:

  1. 安装mutagen包
  2. python3 ./flac_add_composition.py flac文件路径

基于python 3.9.2开发。

flac_metadata's People

Contributors

ernestyao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.