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
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
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
470
Evolving SEO for Evolving Search Engines
ryanjones
0
360
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Designing for humans not robots
tammielis
254
26k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
sira's awesome portfolio website redesign presentation
elsirapls
0
510
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Leo the Paperboy
mayatellez
11
2.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k