2014年9月22日月曜日

Chrome のセッションを追跡する拡張機能: Project Tab Manager 3.0 公開

彼女ができる Chrome Extension として局地的に一瞬話題になった Project Tab Manager が 3.0 になりました。
Project Tab Manager はウィンドウの状態を監視し、いつでも元の状態に戻せる Chrome Extension です。
  • Chrome のタブが常に 100 個近く開いている
  • そのせいで Chrome だけでかなりメモリを消費している
  • 仕事中に Twitter や Facebook (もちろん Google+ も!) を見ちゃって気が散る
そんな人におすすめです。
これまでのコンセプトから若干シフトさせることで、わかりやすさを追求しました。プロジェクトを管理することよりも、セッションをトラックすることに重点を置くようにしました。



Project Tab Manager (以下 PTM) をインストールすると、開いているウィンドウごとにプロジェクトが自動的に作られます。



タブを追加したり消したりするごとに Extension を覗くと、タブの状態がすべて追跡されていることがわかると思います。試しに (全タブを消すのではなく) ウィンドウを閉じてみてください。PTM にプロジェクトが残っており、クリックすることで元のウィンドウが復元されるのが分かると思います。

一時的に新しいウィンドウを開いただけなのにプロジェクトが追加されてウザい!という方は、ウィンドウ内の全タブを閉じてください。プロジェクトは削除されます。

プロジェクト名は変更することができます。



右側にある ☆ をクリックすると、そのページをプロジェクトに永続的に追加することができ、いつでも開き直すことができます。

☆ は実はブックマークになっており、「その他のブックマーク」にプロジェクトごとに登録されます。これにより、モバイル版 Chrome や、他のコンピューターの Chrome でも、ブックマークが同期されていれば開くことができます。



PTM のポップアップウィンドウでは、キーボードショートカットキーが割り当てられており、以下のように動作します。
  • Tab, Shift+Tab: プロジェクトを移動
  • Return: プロジェクトウィンドウを開く
  • 右: プロジェクトを展開
  • 左: プロジェクトを畳む
Chrome Extension の管理ページ (chrome://extensions) の一番下にある "Keyboard Shortcuts" でショートカットキーを指定すると、ポップアップ自体も楽に開けるようになります。



ソースコードは GitHub で公開しています。何か気になる点などありましたら、ぜひ Pull Request を送っていただくか、@agektmr までお知らせ下さい。

早く彼女ができるといいですね。

2014年9月18日木曜日

Event Report: Web Music Hackathon #3



Did you know web browsers can now make music? Or at least sound. By using Web Audio API, you can synthesize, add effects, modulate, split, merge - whatever you can imagine to process audio: they are available on many browsers.
There's also MIDI support. Chrome has Web MIDI implementation behind a flag so you can hook up your synthesizer and send or receive MIDI signals with it.

Those APIs are quite low level. So there's tons of things you need to do to make "music" on top of browsers, but that also means an interesting time of building up fundamentals for the future music platform.

So, this is the event Google and a community "Web Music Developers JP" have been running since last year called "Web Music Hackathon". Attendees enjoy building apps using Web Audio API, Web MIDI API and other related technologies such as WebRTC, Web Speech API, etc - whatever they can imagine web + music can do.

Every time we run this event, we saw incredible ideas and implementations of music apps that take advantage of fusion between web and music.

Check out the first hackathon's winner's demo:

And the second one (English full report is here):

Coincidentally, there was a similar event called Web Audio Hackday in Berlin. So we decided to collaborate and show event reports each other. Web Audio Hackday attendees, if you are reading this, nice to meet you :)
I will link back to the WAH report when available.

Opening

We started the day with an update from Google engineer and Web MIDI API implementor @toyoshim about what's new in Web MIDI API. Here's the slides:

3 tutors followed him giving demos. They are well known in Japanese Web Music land, but I assume they are famous world wide as well :) @g200kg@aike1000, and @sascacci.

@sascacci introduced V-drum visual effect.



@aike1000 gave attendees some wisdoms: web audio sample codes list useful snippets such as generating sign waves, play samples, how to write delay, pitch shift, distortion, etc. Also a template for synthesizer, and VJ framework.


@g200kg showed off demo of his new project: LiveBeats

Mr. Tada from YAMAHA Corp introduced a new product called "Web Music DAW Connector". This is a VST plugin that connects a DAW system with a browser via WebSocket. He showed us a demonstration: his Cubase connects with Chrome running on remote Nexus 7 over Wifi and that inserts an effect.
Web and music are getting closer and closer.
 

JSPA (Japan Synthesizer Programmer Association) presented us a song written specifically for this event. And it is intended to play on PokeMiku, so it sings. For those who are not familiar with Vocaloid technology, check this out. It's a very popular technology in Japan.
 

