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
58
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
シンセ持ってないし組み込みもわからないけど音楽は作りたい人がやっていること / No Synth, No Embedded Skills, Still Making Music
5hun
1
7
Rubyで理解する音響信号処理 音をふわっと立ち上げる編 / Audio Signal Processing in Ruby, Part: Soft Attack Envelopes
5hun
1
59
2026年、OSSコントリビュート初心者の歩き方 〜軽い一歩を、軽いままにしないために〜 / oss-contribution-for-beginners-2026
5hun
0
1.7k
Sine Wave By Ruby
5hun
1
82
Rubyと演奏したい〜その第一歩〜.pdf
5hun
1
93
Array#forty_two
5hun
0
97
与信管理を形にする: Ruby の柔軟性が支える高速データ収集・自動化基盤
5hun
1
440
ぼっちが秘める可能性〜孤高のRubyistが語る交流会サバイバル術〜
5hun
1
73
君もRailsもアップグレード!
5hun
1
32
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
KATA
mclloyd
PRO
35
16k
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
Tell your own story through comics
letsgokoyo
1
1.1k
The Pragmatic Product Professional
lauravandoore
37
7.5k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
610
Code Review Best Practice
trishagee
74
20k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
510
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Transcript
Ruby 理解する 響信号処 理 ADSR編 音 で Omotesando.rb #126
• 量の時間変化を示す4つのパラメータ の頭 字をとったもの • A アタック • D ディケイ
• S サステイン • R リリース 文 音 ADSRとは
ADSRの実装について 比 音 •それぞれの時間(サンプル数)を渡す •サステインだけは 量 を渡す
アタックタイムの実装 音 •Math.expを使って指数関数的に 量が上 昇するようにする
ディケイの実装 •s_levelになるまで指数関数的に減衰する
リリースの実装 •0に近づいて下がっていく
•楽器の 量の するため • 量ごとの時間変化を再現 が滑らかに ち上がる 自 音 音
立 • 息が切れるにつれて 音 音 ADSRを何のために使うか が 然に減衰する
音 • つの周波数成分のみを含み、 化もないシンプルな 音 一 DEMO サイン波 量の変
DEMO ADSRをかけたサイン波 比 音 アタック(秒) ディケイ(秒) サステイン ( 量 )
リリース(秒)
まとめ 音 一 音 用 色 音 音 •楽器の を再現するための
要素とし てADSRを活 する •指数関数を使うことで滑らかな 量変化 を表現する •出す や楽器の種類ごとにパラメータを 調整することで、さまざまな を再現で きる