GithubHelp home page GithubHelp logo

Unit System about thuliummusic-wl HOT 2 OPEN

obstudio avatar obstudio commented on June 12, 2024
Unit System

from thuliummusic-wl.

Comments (2)

NN708 avatar NN708 commented on June 12, 2024

我认为默认应该使用拍做单位,即 FadeOut(1) 表示淡出一拍。理由如下:

  1. 音乐作为一个节律系统,循环反复特征明显,“拍”即是它最小的循环周期。因此以“拍”作为默认单位较好;
  2. “拍”是通过速度定义好的,定义之后基本以“拍”作为单位,直接用“秒”的情况较少(比如我扒个谱子一般会数淡出的拍数,不会掐个秒表得出秒数);
  3. 人们一般不会使用 1b 这种写法,不太自然。

不过用 1s 这样的写法将秒数加入进来也是可以考虑的,毕竟达到了扩充功能的目的。

from thuliummusic-wl.

shigma avatar shigma commented on June 12, 2024

@NN708 我非常赞同你的观点, 即默认用拍作为单位. 但是你举的例子实在是令人觉得尴尬.
……因为目前FadeOut函数是以秒为单位的. 其实淡入淡出的系统应当是另做的 (这个以后再讨论).

好吧不说这个, 但我认为“默认拍数”的大环境下人们依旧可以愉快的使用1或者1b或者1bt来表示 1 拍, 仅仅是为了区分秒数的概念. 过去的 Parser 的数据存储是以秒数为主导的, 这必然导致了这类函数难以处理拍数. 但是好在我在这个版本已经对这种情况作出了一定的调整, 相信很快就会有以拍数为参数的函数问世.

至于默认是什么的问题嘛……很多时候我们也有无量纲的变量读入, 因此或许我们应该构建一套量纲体系了. 我会对新版本的参数规则调整再发一个 proposal 的.

谢谢你的建议.

from thuliummusic-wl.

Related Issues (20)

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.