This reminded me of making music on top of browsers is the goal for this event. We are still making "sounds" but eventually creating "music" using these technologies, should be the ultimate goal.

Hacking

There were 40+ attendees and people from W3C, instrument makers (YAMAHA, Roland, Korg, Crimson Technologies), JSPA, AMEI (Association of Musical Electronics Industry),etc. It's more like instrument industry event from outside. (Attendees were mostly web engineers I guess)

The instrument makers lent us many equipments as usual, but attendees also brought their own fun gadgets to the venue. Check out photos from the event (click on the picture below).


Demos

We started hacking at 11:30AM, finished at 4:30PM. There was only 5 hours hacking time, but people came up with fantastic works in total 26! I can't mention about everything, so let me pick up some best ones.

We have an archive of live streaming of 2 and half hours of demo time. If you are interested or bored, check it out. (click on pictures to start the video from relevant time)

Mr. Murai


Mr. Murai is called a father of Japanese internet. He showed up as a special guest and it was an honor that he's interested in this technology. People got excited.

D.F.Mac

This was the 3rd attendance for D.F.Mac to this hackathon. Everything he creates is unique and this one didn't betray us. He made vegetables and cans into instruments. Try the video to hear the weird sound. I don't know how it works in detail, but here's the technical document he wrote (in Japanese).

Masayuki Yokobori

He stole his son's toys and created an app using them. The train make sounds using MIDI.


Daichi Hirono

ScoreSketch is a simple sequencer by the winner of 2nd hackathon.

kirinsan.org

Dictates sound Otamatone generates, convert it to MIDI signals, and play synthesizer.

Takashi Takagi(@okame_okame)

Electric Mokugyo (Source code)
Mokugyo is a wooden drum that buddhists use to pray. He used it as an instrument.

@watilde

abeck.js (Source code)
By writing a music sequence using ABC notation, it plays music and draws a sheet.

@mohayonao, @nanonum

Automatic composition (Source code)
Some people may know @mohayonao for creating incredible web audio demos. He and @nanonum created a cool music / visualization demo.

CookPitch

This is one of unique demos using Web Audio. It demonstrated a recipe site user can navigate pages by hamming, without using hand. Good for cooks.

Himakan

Face Tracking Effector (Source code)
The winner of this hackathon. I've seen similar ideas before, but this one is way cooler.

@aike1000

Future effectors
Realistic effectors on a browser. @aike1000 played one of his composition with his guitar using these.

@sascacci

Miracle collaboration
A collaboration of V-Drum and Dontata-kun. Dontata-kun is a little drum player controlled via MIDI. He demonstrated Dontata-kun playing drums synching him playing drums! using JSPA's song.

@g200kg

@g200kg showed a revised version of Livebeats.


Closing


This one was again, successful and fun hackathon. Attendees seem to be getting used to using their own favorite platform to build an audio app. Hopefully we can invite musicians and create music as well as apps, in the future.

See you next time!



P.S. Main organizer Ryoya Kawai. Otsukare sama!

2014年9月17日水曜日

ブラウザで音を楽しむイベント:Web Music ハッカソン #3 レポート



ブラウザで利用可能な Web Audio API や Web MIDI API などを使って音を楽しもうというこのハッカソンも、早いものでもう3回目となりました。今回も実に濃い内容で、素晴らしい作品が目白押しだったのですが、このポストではできるだけさらっと、その内容をお伝えしたいと思います。

実は今回のハッカソン、前日にベルリンで Web Audio Hackday というイベントが開催されており、せっかく日程が近いのだから何かコラボレートしたいよね、ということで連絡を取り合い、ひとまず報告ブログという形で成果を見せ合うという試みをしています。この後で英語版の記事をポストする予定。ベルリンからの報告も、公開され次第リンクします。

オープニング

まずは挨拶の後、Google エンジニアで Web MIDI API の実装を担当している @toyoshim から、Web MIDI API の仕様に関するアップデートでスタート。資料はこちら:

そして今回もチューターとして参加された、日本の Web Music の世界ではすでに有名人の (実は世界的にも知る人ぞ知る) @g200kg さん、@aike1000 さん、@sascacci さんそれぞれから、Web Audio / MIDI を使ったアプリケーションのデモが行われました。あまりのレベルの高さにハッカソンのハードルがグググッと上がります。

@sascacci さんは 電子ドラムを使ったビジュアルエフェクト



@aike1000 さんからは各種テンプレートの紹介とデモ。サンプルコード集 は Web Audio API を使ってサイン波を出すところから、サンプル音の再生、ディレイやピッチチェンジャー、ディストーションの使い方などかなり便利なスニペットが書かれているので、ウェブ上のオーディオプログラミングに興味ある人は必ずチェックしましょう。 他にもシンセのテンプレ集VJフレームワークも。


