$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rubyと戯れるOSS DTM
Search
Hirofumi Wakasugi
May 31, 2016
Programming
4
740
Rubyと戯れるOSS DTM
TokyuRuby会議10 (
http://regional.rubykaigi.org/tokyu10/
) (2016-05-29)
Hirofumi Wakasugi
May 31, 2016
Tweet
Share
More Decks by Hirofumi Wakasugi
See All by Hirofumi Wakasugi
Racc Introduction
5t111111
1
420
Keep Calm and Enjoy Gachima
5t111111
3
350
Swift Functional Programming
5t111111
0
260
Middleman on Production
5t111111
0
160
名古屋Ruby会議03 高速一言感想
5t111111
3
1k
ドキュメント翻訳懺悔のLT ~進捗ダメです~
5t111111
1
590
UFO演算子について
5t111111
0
320
Rubyの拡張をCrystalで書いてみる
5t111111
0
100
YARV INTRODUCTION
5t111111
0
87
Other Decks in Programming
See All in Programming
テストコード文化を0から作り、変化し続けた組織
kazatohiei
1
120
Vapor Revolution
kazupon
2
2.5k
初めてDefinitelyTypedにPRを出した話
syumai
0
480
似たもの同士のPerlとPHP
uzulla
1
110
Functional Event Sourcing using Sekiban
tomohisa
0
130
romajip: 日本の住所CSVデータを活用した英語住所変換ライブラリを作った話
sangunkang
0
2.3k
Cursorでアプリケーションの追加開発や保守をどこまでできるか試したら得るものが多かった話
drumnistnakano
0
260
TypeScript でバックもやるって実際どう? 実運用で困ったこと3選
yuichiro_serita
17
7.5k
デザインパターンで理解するLLMエージェントの作り方 / How to develop an LLM agent using agentic design patterns
rkaga
11
2.6k
N.E.X.T LEVEL
pluu
2
250
CSC305 Lecture 25
javiergs
PRO
0
110
Remix on Hono on Cloudflare Workers
yusukebe
2
390
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
33
1.5k
Facilitating Awesome Meetings
lara
50
6.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Writing Fast Ruby
sferik
627
61k
Six Lessons from altMBA
skipperchong
27
3.5k
Designing for Performance
lara
604
68k
For a Future-Friendly Web
brad_frost
175
9.4k
Music & Morning Musume
bryan
46
6.2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
3VCZͱٔΕΔ 044%5. Playing the computer music with OSS via Ruby
Hirofumi Wakasugi (@5t111111)
Hirofumi Wakasugi (@5t111111) ϓϩάϥϚʔ
04$ 0QFO4PVOE$POUSPM OSC Host Address (like URI) Message /oscillator/frequency 44100
/foo/bar/baz:12345 440 0.1 “Hello!” w ओʹԻָؔ࿈ͰΘΕΔ௨৴ϓϩτίϧ w 6%15$1ΛͬͯωοτϫʔΫܦ༝Ͱૹड৴Ͱ͖Δ w .*%*Λସ͢Δͷͱͯ͠։ൃ͞Εͨ
RUBY OSS DTM
1VSF%BUB 1E w ։ൃͨ͠ͷ.BYͷ։ൃऀͰ ͋Δ.JMMFS1VDLFUUF Իڹ߹ϚϧνϝσΟΞͷͨΊͷάϥϑΟΧϧ ϏδϡΞϧ ϓϩάϥϛϯάݴޠ w
ஔͨ͠ΦϒδΣΫτಉ࢜Λ ݁ઢ͠ϝοηʔδΛΓͱΓ ͢Δ͜ͱͰϓϩάϥϜΛ࡞Δ
ruby-puredata https://github.com/nagachika/ruby-puredata
ruby-puredata https://github.com/nagachika/ruby-puredata
·ͣϦϕϯδͰSVCZQVSFEBUBಉࠝͷαϯϓϧԻݯΛ໐Β͢ IUUQTHJUIVCDPNUURSLMUCMPCNBTUFSQFOUBOHMFFYBNQMFSC
࣍ʹγϯϓϧͳαΠϯͷγϯηΛىಈ IUUQTHJUIVCDPNUURSLMUCMPCNBTUFSQFOUBOHMFTZOUISC ͨͩ͜Ε୯ମͰ Ի͕໐Βͤͳ͍ͨΊɺ ผͷϓϩάϥϜ͔Β 04$ϝοηʔδΛૹΔ
+3VCZ"SU $PEFBT"SU w ·ͩ৽͍͠ϓϩδΣΫτͰɺ 1SPDFTTJOHSVCZQSPDFTTJOH 1SPDFTTJOH8SBQQFS-JCSBSZGPS3VCZ +3VCZ w ϏδϡΞϧΞʔτ͚ͷϓϩάϥ ϛϯάݴޠ1SPDFTTJOHΛ3VCZͰ
ॻ͘͜ͱ͕Ͱ͖Δ https://ruby-processing.github.io
+3VCZ"SUͰॻ͍ͨ04$ίϯτϩʔϥʔͰԋ IUUQTHJUIVCDPNUURSLMUCMPCNBTUFSKSVCZ@BSUPTD@DPOUSPMMFSSC ΫϦοΫͨ͠࠲ඪʹ Ԡͨ͡04$ϝοηʔδ͕ ૹ৴͞ΕͯԻ͕໐Δ
ͭͣͭհ͍ͯ͘͠ͷ͜ͷลʹͯ͠ ͬͺΓۂԋΓ·͢
OJMTUFQT "O04$DMJFOUXIJDIQSPWJEFTWFSZTJNQMFTUFQTFRVFODFS https://github.com/5t111111/nilsteps # C1 for 1st note and D1
for 8th note of 16 steps in a bar seq = Nilsteps::Sequencer.new(bpm: 128) seq.setup_steps(0 => 'C1', 8 => 'D1') seq.play(4) # Drum machine like sequence DSL kick 'oxxxoxxxoxxxoxox', times: 1 w υϥϜϚγϯͷΑ͏ͳ୯७ͳεςοϓγʔέϯαʔ w ϋογϡͰεςοϓΛࢦఆͯ͠04$ϝοηʔδΛૹ৴Ͱ͖Δ
ಉ࣌ʹͭͷԻ͔͠ ໐Βͤ·ͤΜ o w8 it sux cuz
΅͘͜ͷOJMTUFQTΛ ˒ฒߦ࣮ߦ͍ͨ͠ w ͳͥͳΒಉ࣌ʹෳͷԻΛ໐Β͍͔ͨ͠Βͩ ˒ґଘؔΛࢦఆ͍ͨ͠ w ͳͥͳΒ࣮ߦͷॱ൪Λࢦఆͯ͠ۂΛߏ͍͔ͨ͠Βͩ ˒3VCZͰॻ͖͍ͨ w ͳͥͳΒ3VCZͰॻ͖͍͔ͨΒͩ
None
3VLBXB )ZQFSTJNQMFXPSLqPXFOHJOFGPS3VCZ https://github.com/joker1007/rukawa ˒ ฒߦ࣮ߦͰ͖Δ ˒ ґଘؔΛࢦఆͰ͖Δ ˒ 3VCZͰॻ͚Δ
1MBZBSPVOEXJUIFDPTZTUFN 3VLBXBͰ OJMTUFQTͷδϣϒΛίϯτϩʔϧͯ͠ 1VSF%BUBͷԻΛग़͢͜ͱͰ ۂʹ͢Δͱ͍͏ͷΛΓ·͢
CVOEMFFYFDSVLBXBSVO4POH4FRVFODF IUUQTHJUIVCDPNUURSLMUUSFFNBTUFSTFRVFODF
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