Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Web Audio APIとGitHubのContributionsをマッシュアップしてみた

1.706 Aufrufe

Veröffentlicht am

JSオジサン 「俺の話を聞け、5分だけでもいい」 #2 http://atnd.org/events/50606 で話した資料です。

Veröffentlicht in: Ingenieurwesen
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

Web Audio APIとGitHubのContributionsをマッシュアップしてみた

  1. 1. Web Audio APIと GitHub Contributionsを マッシュアップしてみた @kubosho_
  2. 2. 自己紹介 • Twitter: kubosho_ • 「 社」こと株式会社グラニ所属 • http://blog.o2p.jp/ • へのへのもへじの人
  3. 3. 目次 • デモ • デモについて • ハマったところ • 作った感想
  4. 4. デモ
  5. 5. ローカル上でデモサービスを動かす git clone git@github.com:kubosho/contributions-piano-roll.git cd contributions-piano-roll npm install bower install ./bin/www
  6. 6. デモについて • GitHubのContributionsを元に音を生成し、それを 再生するサービス • GitHubのCotributionsデータをAjaxで読み込み、そ れを元にドレミファソラシの音階データを作成し、 再生する • Contribution数により、音の強弱が変わる
 Contribution数が0の場合は音は出ない
  7. 7. こんな感じのJSONを返してます { "0": [ ["2013/05/28",0], ["2013/05/29",0], ["2013/05/30",0], ["2013/05/31",0], ["2013/06/01",0], ["2013/06/02",0], ["2013/06/03",0] ], "1": [ ["2013/06/04",0], ["2013/06/05",0], ["2013/06/06",2], ["2013/06/07",3], ["2013/06/08",0], ["2013/06/09",3], ["2013/06/10",28] ], "2": [ ["2014/05/27",18], ["2014/05/28",22] ] };
  8. 8. つくろうと思ったきっかけ
  9. 9. つくろうと思ったきっかけ • JSおじさんのために何かサービスを作ろうと 思った • GitHubのContributionsを見ていて、 Contributionsの数によって音になにか変化が 起これば面白いかもと思った
  10. 10. ハマったところ
  11. 11. ContributionsのAPIがない • GitHub DeveloperのAPI一覧を見てもなさそ う • Contributionsのデータ自体は以下のURLにア クセスすることで取得できる(ただし配列形式)
 https://github.com/users/:user/ contributions_calendar_data
  12. 12. ContributionsのAPIがない • 急遽node.jsのsuperagentを使って Contributionsのデータを取ってくるようにし た • 配列形式なので、それをよしなにJSONにし て、expressでルーティングしたURLにアクセ スすると、JSONのデータが取れるようにした
  13. 13. 作った感想
  14. 14. 作った感想 • node.jsを恥ずかしながら今まで触ったことが なかったので、勉強にはなった • Contributionsを取得してJSONにしてその JSONを元に音源を生成して…という実装に手 間取り、いろいろ自分が足りてないと感じた
  15. 15. 【PR】
  16. 16. http://gamebiz.jp/offer/21
  17. 17. 終わり

×