é常ã«çãã³ã¼ãããé³æ¥½ãçæããã®ããããããã£ãã®ã§ï¼ç解ãæ·±ãããã¨æã£ã¦ï¼ãã¬ã¤ã¤ã¼ãä½ã£ãï¼
åå¼·ç¨ã«ä½ã£ãã ãã§ï¼æ¢åã®ãã¬ã¤ã¤ã¼ã¨æ¯ã¹ã¦ï¼ä½ãæ©è½ãå¢ããããã¦ããããã§ã¯ãªãï¼
http://hitode909.appspot.com/one-liner-music/
Web Audioã使ã£ã¦ããï¼Google Chromeã§åãï¼
åè
æè¦
- é³ãåºããªããé¢æ°æ¸ãæããããã®ã§ï¼ã©ã¤ãã§ä½¿ãã®ã«åãã¦ã
- ãµã³ããªã³ã°ã¬ã¼ããè½ã¨ãã¨å¤ãªé³ãèãåãããããªã
- WAVãã¡ã¤ã«ãçæãã¦åçããå½¢å¼ã®ãã¬ã¤ã¤ã¼ã¨é³ãã¡ãã£ã¨éãæ°ãããï¼8ãããã§è¨ç®ããã®ã16ãããã«å¤æãã¦åçããã¨ãã«å£åãã¦ãã?
- 波形ã®å¯è¦åï¼ãã¼ãªã¨å¤æãã¦å¨æ³¢æ°ãã¨ã«è¡¨ç¤ºãã¦ããã®ãã¨æã£ããï¼ããã§ã¯ãªãã¦ï¼æ®éã«æ³¢å½¢ã縦â横ã®é ã«ä¸¦ã¹ã¦ããã ãã ã£ã
- Web Audioããã£ã¨é³ãåºãã¦ãã¨é³ãåºãªããªãï¼ãªãã¼ãããããã©ã¦ã¶ãåèµ·åãããããã¨ç´ãï¼åå ä¸æ
- WAVãã¡ã¤ã«ãä½ãã¾ãã£ã¦ãã¼ã¸ã«åãè¾¼ãããï¼Web Audioã使ã£ãã»ããããé³ãåºããï¼ãããªã«éããªããªãã¦è¯ãï¼ãã ãï¼ä½¿ãããã©ã¦ã¶ãéããã¦ããï¼Firefoxã«ããªãããããã©ï¼ä½¿ãæ¹ãéãï¼
- é³ãåºãããã®JavaScriptã®é¢æ°ãå ¥åã§ããã®ã ãã©ï¼alert(1)ã¨ãæ¸ãã¨å»¶ã ã¨alertãåºããããï¼æ²ãå ±æã¨ãè¨ã£ã¦cookieåããããããã¨å«ã ã£ãã®ã§ï¼å ±ææ©è½ã¯ãªããã¦ãã
- Web Audioã®APIï¼ãªããã¦ãã¨ããããããããã ã£ãï¼ãªãºã ãã·ã³ã®ãã¤ã¨ãï¼ãã¡ããã¡ãæ¸ãã¦ãã£ã¦ï¼ãµã³ãã«ãç»é²ãã¦åçã¨ãï¼ã¨ãã§ã¯ãããããã¨ãï¼ããããã ã£ã
ä½å
(t<<2|t<<3 ) | (t | (t / 15))
t&(t<<(t/800)) | (t-16000)*((t-16000)<<((t-16000)/800)) | (t-32000)&((t-32000)<<((t-32000)/800))
å ¬åã§ä½ã£ãæ²
(t<<2 & t>>2) | (t<<3 & t>>3) | (t<<7 & t>>7)
éããªæ²
(Math.sin(t/((t>>10)%7+2))*0.7 + Math.sin(t/((t>>11)%4+3)) + Math.sin(t/((t>>13)%6+4)))*30+128