These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||
<?php require_once 'MIDI.php'; $mididata = file_get_contents($argv[1]); $midi = new IO_MIDI(); $midi->parse($mididata); $midi->dump();
HEADER: Format: 1 NumberOfTracks: 9 DivisionFlag: 0 Division: 480 TRACK[0]: CHUNK[0]: DeltaTime: 0 EventType: 15(Meta Event) MIDIChannel: 15 MetaEventType: 3(Sequence/Track Name) MetaEventData: akatomb.mid CHUNK[1]: DeltaTime: 0 EventType: 15(Meta Event) MIDIChannel: 15 MetaEventType: 84(SMPTE Offset) MetaEventData: `^@^@^@^@すみません。後で編集し易いように SMPTE Offset とか
<?php require_once 'MFi.php'; $mfidata = file_get_contents($argv[1]); $mfi = new IO_MFi(); $mfi->parse($mfidata); $mfi->dump();
Header Part: Identifier: melo FileLength: 3762 OffsetToTrack: 76 DataTypeMajor: 1 DataTypeMinor: 1 NumberOfTrack: 1 Data Information Part: [0] Identifer: titl Length: 21 Data: mbox_Elgar_ainoaisatu [1] Identifer: prot Length: 15 Data: PsmPlayer V4.41 [2] Identifer: sorc Length: 1 Data: 0 [3] Identifer: vers Length: 4 Data: 808661040 [4] Identifer: note Length: 2 Data: 1 Track Part [0] Identifer: 1 Length: 1 Event: [0] DeltaTime: 0 StatusInfo: 255 StatusInfo2: 195 Data: 75 [1] DeltaTime: 0 StatusInfo: 255 StatusInfo2: 225 Data: 2 [2] <略>
<?php require_once 'SMAF.php'; $smafdata = file_get_contents($argv[1]); $smaf = new IO_SMAF(); $smaf->parse($smafdata); $smaf->dump();
array(2) { ["ID"]=> string(4) "MMMD" ["Size"]=> int(4214) } array(3) { array(3) { [0]=> array(7) { ["ID"]=> string(4) "CNTI" ["Size"]=> int(5) ["Contents Class"]=> int(0) ["Contents Type"]=> int(51) ["Contents Code Type"]=> int(1) ["Copy Status"]=> int(253) ["Copy Counts"]=> int(0) } [1]=> array(3) { ["ID"]=> string(4) "OPDA" ["Size"]=> int(40) ["Chunks"]=> array(1) { <略>
00000040 39 33 31 37 32 4d 54 52 05 00 00 10 2f 02 00 02 |93172MTR..../...| <----------> <---------> <> <> <> ID size FT ST TD 00000050 02 40 40 40 00 40 40 40 40 40 40 40 40 40 40 40 |.@@@.@@@@@@@@@@@| <> <---> <-----??????????????????????????------- TG CS 00000060 40 4d 74 73 75 00 00 00 32 f0 06 43 79 06 7f 7f |@Mtsu...2..Cy...| ?> <---------> IDparse 時は読み飛ばせば良いけど、build 時は padding をいくつ埋めるべきか知らないといけない。でも仕様書に記述がない。世の中の mmf ファイルの調査して、その法則を調べるしかないかな。
yoya@gw:~/git/phpopengl/php_opengl/sprite1$ php main.php freeglut (1): Unable to create direct context rendering for window 'main.php' This may hurt performance. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /home/yoya/git/phpopengl/php_opengl/sprite1/main.php on line 108
yoya@gw:~/git/phpopengl/samples/tokoi/sprite1$ php main.php freeglut (main.php): Unable to create direct context rendering for window 'main.php' This may hurt performance. X Error of failed request: GLXBadRenderRequest Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 37 Current serial number in output stream: 38なんでだろう? VNC 越しに動かしてるのとか binding おかしいとか色々心当たりあるので、 順番に潰さないとです。
yoya@gw:~/git/phpopengl/samples/kotsubu-chan$ php colorCube.php freeglut Unable to create direct context rendering for window '' This may hurt performance. X Error of failed request: GLXBadRenderRequest Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 1 (X_GLXRender) Serial number of failed request: 39 Current serial number in output stream: 41こちらは glDrawElements でエラー。
glMaterialfv(GL_FRONT, GL_DIFFUSE, $color); glTranslatef($position[0], $position[1], $position[2]); glutSolidSphere(0.08, 16, 10);
- #define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 16))) + #define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 8)))おバカ… !||!○| ̄|_
glutKeyboardUpFunc('keyboardUp'); glutSpecialUpFunc('specialUpKey'); glutIgnoreKeyRepeat(GL_TRUE);//キー・リピート無視