<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>イテルの一日一問 &#187; 音楽</title>
	<atom:link href="http://oneday.ter.jp/tag/%e9%9f%b3%e6%a5%bd/feed" rel="self" type="application/rss+xml" />
	<link>http://oneday.ter.jp</link>
	<description>一日にひとつは何かを考える。</description>
	<lastBuildDate>Mon, 31 Jan 2011 09:23:33 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://oneday.ter.jp/tag/%e9%9f%b3%e6%a5%bd/feed" />
		<item>
		<title>音楽と同期している・・・っぽく見せる2</title>
		<link>http://oneday.ter.jp/actionscript3/391.html</link>
		<comments>http://oneday.ter.jp/actionscript3/391.html#comments</comments>
		<pubDate>Mon, 13 Jul 2009 13:55:24 +0000</pubDate>
		<dc:creator>イテル</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[あたかも]]></category>
		<category><![CDATA[同期]]></category>
		<category><![CDATA[音楽]]></category>

		<guid isPermaLink="false">http://oneday.ter.jp/?p=391</guid>
		<description><![CDATA[昨日に引き続き音楽と同期している・・・っぽいものを修正した。 イコライザっぽい部分をクリックすると音楽がミュートされる。 フッターのバーも表示するが、ここはテキスト表示部分にする予定。 しかもランダムに円を描くように修正 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://oneday.ter.jp/wp-content/uploads/2009/07/090713-700x200.jpg" alt="090713" title="090713" width="700" height="200" class="alignnone size-thumbnail wp-image-394" /></p>
<p>昨日に引き続き音楽と同期している・・・っぽいものを修正した。</p>
<p>イコライザっぽい部分をクリックすると音楽がミュートされる。</p>
<p>フッターのバーも表示するが、ここはテキスト表示部分にする予定。</p>
<p>しかもランダムに円を描くように修正。</p>
<p>久々に三平方の定理を思い出した。。。</p>
<p>actionscriptは何気に中学生時代にならったことが必要になる。</p>
<p><div style="text-align: center; width:600px; height:200px; line-height:200px; background: #ffffff;"><div id="swfed5c2">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://oneday.ter.jp/swf_data/0907/13/soundImg.swf", "swfed5c2", "600", "200", "9.0.0", "http://oneday.ter.jp/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://oneday.ter.jp/actionscript3/391.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://oneday.ter.jp/actionscript3/391.html" />
	</item>
		<item>
		<title>音楽と同期している・・・っぽく見える</title>
		<link>http://oneday.ter.jp/actionscript3/386.html</link>
		<comments>http://oneday.ter.jp/actionscript3/386.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 15:08:55 +0000</pubDate>
		<dc:creator>イテル</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[あたかも]]></category>
		<category><![CDATA[同期]]></category>
		<category><![CDATA[音楽]]></category>

		<guid isPermaLink="false">http://oneday.ter.jp/?p=386</guid>
		<description><![CDATA[引き続き、as3を勉強中。 音楽と同期している・・・っぽいものを作ってみた。 ランダム性もないし面白みもないですが、せっかく作ったのでアップしみる。 明日以降は円の登場する場所、画像はwpからxmlをなんとかランダムで取 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://oneday.ter.jp/wp-content/uploads/2009/07/090712-700x200.jpg" alt="090712" title="090712" width="700" height="200" class="alignnone size-thumbnail wp-image-396" /></p>
<p>引き続き、as3を勉強中。</p>
<p>音楽と同期している・・・っぽいものを作ってみた。</p>
<p>ランダム性もないし面白みもないですが、せっかく作ったのでアップしみる。</p>
<p>明日以降は円の登場する場所、画像はwpからxmlをなんとかランダムで取得して</p>
<p>表示させるなどにチャレンジしたい。</p>
<p><div style="text-align: center; width:600px; height:200px; line-height:200px; background: #ffffff;"><div id="swfed5c4">This movie requires Flash Player 9.0.0</div></div>
<script type="text/javascript">
	swfobject.embedSWF("http://oneday.ter.jp/swf_data/0907/090712/is.swf", "swfed5c4", "600", "200", "9.0.0", "http://oneday.ter.jp/wp-content/plugins/wp-al-swfobject/expressInstall.swf", {}, {}, {});
</script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://oneday.ter.jp/actionscript3/386.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://oneday.ter.jp/actionscript3/386.html" />
	</item>
		<item>
		<title>as3でイコライザ再び</title>
		<link>http://oneday.ter.jp/actionscript3/226.html</link>
		<comments>http://oneday.ter.jp/actionscript3/226.html#comments</comments>
		<pubDate>Sun, 28 Jun 2009 14:06:24 +0000</pubDate>
		<dc:creator>イテル</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[イコライザ]]></category>
		<category><![CDATA[音楽]]></category>

		<guid isPermaLink="false">http://oneday.ter.jp/?p=226</guid>
		<description><![CDATA[またも、イコライザが気になりクリクリ調査。 52secNoteさんのサイトを発見。 さっそく試してみることにした。 で、できたのがこれ。 If you can see this, then you might need  [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-244" title="090630-2" src="http://oneday.ter.jp/wp-content/uploads/2009/06/090630-21-700x200.jpg" alt="090630-2" width="700" height="200" /></p>
<p>またも、イコライザが気になりクリクリ調査。</p>
<p><a href="http://52sec.org/wordpress/?p=101" target="_blank">52secNote</a>さんのサイトを発見。</p>
<p>さっそく試してみることにした。</p>
<pre class="brush: as3; title: ; notranslate">
var myVolume:int = 0;

var bgm:Sound = new Sound();
bgm.addEventListener(Event.COMPLETE, onSoundLoaded);
var req:URLRequest = new URLRequest(&amp;quot;http://domain.domain/path.mp3&amp;quot;);
var trans:SoundTransform = new SoundTransform(1, 0);
var channel:SoundChannel;
var soundBox01:SoundBox = new SoundBox(5, 5, 2, 2, 1, 1, 0xFFFFFF);
ico_mc.ico_in_mc.addChild(soundBox01);

function onSoundLoaded(event:Event):void{
channel = bgm.play(0, 500);//500はリピート回数
soundBox01.start();
}
bgm.load(req);

//クリックしたとき音楽を停止or再生
ico_mc.buttonMode=true;
ico_mc.addEventListener(MouseEvent.CLICK,click);
function click(e:Event):void{
// 再生チャネルは初期化されている？
if(channel) {
myVolume = ++myVolume % 2;
switch(myVolume) {
case 0:
trans.volume = 0;
break;
case 1:
trans.volume = 1;
break;
}
channel.soundTransform = trans;
}
}
//※再生ボタンなど余計なところは消去してます。
</pre>
<p>で、できたのがこれ。</p>
<p><object type="application/x-shockwave-flash" style="width:125px;height:90px" data="http://oneday.ter.jp/swf_data/0906/090628/ico090628.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://oneday.ter.jp/swf_data/0906/090628/ico090628.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</p>
<p>実はよく理解せぬまま、ためさせてもらった（笑</p>
<p>でもステキだ～。</p>
<p>もっと小さくしたときでもわかりやすいともっとステキ・・・と言ってみるテスト。</p>
<p>また、イコライザをクリックしたときにミュートされるようにしてみたけど、</p>
<p>なんか一回目のクリックのときは無視されるみたい。。。</p>
<p>あとできちんと調べよ。</p>
]]></content:encoded>
			<wfw:commentRss>http://oneday.ter.jp/actionscript3/226.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://oneday.ter.jp/actionscript3/226.html" />
	</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.327 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-09 14:52:33 -->

