-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ja] Time Value Syntax #2
Comments
コンパイル時に数値変換して、定数化できないものだけ関数にしたら? |
こういう感じで書くようになった場合、ちゃんとテンポ反映される? Task.do ->
Master.setBPM 120
s.play freq:440, dur:"L8"
Task.do ->
Master.setBPM 140
s.play freq:660, dur:"L4"
@wait 100
Master.setBPM 180
s.play freq:660, dur:"L4"
@wait 100
.play()
s.play freq:440, dur:"L8" # ここのBPMは?
@wait 1000
.play() |
mohayonao
added a commit
that referenced
this issue
Oct 22, 2013
Tempo Related Time Value Syntax については #7 で検討する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Max/MSPのような時間値シンタックスを導入したい。
http://www.cycling74.com/docs/max5/vignettes/core/maxtime_syntax.html
実装案
対応策
記法 (案)
100hz
→ 0.0150ms
→ 0.0510sec
→ 101min
→ 6000:03:25.230
→ 205.2301000samples
→ (1000 / samleRate)1000samples/44100hz
→ (1000 / 44100)以下はマスターBPMとの連携が必要となり、省略した場合は定数として扱えない
L4
bpm140 L4
→ 0.428571428571428552.3.240
bpm140 2.3.240
→ 4.928571428571428480ticks
bpm140 480ticks
→ 0.42857142857142855The text was updated successfully, but these errors were encountered: