Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
750
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
270
Middleman on Production
5t111111
0
160
名古屋Ruby会議03 高速一言感想
5t111111
3
1k
ドキュメント翻訳懺悔のLT ~進捗ダメです~
5t111111
1
610
UFO演算子について
5t111111
0
320
Rubyの拡張をCrystalで書いてみる
5t111111
0
110
YARV INTRODUCTION
5t111111
0
90
Other Decks in Programming
See All in Programming
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
360
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
710
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
170
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
6
670
命名をリントする
chiroruxx
1
570
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
6
1.3k
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
130
月刊 競技プログラミングをお仕事に役立てるには
terryu16
1
1.1k
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.3k
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.2k
Flatt Security XSS Challenge 解答・解説
flatt_security
0
590
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
350
Featured
See All Featured
Code Review Best Practice
trishagee
65
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
How to train your dragon (web standard)
notwaldorf
88
5.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
4 Signs Your Business is Dying
shpigford
182
21k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Optimising Largest Contentful Paint
csswizardry
33
3k
Building Adaptive Systems
keathley
38
2.3k
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
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