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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
5hun
October 01, 2026
60
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
Transcript
10 slides
Ruby 理解する 響信号処 理 ADSR編 音 で Omotesando.rb #126
• 量の時間変化を示す4つのパラメータ の頭 字をとったもの • A アタック • D ディケイ
• S サステイン • R リリース 文 音 ADSRとは
ADSRの実装について 比 音 •それぞれの時間(サンプル数)を渡す •サステインだけは 量 を渡す
アタックタイムの実装 音 •Math.expを使って指数関数的に 量が上 昇するようにする
ディケイの実装 •s_levelになるまで指数関数的に減衰する
リリースの実装 •0に近づいて下がっていく
•楽器の 量の するため • 量ごとの時間変化を再現 が滑らかに ち上がる 自 音 音
立 • 息が切れるにつれて 音 音 ADSRを何のために使うか が 然に減衰する
音 • つの周波数成分のみを含み、 化もないシンプルな 音 一 DEMO サイン波 量の変
DEMO ADSRをかけたサイン波 比 音 アタック(秒) ディケイ(秒) サステイン ( 量 )
リリース(秒)
まとめ 音 一 音 用 色 音 音 •楽器の を再現するための
要素とし てADSRを活 する •指数関数を使うことで滑らかな 量変化 を表現する •出す や楽器の種類ごとにパラメータを 調整することで、さまざまな を再現で きる
More Decks by 5hun
See All by 5hun
鉄琴の倍音構成について / On the Overtone Structure of the Glockenspiel
5hun
1
21
シンセ持ってないし組み込みもわからないけど音楽は作りたい人がやっていること / No Synth, No Embedded Skills, Still Making Music
5hun
1
27
Rubyで理解する音響信号処理 音をふわっと立ち上げる編 / Audio Signal Processing in Ruby, Part: Soft Attack Envelopes
5hun
1
77
2026年、OSSコントリビュート初心者の歩き方 〜軽い一歩を、軽いままにしないために〜 / oss-contribution-for-beginners-2026
5hun
0
1.7k
Sine Wave By Ruby
5hun
1
85
Rubyと演奏したい〜その第一歩〜.pdf
5hun
1
95
Array#forty_two
5hun
0
120
与信管理を形にする: Ruby の柔軟性が支える高速データ収集・自動化基盤
5hun
1
440
ぼっちが秘める可能性〜孤高のRubyistが語る交流会サバイバル術〜
5hun
1
74
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
247
13k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Everyday Curiosity
cassininazir
0
400
GraphQLとの向き合い方2022年版
quramy
50
15k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The untapped power of vector embeddings
frankvandijk
2
2k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Become a Pro
speakerdeck
PRO
31
6.4k
Designing for Timeless Needs
cassininazir
1
560
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
770
Visualization
eitanlees
153
17k
Side Projects
sachag
456
43k