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
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Mobile First: as difficult as doing things right
swwweet
225
10k
Marketing to machines
jonoalderson
1
5.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
sira's awesome portfolio website redesign presentation
elsirapls
0
460
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
350
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
750
How to make the Groovebox
asonas
2
2.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Transcript
Ruby 理解する 響信号処 理 ADSR編 音 で Omotesando.rb #126
• 量の時間変化を示す4つのパラメータ の頭 字をとったもの • A アタック • D ディケイ
• S サステイン • R リリース 文 音 ADSRとは
ADSRの実装について 比 音 •それぞれの時間(サンプル数)を渡す •サステインだけは 量 を渡す
アタックタイムの実装 音 •Math.expを使って指数関数的に 量が上 昇するようにする
ディケイの実装 •s_levelになるまで指数関数的に減衰する
リリースの実装 •0に近づいて下がっていく
•楽器の 量の するため • 量ごとの時間変化を再現 が滑らかに ち上がる 自 音 音
立 • 息が切れるにつれて 音 音 ADSRを何のために使うか が 然に減衰する
音 • つの周波数成分のみを含み、 化もないシンプルな 音 一 DEMO サイン波 量の変
DEMO ADSRをかけたサイン波 比 音 アタック(秒) ディケイ(秒) サステイン ( 量 )
リリース(秒)
まとめ 音 一 音 用 色 音 音 •楽器の を再現するための
要素とし てADSRを活 する •指数関数を使うことで滑らかな 量変化 を表現する •出す や楽器の種類ごとにパラメータを 調整することで、さまざまな を再現で きる