Upload
konbuwakayama
View
184
Download
1
Embed Size (px)
Citation preview
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved. 1
鈴木商店が sonic pi でライブコーディングするぞ
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
自己紹介
22
- 名前 : 若山 ( 通称 : チビ太 )- 職種 : プログラマ , コーヒー- 好きな言語 : ruby, clojure
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
鈴木商店について
とことん使いやすさにこだわったシステム開発を行う
「ものづくり集団」です。2004 年にシステム部門を立ち上げ以来、技術力を武器にWeb 業務システムを中心に多数システムを構築しています。
33
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved. 4
エンジニア集団
エンジニア 32 名
営業 1 名
人事総務 2 名
90% がエンジニア!
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved. 5
外注・エンジニア派遣「ゼロ」開発に携わるスタッフ全員が鈴木商店の社員。 100 %自社で開発
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved. 6
エンジニアが没頭できる環境
● ハイスペック PC 、モニタ2面配布● 各種クラウドツールをフル活用● 音楽を聴きながら作業● ワールドカップのためにテレビを購
入
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
ベトナムオフィス
1616
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
今日やること
1717
- Emacs で音プログラミング- Sonic Pi, Overtone, SuperCollider
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
Overtone
1818
Clojure
OvertoneSuperCollider
- 最初に見つけた環境- Clojure => Common lisp 風の java 処理
系
OSC
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
Overtone
1919
- Synth を自前で実装できる- Shader(openGL) 連携もできる- ライブコーディングは敷居高め?
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
sonic pi
2020
- Overtone の ruby 版- コンパイルされた synth(@overtone)- シンプルに実装できる ( 敷居低め )
ruby
compiledsynth
SuperCollider
- OSC
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
実際にやってみる
2121
インストール物 Sonic pi Emacs sonic-pi-mode(elisp)
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
hello world
2222
ディレクトリとファイルを作成$ mkdir sonic_pi_live$ touch sonic_pi_live/foo.rb
Emacs で開いて実行play 70 # C-c C-k
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
loop
2323
loop do play 70 sleep 1end
2.times do play 70 sleep 1 play 70 sleep1end
ruby お馴染みのイテレータ
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
thread
2424
in_thread do loop do play 70 sleep 1 endend
Thread を作成して並列に鳴らす
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
Midi note
2525
play :c4
C( ド ) D( レ ) E( ミ ) F( ファ ) G( ソ ) A( ラ ) B( シ )
60 62 64 65 67 69 71
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
define
2626
define :kick_pattern do sample :drum_heavy_kick sleep 1 sample :drum_snare_hard sleep 1end
kick_pattern
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
define & thread
2727
in_thread do loop { kick_pattern }end
in_thread do loop {hat_pattern }end
Tel:06-6362-1680 Fax:06-6362-1681 URL:http://www.suzukishouten.co.jp/ Copyright © 2017 株式会社鈴木商店 , All rights reserved.
Overtone で自作 synth をコンパイル
2828