Haskap Jam Pack for Sonic Pi

Haskap Jam Pack(ハスカップジャムパック)は Sonic Piを拡張するためのパッケージです。

Sonic Piに以下の3つの機能を追加することができます。

  1. ジャムセッション
  2. ボーカロイド
  3. ログフォワーディング

Downloadhttps://github.com/siaflab/haskap-jam-pack/releases/

Reference

  • Jam Session - ジャムセッション
  • Vocaloid - ボーカロイド
  • Log Forwarding - ログフォワーディング

Jam Session - ジャムセッション

設定

Server

haskap-jam-server-config.jsonで内でOSCで受信するIPとポートを指定します。

"receivePort": <server listening port>,
"socicPiPort": <Sonic Pi listening port>(default: 4557)

Client

haskap-jam-config.rbで内でOSCで送信するIPとポートを指定します。

remote_address: '<server IP address>',
remote_port: <server listening port>,

用法

Server

  • Sonic Piを起動します。
  • ターミナルでhaskap-jam-serverに移動してスタート。

$ cd server/jam-server; ./bin/darwin_amd64/haskap-jam-server
config.ReceivePort: 4559
config.SocicPiPort: 4557
#####
2016-02-25 14:09:23.080256492 +0900 JST
haskap-jam-server started successfully.
version: 0.1.0, build: , date:2016-02-25T12:19:24+0900
listening to udp 4559
and will send to udp 4557
#####

Client

  • Sonic Piを起動します。
  • コード内にload "[path to haskap-jam-loop.rb]/haskap-jam-loop.rb"を追加し、live_loopの代わりにjam_loopを利用します。

load "~/haskap-jam-pack/client/haskap-jam-loop.rb"

jam_loop :test do
  sync :foo
  play 60
  sleep 0.5
end

  • コードを再生してみましょう!

Vocaloid - ボーカロイド

用法

  • Sonic Piを起動します。
  • コード内に load "[path to haskap-jam-voice.rb]/haskap-jam-voice.rb"を追加し、 "voice" コマンドを利用します。

load "~/haskap-jam-pack/client/haskap-jam-voice.rb"

// c4 with "do"

voice "do", :c4

"voice_pattern" や ”voice_pattern_timed" コマンドを利用することも可能です。

load "~/haskap-jam-pack/client/haskap-jam-voice.rb"

voice "ra", chord(:E3, :minor)

voice_pattern "ra", chord(:E3, :m7)

voice_pattern_timed "ra", chord(:E3, :m7), 0.25

voice_pattern_timed "ra", scale(:E3, :minor), 0.125, release: 0.1

loop do

 voice "ra", choose(chord(:E3, :minor)), release: 0.3

 sleep 0.25

end

voiceコマンドは引数として以下の音節を利用することができます。

"a","aa","ba","be","bi","bo","bres","bres2","bres3","bres4","bu","bya","byo","byu", "cha","che","chi","cho","chu","da","de","di","do","du","dyu", "e","ee","fa","fe","fi","fo","fu","fyu","ga","ge","gi","go","gu","gya","gyo","gyu", "ha","he","hi","ho","hu","hu2","huu","hya","hyu","i","ie","ee","ji","jya","jye","jyo","jyu", "ka","ke","ki","ko","ku","kya","kyo","kyu","ma","me","mi","mo","mu","mya","myo","myu", "n","na","ne","nga","nge","ngi","ngo","ni","nn","nnn","no","nu","nya","nyo","nyu", "o","oo","pa","pe","pi","po","pu","pya","pyo","pyu","ra","re","ri","ro","ru","rya","ryo","ryu", "sa","se","sha","she","shi","sho","shu","si","so","su", "ta","te","thi","tho","thu","ti","to","tu","u","ua","ue","ugu","ui","uo","uu", "va","ve","vi","vo","vu","wa","wo","ya","yo","yu","za","ze","zo","zu","zua","zue","zui","zuo"

Log Fowarding - ログフォワーディング

ログフォワーディングは、Processing、Pure Data、vvvv や openFrameworksなどのクリエーディブコーディング環境などへ

Sonic PiのログメッセージをOSCを利用して転送することで、映像やフィジカルコンピューティングなどと連携することができます。

設定方法

haskap-jam-interceptor-config.json内でOSCで利用するIPやポートを指定します。

"deviceName": <local machine loopback device name>(default: "lo0")

"receivePort": <Sonic Pi GUI listening port>(default: 4558),

"sendToAddress": <remote ip address>(default: "127.0.0.1"),

"sendToPort": <remote port>(default: 3333)

用法

  • Sonic Piを起動します。
  • ターミナルでserverフォルダ内のlog-interceptorに移動し、haskap-jam-interceptorをスタートします。

$ cd server/log-interceptor; ./bin/darwin_amd64/haskap-jam-interceptor

config.DeviceName: lo0

config.ReceivePort: 4558

config.SendToAddress: 127.0.0.1

config.SendToPort: 3333

#####

2016-02-25 14:00:47.627896987 +0900 JST

haskap-jam-interceptor started successfully.

version: 0.1.0, build: , date:2016-02-25T12:19:12+0900

capturing UDP port 4558 packets.

and will send to 127.0.0.1:3333

ページの先頭へ