Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A440
Search
HORINOUCHI Masato
February 16, 2016
Technology
0
54
A440
社内LT大会 0x64物語 #05 Number 資料
HORINOUCHI Masato
February 16, 2016
Tweet
Share
More Decks by HORINOUCHI Masato
See All by HORINOUCHI Masato
balenaCloud
thermes
0
63
Church Numerals
thermes
0
31
CPS & CTO
thermes
0
240
FM synthesis
thermes
0
26
Inside mml2wav.rb
thermes
0
70
Scheme Interpreter in Ruby
thermes
0
57
Clock / Timer
thermes
0
120
Hash Tree
thermes
0
65
POSIX Threads
thermes
0
50
Other Decks in Technology
See All in Technology
レガシーをぶっ壊せ。AEONで始めるDevRelの話 / Qiita Night 2024-2-22
aeonpeople
3
1.3k
require(ESM)とECMAScript仕様
uhyo
3
700
プロトタイピングによる不確実性の低減 / Reducing Uncertainty through Prototyping
ohbarye
5
390
チームでロジカルシンキングに改めて向き合っている話 〜学習環境と実践⽅法〜
sansantech
PRO
3
2.5k
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
400
アクセス制御にまつわる改善 / Improving access control
itkq
0
540
エンジニアのキャリアをちょっと楽しくする3本の軸/Three Pillars to Make an Engineer's Career More Enjoyable
kwappa
0
2.7k
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
140
Além do else! Categorizando Pokemóns com Pattern Matching no JavaScript
wmsbill
0
620
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
120
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
4
15k
Google Cloud の AI を支える裏側のインフラを垣間見る!
maroon1st
0
350
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Teambox: Starting and Learning
jrom
128
8.4k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Making Projects Easy
brettharned
108
5.5k
Code Review Best Practice
trishagee
55
15k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Become a Pro
speakerdeck
PRO
11
4.5k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
244
20k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Transcript
A440 2016/02/16 0x64 Tales #05 Number Livesense Inc. HORINOUCHI Masato
A440 ͬͯͳʹ? • ΦΫλʔϒ 4 ͷ A (ϥ) ͷपΛ 440Hz
ͱ͢Δ͜ͱɻج४ϐο ν(Իߴ) ͱͯ͠ࠃࡍඪ४ͱͳ͍ͬͯΔɻ • 1955 ʹ ISO ʹΑΓ A=440 ͕ఆΊΒΕΔલྺ࢙తܦҢʹΑ Γ A=415, A=430, A=466 ͳͲ༷ʑͳج४ϐον͕༻͍ΒΕ͖ͯ ͨɻ • গʑߴ͍ج४ϐονͷํ͕՚͔ʹௌ͑͜ΔͷͰɺݱࡏͰ A=442, A=444 ͦΕΛӽ͑ΔΦʔέετϥଟ͍ɻ
ΈΜͳͬͯΔ A440 • ࣌ใ • "me_signal.wav • 440Hz 440Hz 440Hz
880Hz ͱ͍͏पͰ໐͍ͬͯΔɻ
ΦΫλʔϒ • 1ΦΫλʔϒ্ͷԻΛ໐Β͢ʹपΛ 2ഒʹ͢Δɻ • 1ΦΫλʔϒԼͷԻΛ໐Β͢ʹपΛ 1/2ഒʹ͢Δɻ • ΦΫλʔϒ x
ͷ A ͷपൺྻ • 1 => 55, 2 => 110, 3 => 220, 4 => 440, 5 => 880 … • f(x) = 27.5 * (2 ** x)
Ի ԻఔͷपΛͲͷΑ͏ʹنఆ͢Δ͔ɻ • ฏۉ • 1ΦΫλʔϒΛ 12ͨ͠Իɻ • (0..12).each {|i|
2.0 ** (i.to_f / 12) } ͷൺྻɻ • ७ਖ਼ • ७ਖ਼Իఔ(पൺ͕୯७ͳൺͱͳΔ)Λ༻͍ͨԻɻ • ԻͰഒԻͷ͏ͳΓ͕ൃੜ͠ͳ͍ɻCϝδϟʔͰͷ C-E-G ͕ 4:5:6 ͱͳΔɻ
ฏۉͱ७ਖ਼ʹΑΔԻఔ ฏۉ ͔ΒҾ༻
σϞ CϝδϟʔͰશԻ֊ͱ C-E-G , F-A-C , G-B-D ͷࡾԻɻ • ฏۉ
A440: temp_12tet_a440.wav • ฏۉ A444: temp_12tet_a444.wav • ७ਖ਼ A440: temp_just.wav
ࠓճͷݕূɺ ॳϦΞϧλΠϜੜͨ͠ܗσ ʔλΛ /dev/dsp ʹग़ྗ͠Α͏ͱߟ ͍͑ͯͨͷ͕ͩ…ɻ
σʔλͲ͏ͬͯ࡞ͬͨͷ? • MML ύʔαʔ࡞ͬͯܗσʔλʹม͢Εྑ͍ͷͰ… • ܗσʔλ͑͞࡞ΕͨΒ .wav ग़ྗ؆୯ͩΑͶɻ • ܗੜؔม͑Εਖ਼ݭҎ֎ग़ྗͰ͖ΔΑͶɻ
• ܗσʔλΛ߹Ͱ͖ΕϚϧντϥοΫԽͰ͖ΔΑͶɻ • ࡞ͬͯΈͨ ← ΠϚίί
to be con(nued...