Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rubyで理解する音響信号処理 ADSR編 / Audio Signal Processing...
Search
5hun
October 01, 2026
52
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rubyで理解する音響信号処理 ADSR編 / Audio Signal Processing in Ruby, Part: ADSR
Omotesando.rb #126 LT
5hun
October 01, 2026
More Decks by 5hun
See All by 5hun
2026年、OSSコントリビュート初心者の歩き方 〜軽い一歩を、軽いままにしないために〜 / oss-contribution-for-beginners-2026
5hun
0
1.6k
Sine Wave By Ruby
5hun
1
80
Rubyと演奏したい〜その第一歩〜.pdf
5hun
1
89
Array#forty_two
5hun
0
94
与信管理を形にする: Ruby の柔軟性が支える高速データ収集・自動化基盤
5hun
1
420
ぼっちが秘める可能性〜孤高のRubyistが語る交流会サバイバル術〜
5hun
1
70
君もRailsもアップグレード!
5hun
1
30
完璧主義にこだわり続けるとシステム開発は不幸になると思った
5hun
0
53
OSSコントリビュート初体験:Rubocopのバグを修正した話
5hun
0
63
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Odyssey Design
rkendrick25
PRO
2
880
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
KATA
mclloyd
PRO
35
16k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Believing is Seeing
oripsolob
1
250
How GitHub (no longer) Works
holman
316
150k
Facilitating Awesome Meetings
lara
57
7.2k
Transcript
Ruby 理解する 響信号処 理 ADSR編 音 で Omotesando.rb #126
• 量の時間変化を示す4つのパラメータ の頭 字をとったもの • A アタック • D ディケイ
• S サステイン • R リリース 文 音 ADSRとは
ADSRの実装について 比 音 •それぞれの時間(サンプル数)を渡す •サステインだけは 量 を渡す
アタックタイムの実装 音 •Math.expを使って指数関数的に 量が上 昇するようにする
ディケイの実装 •s_levelになるまで指数関数的に減衰する
リリースの実装 •0に近づいて下がっていく
•楽器の 量の するため • 量ごとの時間変化を再現 が滑らかに ち上がる 自 音 音
立 • 息が切れるにつれて 音 音 ADSRを何のために使うか が 然に減衰する
音 • つの周波数成分のみを含み、 化もないシンプルな 音 一 DEMO サイン波 量の変
DEMO ADSRをかけたサイン波 比 音 アタック(秒) ディケイ(秒) サステイン ( 量 )
リリース(秒)
まとめ 音 一 音 用 色 音 音 •楽器の を再現するための
要素とし てADSRを活 する •指数関数を使うことで滑らかな 量変化 を表現する •出す や楽器の種類ごとにパラメータを 調整することで、さまざまな を再現で きる