2013/04/20 作成
- 抵抗
- 100Ω
- 2.2kΩ
- 10kΩ
- 1MΩ
- 圧電スピーカー SPT08(2個入)http://akizukidenshi.com/catalog/g/gP-01251/
import com.leapmotion.leap.*; | |
import ddf.minim.*; | |
import ddf.minim.signals.*; | |
Minim minim; | |
AudioOutput out; | |
SineWave sine; | |
com.leapmotion.leap.Controller controller = new com.leapmotion.leap.Controller(); | |
void setup() { |
import com.leapmotion.leap.*; | |
Controller controller = new Controller(); | |
void setup() { | |
size(1000, 1000); | |
// ジェスチャーを有効にする | |
controller.enableGesture(Gesture.Type.TYPE_SWIPE); | |
controller.enableGesture(Gesture.Type.TYPE_CIRCLE); |
import twitter4j.conf.*; | |
import twitter4j.internal.async.*; | |
import twitter4j.internal.org.json.*; | |
import twitter4j.internal.logging.*; | |
import twitter4j.http.*; | |
import twitter4j.internal.util.*; | |
import twitter4j.api.*; | |
import twitter4j.util.*; | |
import twitter4j.internal.http.*; | |
import twitter4j.*; |
import javax.sound.midi.*; | |
import java.io.*; | |
/** | |
* MIDIファイルからデータをぶっこぬくコード<br> | |
* 参考:http://d.hatena.ne.jp/UDONCHAN/20090919/1253343146 | |
* @author myy | |
* | |
*/ |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>タイマー</title> | |
</head> | |
<body> | |
<div style="font-size:100px"> | |
<center><p><span id="minutes">0</span>分<span id="seconds">0</span>秒</p> | |
</div></center> |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>1からNまでの整数をランダムに並び替える</title> | |
</head> | |
<body> | |
<h1>1からNまでの整数をランダムに並び替える</h1> | |
<p>並び替えたい数の最大値を入力してください: <input type="text" name="max" id="max" value="0" /> <input type="button" value="決定" onclick="getMax();" /></p> |
# -*- encoding: utf-8 -*- | |
# 2012/11/01 | |
# 1からNまでの整数をランダムに並び替える | |
# 上限値Nを入力してもらう | |
puts "並び替えたい数の上限値を入力してください" | |
max = gets.to_i | |
# 並び替え前の数字が入る配列と並び替え後の配列を用意する |
2013/04/20 作成
// 加速度モジュールを使った楽器 | |
// x軸方向で音程を変える | |
// y軸方向でオクターブを変える | |
// 置いてある状態のときには音を鳴らない | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 | |
#define NOTE_D1 37 | |
#define NOTE_DS1 39 | |
#define NOTE_E1 41 |