@g200kg さんからは LiveBeats のデモ

また、ヤマハの多田氏から DAW (Digital Audio Workstation)、つまりいわゆるプロ向け音楽制作環境とブラウザを接続するための Web Music DAW Connector が発表されました。これがあれば、プロの音楽制作に JavaScript で作ったプラグインを持ち込むことができるようになります。
Web Music の世界が着実に前進していることを感じますね。
 

そして今回はなんと、JSPA (日本シンセサイザープログラマー協会) の方がこのイベントのために曲を作って披露してくれました。音源にポケミクを使っているので、伴奏はもちろん、初音ミクの歌が付いています。映像も制作してくれました。

 

このイベントは元々、ウェブプラットフォーム上で「音楽」と呼べるレベルのことができるようになることを目標にしていたので、良い刺激をもらいました。現段階では「音」レベルの原始的なところに留まっていると言わざるをえませんが、さらにプラットフォームを積み上げて、より音楽的なことができるようにしていくのが醍醐味とも言えます。

ハッキング

会場には参加者40名超に加え、W3C、ヤマハ、ローランド、コルグ、クリムゾンテクノロジーの各楽器メーカー、JSPA (日本シンセサイザープログラマー協会)AMEI (音楽電子事業協会) 関連の方など、多数ご来場頂きました。ウェブ業界よりも楽器業界からの注目度の高さの方が目立つくらいです。

今回も各楽器メーカーから楽器を貸し出して頂いたのですが、自前の楽器を持参された方がかなり多かったのが印象的です。その他ハッキング中の熱気は写真でご覧頂きましょう。


デモタイム

11時半に始まったハッキングタイムも16時半で終了。たったの5時間という短い時間でしたが、チューターのものも含めて、ユニークな作品が合計で26個制作されました。すべて紹介するわけにはいかないので、一部だけピックアップして紹介します。

これまでの反省を踏まえ、今回のデモのライブストリームでは、音声をラインで取って配信したため、非常にクオリティの高い動画を残すことができました。Roland さん、機材をご提供頂きありがとうございました。2時間半ありますが、ご興味ある方はぜひライブストリーム全体のアーカイブもお楽しみ下さい。

※各画像は YouTube の該当箇所にリンクしています。

村井教授


デモタイム最初にスペシャルゲストとして登場したのは日本のインターネットの父こと、慶応大学の村井純教授。ご挨拶を頂きました。スペシャルゲストの登場に、俄然盛り上がります。

D.F.Mac

3 回目の登場で皆勤賞となる D.F.Mac さんですが、今回も個性的な作品で会場を困惑させてくれました。野菜や空き缶をトリガーにブラウザと連携したDAWから音が鳴るという作品。詳しい解説はこちら

ヨコボリマサユキ

電車でGo! のコントローラーを MIDI で繋いでそれっぽい音が出せるという作品。


廣野大地

ScoreSketch は簡易型シーケンサー。前回優勝者の作品らしく、非常に完成度が高いです。

kirinsan.org

オタマトーンの音を解析して?MIDI 信号に変換し、シンセサイザーを鳴らすという作品。

高木崇(@okame_okame)

エレキ木魚 (ソースコード)
毎回木魚芸^Hアートを披露してくれる高木さんの新作。

@watilde

abeck.js (ソースコード)
ABC記譜法でシーケンスを登録すると、音楽の再生と譜面の生成ができるという作品。

@mohayonao, @nanonum

自動作曲 (ソースコード)
入賞こそ逃しましたが、音楽的にもかっこよく、ビジュアライゼーションまで付いている贅沢な作品。

CookPitch

ハミングでページ送りなどができるレシピサービス。手を使わずに済むので、料理をしながら PC が見れます!

Himakan

Face Tracking Effector (ソースコード)
今回の優勝作品です。アイディア的に似たようなものはいくつか見てきましたが、この作品は圧倒的にかっこよいです。

@aike1000

未来のエフェクター
オープニングのデモで披露してくれたギターエフェクトに、それっぽい見た目 (どこかで見たような・・・?) を加えて、曲として演奏してくださいました。

@sascacci

奇跡のコラボ
V ドラムと Dontata くんの奇跡のコラボです。V ドラムに合わせて Dontata くんがドラムを叩いてくれます。そして JSPA 提供の楽曲に合わせてセッション!

@g200kg

Livebeats の改良版を披露してくださいました。


まとめ


今回も大いに盛り上がった Web Music ハッカソンでした。みなさん使い慣れたプラットフォームなどができてきて、徐々に音楽的になってきていることを感じます。まだしばらく時間はかかりそうですが、個人的にはミュージシャンが参加しても楽しめるようなイベントになるといいな、と感じています。
次回もお楽しみに!



P.S. 主催の河合さん、お疲れ様でした!