è¶ åæ©çãªGainer mini + SoundCipher
ä»æ¥ã¯Processingã§MIDIãæ±ããã©ã¤ãã©ãªãSoundCipherãã®ä½¿ãæ¹ã調ã¹ã¦ã¾ããã
SoundCipher
http://soundcipher.org/index.html
Gainer miniãµã¤ãï¼http://www.gainer-mini.jp/download.htmlï¼ãããã¦ã³ãã¼ãã§ãããµã³ãã«ã®ä¸ã®ãã¿ã³ãæ¼ãã¦ã¦ã£ã³ãã¦ã®è²ãå¤ããã³ã¼ãã¨SoundCipherã®ãµã³ãã«ã³ã¼ããMIDI File Writerããåããã¦æ¹é ãã¦ã¿ãã®ãããâ
ãã¿ã³ãæ¼ãã¨é³ãé³´ãã¾ãã
GainerPlusSoundCipher1 posted by (C)kanpan
import processing.gainer.*;
import arb.soundcipher.*;Gainer gainer;
SCScore score;
int instrument = 4; // Electric Piano1void setup(){
size(200,200);
background(0);
gainer = new Gainer(this);
score = new SCScore();
float p = score.pcRandom(60, 72, score.PENTATONIC);
score.addNote(0, 1, instrument, p, random(60, 100), 0.25, 0.8, 50);
score.addNote(0.25, 2, instrument, p+4, random(60, 100), 0.25, 0.8, 50);
score.addNote(0.5, 3, instrument, p+7, random(60, 100), 0.25, 0.8, 50);
}void draw(){
if(gainer.buttonPressed){
fill(255,0,0);
score.play();
}else{
fill(0,0,255);
}
rect(20,20,160,160);
}
instrumentã®å¤ãå¤ããã¨æ¥½å¨ã®é³ãå¤ããã使ãã楽å¨ã®é³ã¯MIDIã§æ±ºã¾ã£ã¦ãã¦å
¨é¨ã§127種é¡ã
詳説MIDIè¦æ ¼:GMè¦æ ¼é³è²ããã表
http://www.pluto.dti.ne.jp/~daiki/Midi/IL_ProgramNum.html
ç§ã¯ããããMIDIãã¾ã£ããç¥ããªãã£ãã®ã§ãã¾ãSoundCipherã®ã¬ãã¡ã¬ã³ã¹ã§ä½¿ããã¦ããè¨èããããã(_ _;
詳説MIDIè¦æ ¼
http://www.pluto.dti.ne.jp/~daiki/Midi/Midi.html
ãã®ãµã¤ãã®è§£èª¬ãããããããã£ãã§ããã¨ã¯ãã£ã¦ããã¾ã ã¾ã 楽å¨ã®é³ã®æå®æ¹æ³ããªãã¨ããããã£ãç¨åº¦ãããã¾ã ãããã¨ãããã·ãã£ã¨ããã¼ããªã³ã¨ãå
¨ç¶ãããã¾ãã(^_^;