HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2016
0711
Freedom Programmer(¤Õ¤ê¤×¤í¡Ë¥Ó¡¼¥È¡ü¥Ë¥¢É÷¥²¡¼¥à¤òºî¤í¤¦¤ÈʳƮ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¿ô¡¹¤ÎÌäÂ꤬¡Ä8²ò·è


Freedom Programmer(¤Õ¤ê¤×¤í¡Ë

¥ê¥ó¥¯

2016/7/11(Mon) 19:31:26|NO.76151

¤³¤ó¤Ð¤ó¤Ï¡£

¥Ó¡¼¥È¡ü¥Ë¥¢IIDXÉ÷¤Î¥²¡¼¥à¤ò²Æ¤Î¼«Í³²ÝÂê¥×¥í¥¸¥§¥¯¥È¤È¤·¤Æ
À½ºî¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢£²¤Ä¤ÎÌäÂê¤ËƬ¤òÊú¤¨¤Æ¤¤¤Þ¤¹¡£
¤½¤ÎÌäÂ꤬²¿¤«¤È¤¤¤¦¤È

£±¡¢ÉèÌ̤Υ¿¥¤¥ß¥ó¥°¤¬¹ç¤ï¤Ê¤¤¡¡¡Ê¤³¤ì¤¬ºÇ½ÅÍסË
£²¡¢ÉèÌ̺ÆÀ¸Ãæ¡¢¥­¡¼¥Ü¡¼¥É¤Î¥­¡¼¤ò²¡¤¹¤ÈFPS¤¬ÊÑÆ°¤¹¤ë
¡¡¡¡¤¢¤È¡¢¡Ö¥­¡¼¤ò²¡¤·¤¿Ä¾¸å¤Î¤ßȽÄê¤ò¹Ô¤¦¡×¤Î¼ÂÁõ¤¬¤ï¤«¤é¤Ê¤¤

¡Ú¥¹¥¯¥ê¥×¥È¡Û

#include "d3m.hsp" title "Beatrush ÉèÌ̥ƥ¹¥¿¡¼" screen 0,800,600 max=2000 bpm=0 dim timing,max dim key,max dim ny,max dim tuuka,max dim dr,max dim tk,8 dim cir,8 dim xmore,8 dim ymore,8 dim feed,8 dim tim,8 sdim filename sdim musicname sdim log sdim notes sdim keys sdim bpms repeat max-1 timing(cnt)=double(timing(cnt)) ny(cnt)=double(ny(cnt)) loop time = double(time) movms = double(movms) onebeat = double(onebeat) *filenameinput mes "ÉèÌÌ¥Õ¥¡¥¤¥ë" mesbox filename,300,60,5 mes "" mes "²»³Ú¥Õ¥¡¥¤¥ë" mesbox musicname,300,60,5 mes "" button goto "",*check stop *check cls mes "Checking Notes Timing Data..." exist filename : if strsize =-1 { mes "ÉèÌÌ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ notesel log noteload filename exist musicname : if strsize =-1 { mes "²»³Ú¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ mmload musicname,0,1 mes "¥¿¥¤¥ß¥ó¥°¾ðÊó¤òÆɤ߹þ¤ó¤Ç¤¤¤Þ¤¹" repeat noteget notes,count if notes="" { mes "done." break }else{ timing(cnt) = double(notes)¡¡ count + 1 noteget keys,count if keys = "" { mes "Error in Keycode Read Line(" + count + ")" stop }else{ if keys="A" : key(cnt)=1 if keys="I" : key(cnt)=2 if keys="S" : key(cnt)=3 if keys="O" : key(cnt)=4 if keys="D" : key(cnt)=5 if keys="P" : key(cnt)=6 if keys="F" : key(cnt)=7 if keys="B" : key(cnt)=8 count + 1 } } loop noteget bpms,count+1 if bpms = "" { mes "Error in BPM read line" stop }else{ bpm = int(bpms) } } } onebeat = 60000/bpm¡¡¡¡//°ìÇï¤Î»þ´Ö movms = 500.0/onebeat //YºÂɸ¤¬0¤«¤é500¤Þ¤Ç¤Î1px¤¢¤¿¤ê¤Î°ÜÆ°ÎÌ dim ny,max mmplay 0 repeat redraw 0 color 0,0,0 : boxf color 255,255,255 line 30,0,30,600 line 50,0,50,600 line 70,0,70,600 line 90,0,90,600 line 110,0,110,600 line 130,0,130,600 line 150,0,150,600 line 170,0,170,600 line 0,500,170,500 pos 200,0 mes "First Notes : " + timing(0) mes "Time :" + time mes "FPS :" + d3getfps() mes "BPM :" + bpm mes "movms:" + movms mes "one.b:" + onebeat mes "All.n:" + count/2 mes "¥é¥¤¥óÄ̲á:" + tuuka gosub *draw gosub *move time + movms redraw 1 await 16 loop *draw repeat count/2 if timing(cnt)<=time :if dr(cnt)=1{ if key(cnt) = 1 : color 255,255,255 : boxf 31,ny(cnt),50,ny(cnt)+5 if key(cnt) = 2 : color 0,0,255 : boxf 51,ny(cnt),70,ny(cnt)+5 if key(cnt) = 3 : color 255,255,255 : boxf 71,ny(cnt),90,ny(cnt)+5 if key(cnt) = 4 : color 0,0,255 : boxf 91,ny(cnt),110,ny(cnt)+5 if key(cnt) = 5 : color 255,255,255 : boxf 111,ny(cnt),130,ny(cnt)+5 if key(cnt) = 6 : color 0,0,255 : boxf 131,ny(cnt),150,ny(cnt)+5 if key(cnt) = 7 : color 255,255,255 : boxf 151,ny(cnt),170,ny(cnt)+5 if key(cnt) = 8 : color 255,0,0 : boxf 0,ny(cnt),30,ny(cnt)+5 } loop return *move repeat count/2 if dr(cnt)=0 : if timing(cnt)<=time : dr(cnt)=1 if dr(cnt)=1 : ny(cnt)+movms if dr(cnt)=1 : if ny(cnt)>=500 : dr(cnt)=2 : tuuka+1 { if key(cnt)=1 : tk(0)=1 //¤³¤³¤«¤é if key(cnt)=2 : tk(1)=1 if key(cnt)=3 : tk(2)=1 if key(cnt)=4 : tk(3)=1 if key(cnt)=5 : tk(4)=1 if key(cnt)=6 : tk(5)=1 if key(cnt)=7 : tk(6)=1 if key(cnt)=8 : tk(7)=1 //¤³¤³¤Þ¤Ç¤ÎŽ½ŽÌŽßŽØŽ¸ŽÄ¤Ï´Ø·¸¤¢¤ê¤Þ¤»¤ó } loop return

¢¨ÉèÌ̺ÆÀ¸ÍÑ¥¹¥¯¥ê¥×¥È¤Ê¤Î¤Ç¥¿¥¤¥ß¥ó¥°È½Äê¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¡¡¡Ê¼«Ê¬¤¬¥¿¥¤¥ß¥ó¥°È½Äê¤Î¥¹¥¯¥ê¥×¥È¤ò¾å¼ê¤¯ÁȤá¤Ê¤¤¤È¤¤¤¦Íýͳ¤â¤¢¤ë¡Ë

¡ÚÉèÌ̥ǡ¼¥¿¡Û

1000.000000¡¡¥¿¥¤¥ß¥ó¥°¡Ê¤³¤ì¤ò´ðËܤȤ·¤Æ¥¿¥¤¥ß¥ó¥°¤ò¹ç¤ï¤»¤Þ¤¹¡Ë
A¡¡¡¡¡¡¡¡¡¡¡¡¥­¡¼¡¡¡Ê¤É¤³¤Î¥Î¡¼¥Ä¤Ê¤Î¤«¤òɽ¤·¤Þ¤¹¡Ë

2¹Ô¤¬¤Þ¤È¤Þ¤ê¡¢£±¤Ä¤Î¥Î¡¼¥Ä¥¿¥¤¥ß¥ó¥°¥Ç¡¼¥¿¤È¤Ê¤ê¤Þ¤¹


¡ÚÌäÂê­¢¤Ë¤Ä¤¤¤Æ¡Û¢¨keycodeÊÑ¿ô¤Ï¤¢¤é¤«¤¸¤á¡¢Ê¸»ú¥³¡¼¥É¤òÂåÆþ¤·¤Æ¤¤¤Þ¤¹¡£

repeat redraw 0 color 0,0,0 : boxf color 255,255,255 ¡¡¡ÊÃæά¡Ë repeat 9,1 getkey a,keycode(cnt) : if a { ¡¡¡ÊȽÄê½èÍý¡Ë } loop redraw 1 await 16 loop ¡Ä°ìÂΤʤˤ¬¤¤¤±¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© ¤À¤ì¤«¡¢½õ¤±¤Æ¤¯¤À¤µ¤¤¡ª¡ª



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


Ä̤ꤹ¤¬¤ê

¥ê¥ó¥¯

2016/7/11(Mon) 20:32:15|NO.76152

ľ¤°¤Ë¤ï¤«¤ëÈϰϤÀ¤È
boxf¤ÇÁ´²èÌÌÅɤê¤Ä¤Ö¤µ¤Ê¤¯¤Æ¤â¤¤¤¤¤Î¤Ç¤Ï¡©

gcopy¤ÇÊ̤βèÌ̤ËÉÁ¼Ì¤·¤¿¤â¤Î¤ò¼Ì¤¹¡Êboxf¤âɬÍפʤ¯¤Ê¤ë¡Ë¤¬´ðËÜ



Ä̤ꤹ¤¬¤ê

¥ê¥ó¥¯

2016/7/11(Mon) 20:48:09|NO.76153

²áµî¤Ë¡¡»÷¤¿¤è¤¦¤Ê¼ÁÌ䤬¤¢¤Ã¤¿¤è

ttp://hsp.tv/play/pforum.php?mode=pastwch&num=21566



Freedom Programmer(¤Õ¤ê¤×¤í¡Ë

¥ê¥ó¥¯

2016/7/11(Mon) 21:43:06|NO.76155

»÷¤¿¤è¤¦¤Ê¼ÁÌ䤬¤¢¤ê¤Þ¤·¤¿¤«¡Ä
¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£Ä´¤ÙÉÔ­¤Ç¤¹¡Ä¡£

¤¢¤È¡¢ÀâÌÀ¤¬»¨¤Ç¤¹¤¤¤Þ¤»¤ó¡£

¤´ÌÂÏǤò¤ª¤«¤±¤·¤Þ¤·¤¿¡Ä¡£



²Ë¿Í

¥ê¥ó¥¯

2016/7/11(Mon) 21:46:07|NO.76156

¿§¡¹¤È¤ª¤«¤·¤¤¡¦¡¦¡¦
>movms = 500.0/onebeat //YºÂɸ¤¬0¤«¤é500¤Þ¤Ç¤Î1px¤¢¤¿¤ê¤Î°ÜÆ°ÎÌ
¤³¤ì¤Ï500¥É¥Ã¥È¤ò1¥Ó¡¼¥È¤Î»þ´ÖÆâ¤Ë¿Ê¤à»þ¤Î1ms¤Î°ÜÆ°Î̤ˤʤäƤë¤Î¤Ç
»ÈÍÑ»þ¤Ë¤Ï¥ß¥êÉäηвá»þ´Ö¤ò³Ý¤±¤ëɬÍפ¬¤¢¤ë
> if dr(cnt)=1 : ny(cnt)+movms
¤³¤ì¤ò

if dr(cnt)=1 : ny(cnt)=movms*¥Î¡¼¥È¤Î·Ð²á¥ß¥êÉÃ
¤ÎÍͤˤ¹¤ë
¸å
>time + movms
¤ò

time=¥¹¥¿¡¼¥È¤«¤é¤Î·Ð²á¥ß¥êÉÃ
¤Ë¤¹¤ë

¤½¤ì¤«¤é
> if dr(cnt)=0 : if timing(cnt)<=time : dr(cnt)=1
¤³¤ì¤À¤È½Ð¸½¥¿¥¤¥ß¥ó¥°¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç
ȽÄê°ÌÃ֤Υ¿¥¤¥ß¥ó¥°¤Ë¤Ï¤Ê¤é¤Ê¤¤

¼ê¤Ã¼è¤êÁᤤ²ò·èºö¤È¤·¤Æ¤Ï
¾å¤Îmovms¡¢time¤Î½¤Àµ¤ò¤·¤Æ¤ë²¾Äê¤Ç
>movms = 500.0/onebeat //YºÂɸ¤¬0¤«¤é500¤Þ¤Ç¤Î1px¤¢¤¿¤ê¤Î°ÜÆ°ÎÌ
¤Î²¼¤¢¤¿¤ê¤Ë

repeat count/2 timing(cnt)-=500.0/movms loop
¤òÄɲ乤ë¤È
500¥É¥Ã¥Èʬ¥¿¥¤¥ß¥ó¥°¤¬¤º¤ì¤ë¤Î¤Ç
ȽÄê°ÌÃ֤Ƿвá»þ´Ö¤È¸µ¤Î»ØÄ꥿¥¤¥ß¥ó¥°¤¬Æ±¤¸¤Ë¤Ê¤ë



Freedom Programmer(¤Õ¤ê¤×¤í¡Ë

¥ê¥ó¥¯

2016/7/12(Tue) 22:15:46|NO.76165

¡Ä¤¹¤¤¤Þ¤»¤ó¡£¤´ÊÖ¿®¤¬ÃÙ¤ì¤Þ¤·¤¿¡£
¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

¡¦¡¦¡¦¤Þ¤À¡¢»î¹Ôºø¸íÃæ¤Ç¤¹¡£



Freedom Programmer(¤Õ¤ê¤×¤í¡Ë

¥ê¥ó¥¯

2016/7/13(Wed) 20:00:55|NO.76180

²Ë¿Í¤µ¤ó


#include "d3m.hsp" title "Beatrush ÉèÌ̥ƥ¹¥¿¡¼" screen 0,800,600 max=2000 bpm=0 dim timing,max //¥¿¥¤¥ß¥ó¥°¾ðÊóÍÑ dim key,max //½Ð¸½°ÌÃÖ dim ny,max //¥Î¡¼¥È¤ÎY¥Ý¥¸¥·¥ç¥ó dim tuuka,max //Ä̲á¥Õ¥é¥° dim dr,max //ÉÁ²è¥Õ¥é¥° dim tk,8 dim cir,8 dim xmore,8 dim ymore,8 dim feed,8 dim tim,8 dim keika,max //¥Î¡¼¥È¤´¤È¤ÎÄ̲á¥Õ¥é¥° dim keikastart,max //¥Î¡¼¥È¤´¤È¤Î½Ð¸½»þ¤Î»þ´ÖÂåÆþÍÑ dim lk,max sdim filename sdim musicname sdim log sdim notes sdim keys sdim bpms repeat max-1 timing(cnt)=double(timing(cnt)) ny(cnt)=double(ny(cnt)) loop time = double(time) movms = double(movms) onebeat = double(onebeat) filename = "max300.brn" musicname = "max 300.mp3" *filenameinput mes "ÉèÌÌ¥Õ¥¡¥¤¥ë" mesbox filename,300,60,5 mes "" mes "²»³Ú¥Õ¥¡¥¤¥ë" mesbox musicname,300,60,5 mes "" button goto "",*check stop //¤³¤³¤«¤é *check cls mes "Checking Notes Timing Data..." exist filename : if strsize =-1 { mes "ÉèÌÌ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ notesel log noteload filename exist musicname : if strsize =-1 { mes "²»³Ú¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ mmload musicname,0,1 mes "¥¿¥¤¥ß¥ó¥°¾ðÊó¤òÆɤ߹þ¤ó¤Ç¤¤¤Þ¤¹" repeat noteget notes,count if notes="" { mes "done." break }else{ timing(cnt) = double(notes)// - 8.174 count + 1 noteget keys,count if keys = "" { mes "Error in Keycode Read Line(" + count + ")" stop }else{ if keys="A" : key(cnt)=1 if keys="I" : key(cnt)=2 if keys="S" : key(cnt)=3 if keys="O" : key(cnt)=4 if keys="D" : key(cnt)=5 if keys="P" : key(cnt)=6 if keys="F" : key(cnt)=7 if keys="B" : key(cnt)=8 count + 1 } } loop noteget bpms,count+1 if bpms = "" { mes "Error in BPM read line" stop }else{ bpm = int(bpms) } } } //¤³¤³¤Þ¤Ç¥¿¥¤¥ß¥ó¥°¡¦¥Î¡¼¥È°ÌÃ֤Υǡ¼¥¿Æɤ߹þ¤ßÉôʬ onebeat = 60000/bpm //£±Çï¤Î»þ´Ö¤òµá¤á¤ë movms = 500.0/onebeat //1ms¤¢¤¿¤ê¤Î°ÜÆ°Î̤òµá¤á¤ë repeat count/2 timing(cnt) - 500.0/movms //500¥É¥Ã¥Èʬ¤º¤é¤¹ loop mmplay 0 start_tim = d3timer() //ºÆÀ¸³«»Ï»þ´Ö¤òstart_tim¤ËÂåÆþ repeat redraw 0 color 0,0,0 : boxf color 255,255,255 line 30,0,30,600 line 50,0,50,600 line 70,0,70,600 line 90,0,90,600 line 110,0,110,600 line 130,0,130,600 line 150,0,150,600 line 170,0,170,600 line 0,500,170,500 pos 200,0 mes "First Notes : " + timing(0)¡¡//¤³¢¬¤³¢­¤«¤é mes "Time :" + time mes "FPS :" + d3getfps() mes "BPM :" + bpm mes "movms:" + movms mes "one.b:" + onebeat mes "All.n:" + count/2 mes "¥é¥¤¥óÄ̲á:" + tuuka mes "·Ð²á»þ´Ö" + keika(0) //¤³¢¬¤³¢­¤Þ¤Ç¥Ç¥Ð¥Ã¥°ÍѤΥâ¥Ë¥¿¡¼¤ß¤¿¤¤¤Ê¤ä¤Ä gosub *draw gosub *move gosub *tims time = d3timer() - start_tim redraw 1 await 16 loop *draw repeat count/2 if timing(cnt)<=time :if dr(cnt)=1{ if key(cnt) = 1 : color 255,255,255 : boxf 31,ny(cnt),50,ny(cnt)+5 :if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1¡¡//¥Õ¥é¥°¤¬0¤Ç¥Î¡¼¥È½Ð¸½¤Î¥¿¥¤¥ß¥ó¥°¤¬Í褿¤é if key(cnt) = 2 : color 0,0,255 : boxf 51,ny(cnt),70,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 //¥Î¡¼¥È¤Î½Ð¸½»þ¤Ë¸½ºß¤Î»þ´Ö¤òµ­Ï¿¤·¡¢¥Õ¥é¥°¤ò1¤Ë¤¹¤ë if key(cnt) = 3 : color 255,255,255 : boxf 71,ny(cnt),90,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 if key(cnt) = 4 : color 0,0,255 : boxf 91,ny(cnt),110,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 if key(cnt) = 5 : color 255,255,255 : boxf 111,ny(cnt),130,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 if key(cnt) = 6 : color 0,0,255 : boxf 131,ny(cnt),150,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 if key(cnt) = 7 : color 255,255,255 : boxf 151,ny(cnt),170,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 if key(cnt) = 8 : color 255,0,0 : boxf 0,ny(cnt),30,ny(cnt)+5:if lk(cnt)=0 : keikastart(cnt)=d3timer() : lk(cnt)=1 } loop return *move repeat count/2 if dr(cnt)=0 : if timing(cnt)<=time : dr(cnt)=1 if dr(cnt)=1 :ny(cnt)=movms*keika(cnt) //°ÜÆ°ÎÌ¡ö¥Î¡¼¥È·Ð²á»þ´Ö if dr(cnt)=1 : if ny(cnt)>=500 : dr(cnt)=2 : tuuka+1 { } loop return *tims repeat count/2 if dr(cnt)= 1 : keika(cnt) = abs( keikastart(cnt) - d3timer()) //¥Î¡¼¥È·Ð²á»þ´Ö¤ò·×»» loop return

¤³¤Î¥¹¥¯¥ê¥×¥È¤Ç¼Â¹Ô¤¹¤ë¤È
¥Ç¡¼¥¿¤Ç»ØÄꤷ¤¿»þ´Ö¤Ë¤­¤Á¤ó¤È¥¿¥¤¥ß¥ó¥°¤ò¹ç¤ï¤»¤Æ¤¯¤ì¤¿¤â¤Î¤Î
°ì½Ö¤·¤«¥Î¡¼¥È¤¬¸«¤¨¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£

¸¶°ø¤òõ¤·¤Þ¤·¤¿¤¬¤ï¤«¤é¤º¤Î¤Þ¤Þ¤Ç¤¹¡Ä

¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤¬¡¢¤ª¶µ¤¨¤¤¤¿¤À¤±¤Þ¤»¤ó¤«¡©



²Ë¿Í

¥ê¥ó¥¯

2016/7/13(Wed) 21:30:08|NO.76183

¤¶¤Ã¤È¸«¤¿¤À¤±¤À¤±¤É
keikastart¤ÏÉÁ²è»þ¤¸¤ã̵¤¯½Ð¸½»þ¤ËÆþ¤ì¤Ê¤¤¤È
>if dr(cnt)= 1 : keika(cnt) = abs( keikastart(cnt) - d3timer()) //¥Î¡¼¥È·Ð²á»þ´Ö¤ò·×»»
¤¬gosub *draw¤«¤égosub *tims¤Þ¤Ç¤Î»þ´Ö¤·¤«keika(cnt)¤ËÆþ¤é¤Ê¤¤

¤Æ¡¢¸À¤¦¤«È¯À¸¥¿¥¤¥ß¥ó¥°¤Ïtiming¤ËÆþ¤Ã¤Æ¤ë¤ó¤À¤«¤éºÂɸ·èÄê»þ¤Ë
ºÆÀ¸³«»Ï¤«¤é¤Î·Ð²á»þ´Ö¤ò°ú¤±¤ÐÎɤ¤

¤³¤ó¤Ê´¶¤¸

#include "d3m.hsp" title "Beatrush ÉèÌ̥ƥ¹¥¿¡¼" screen 0,800,600 dim tk,8 dim cir,8 dim xmore,8 dim ymore,8 dim feed,8 dim tim,8 sdim filename sdim musicname sdim log sdim notes sdim keys sdim bpms //³Æ¥­¡¼¤Î¥Î¡¼¥Èɽ¼¨xºÂɸ¡Ê0¤Ï̵¤·¤Ç1¡Á8¤ò»ÈÍѤ¹¤ë¤Î¤ÇÍ×ÁÇ¿ô9¡Ë notx=0, 31,51, 71,91, 111,131, 151, 0 //³Æ¥­¡¼¤Î¥Î¡¼¥ÈÉý notsx=0, 20,20, 20,20, 20, 20, 20, 30 //³Æ¥­¡¼¤Î¥Î¡¼¥È¿§ notr=0, 255,0, 255,0, 255,0, 255, 255 notg=0, 255,0, 255,0, 255,0, 255, 0 notb=0, 255,255, 255,255, 255,255, 255, 0 //¥Æ¥¹¥ÈÍѤ˥ǡ¼¥¿ÀßÄê musicname=dir_exe+"\\hsptv\\bgm1.mid" //bgm1.midÍѤΥΡ¼¥È¥Ç¡¼¥¿¤òºî¤ë ob = 60000.0/144.0¡¡//bgm1.mid¤Î°ìÇï¤Î»þ´Ö tempstr="" repeat 200 //´ðËÜŪ¤Ê¥É¥é¥à¤ò¥»¥Ã¥È if (cnt\2)=0 { if (cnt\4)=2 {tempstr+=""+(ob*cnt-ob/2.0)+"\nB\n"} tempstr+=""+(ob*cnt)+"\nB\n" }else{ tempstr+=""+(ob*cnt)+"\nA\n" } loop tempstr+="\n144.0" memfile tempstr //ºî¤Ã¤¿¥Ç¡¼¥¿¤ònoteload¤ÇÆɤ߹þ¤á¤ë¤è¤¦¤Ë¥á¥â¥ê¥¹¥È¥ê¡¼¥à¤ËÀßÄê filename="MEM:file.mid" //¥á¥â¥ê¥¹¥È¥ê¡¼¥à¤òÆɤ߹þ¤à¤¿¤á¤Î¥Õ¥¡¥¤¥ë̾¤òÂåÆþ //¤³¤³¤Þ¤Ç *filenameinput mes "ÉèÌÌ¥Õ¥¡¥¤¥ë" mesbox filename,300,60,5 mes "" mes "²»³Ú¥Õ¥¡¥¤¥ë" mesbox musicname,300,60,5 mes "" button goto "",*check stop *check cls mes "Checking Notes Timing Data..." exist filename : if strsize =-1 { mes "ÉèÌÌ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ notesel log noteload filename ddim timing,notemax/2 dim key,notemax/2 ddim ny,notemax/2 dim dr,notemax/2 exist musicname : if strsize =-1 { mes "²»³Ú¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó" wait 100 cls 1 goto *filenameinput }else{ //mmload musicname,0,1 //midi¤Î¾ì¹ç¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥Ð¥¤¥¹¤À¤È»þ´Ö´Ø·¸¤ÎÀºÅÙ¤¬»È¤¤Êª¤Ë¤Ê¤é¤Ê¤¤¤Î¤Çmpegvideo¤ò»ÈÍÑ(mp3,wavÅù¤â»ÈÍѤǤ­¤ë) //¤³¤ì¤Ïmmplay¤ÇºÆÀ¸¤¹¤ë¾ì¹ç¤Ë¤â¸À¤¨¤ë¤Î¤Çmidi¤Î¾ì¹çmmplay¤Ï»È¤ï¤Ê¤¤Êý¤¬Îɤ¤¡ÊÀºÅÙ¤¬É¬Íפʾì¹ç¡Ë mci "open \""+musicname+"\" type mpegvideo alias bgm" //°Ê¹ß bgm ¤¬¤³¤Î¥Õ¥¡¥¤¥ë¤ò¼¨¤¹Ê¸»úÎó¤Ë¤Ê¤ë if stat = -1 {mci "open \""+musicname+"\" type mpegvideo2 alias bgm"} //mpegvideo¤¬»È¤¨¤Ê¤«¤Ã¤¿¤émpegvideo2¤ò»ÈÍÑ mci "setaudio bgm volume to 100" //midi¤Î¾ì¹ç¥Ü¥ê¥å¡¼¥à¤¬ºÇÂç¤Ë¤Ê¤Ã¤Æ¤ë»ö¤¬¤¢¤ë¤Î¤ÇÄ´À° onexit *exit mes "¥¿¥¤¥ß¥ó¥°¾ðÊó¤òÆɤ߹þ¤ó¤Ç¤¤¤Þ¤¹" repeat noteget notes,count if notes="" { mes "done." break }else{ timing(cnt) = double(notes)¡¡ count + 1 noteget keys,count if keys = "" { mes "Error in Keycode Read Line(" + count + ")" stop }else{ if keys="A" : key(cnt)=1 if keys="I" : key(cnt)=2 if keys="S" : key(cnt)=3 if keys="O" : key(cnt)=4 if keys="D" : key(cnt)=5 if keys="P" : key(cnt)=6 if keys="F" : key(cnt)=7 if keys="B" : key(cnt)=8 count + 1 } } loop noteget bpms,count+1 mes bpms if bpms = "" { mes "Error in BPM read line" stop }else{ bpm = double(bpms)//À°¿ô¤È¤Ï¸Â¤é¤Ê¤¤¤Î¤Ç } } } max=count/2 //¥Î¡¼¥ÈÁí¿ô onebeat = 60000.0/bpm¡¡//°ìÇï(»Íʬ²»Éä)¤Î»þ´Ö¡Êbpm¤¬¼Â¿ô¤À¤Ã¤¿¤ê¸íº¹¤ò¾¯¤Ê¤¯¤·¤¿¤¤¤Î¤Ç¼Â¿ô¤Ç·×»»¡Ë ViewerTime=onebeat*4 //¥Î¡¼¥È¤¬²èÌ̤«¤é¾Ã¤¨¤ë¤Þ¤Ç¤Î»þ´Ö¡Êonebeat*4¤Ç1¾®Àáʬ¡Ë movms =500.0/ViewerTime //YºÂɸ¤¬0¤«¤é500¤Þ¤Ç¤Î1ms¤¢¤¿¤ê¤Î°ÜÆ°ÎÌ //ȽÄê°ÌÃ֤ޤǤÎɬÍ×»þ´Ö¤ò»»½Ð StartAdjust=500.0/movms-onebeat/4 //midi¤À¤«¤é¤«onebeat/4¡Ê16Éô²»Éäʬ¡ËÃ٤餻¤ë¤È¥¿¥¤¥ß¥ó¥°¤¬¹ç¤¦ //mmplay 0 mci "play bgm" start_tim=d3timer()-StartAdjust //ºÆÀ¸³«»Ï»þ´ÖÂåÆþ(¥¿¥¤¥ß¥ó¥°¤òȽÄê°ÌÃÖÅþÃ奿¥¤¥ß¥ó¥°¤Ë¤¹¤ë¤¿¤á¤Ë¾å¤Ç½Ð¤·¤¿»þ´Ö¤ò°ú¤¯) repeat redraw 0 color 0,0,0 : boxf color 255,255,255 line 30,0,30,600 line 50,0,50,600 line 70,0,70,600 line 90,0,90,600 line 110,0,110,600 line 130,0,130,600 line 150,0,150,600 line 170,0,170,600 line 0,500,170,500 pos 200,0 mes "First Notes : " + timing(0) mes "Time :" + time mes "FPS :" + d3getfps() mes "BPM :" + bpm mes "movms:" + movms mes "one.b:" + onebeat mes "All.n:" + count/2 mes "¥é¥¤¥óÄ̲á:" + tuuka time=double(d3timer())-start_tim //·Ð²á»þ´Ö stick k if k&128 {goto *exit} //Esc¥­¡¼¤Ç½ªÎ» gosub *move //³ÎǧÍѤ˺Ǹå¤Ë²¡¤µ¤ì¤¿¥Ü¥¿¥ó¤Î¥¿¥¤¥ß¥ó¥°¤ÇȽÄêÆâ¤ËÍ­¤Ã¤¿¥Î¡¼¥È¤òɽ¼¨ color 255,255,0 gradf notx(hit_key),hit_ny,notsx(hit_key),5 gosub *draw redraw 1 await 16 loop *move repeat max if dr(cnt)=0 : if timing(cnt)<=time : dr(cnt)=1 if dr(cnt)=1 { ny(cnt)=movms*(time-timing(cnt)) //·Ð²á»þ´Ö¤«¤é½Ð¸½¥¿¥¤¥ß¥ó¥°¤ò°ú¤¤¤Æ¥Î¡¼¥È¤Î·Ð²á»þ´Ö¤ò½Ð¤·¤Æ°ÜÆ°Î̤ò³Ý¤±¤ÆYºÂɸ¤Ë¤¹¤ë if ny(cnt)>=480 { if ny(cnt)<=520 {//480¡Á520¤Î´Ö¤Ê¤éȽÄꤹ¤ë if k {//¥­¡¼¤¬²¡¤µ¤ì¤¿ hit_ny=ny(cnt) hit_key=key(cnt) dr(cnt)=2 tuuka+1 } }else{//ȽÄêÈϰϤòĶ¤¨¤¿¤Î¤Ç¾Ã¤¹ dr(cnt)=2 tuuka+1 } } } loop return *draw repeat max if timing(cnt)<=time :if dr(cnt)=1{ kid=key(cnt) color notr(kid),notg(kid),notb(kid) gradf notx(kid),ny(cnt),notsx(kid),5 } loop return *exit mci "close all" //Ç°¤Î¤¿¤á½ªÎ»»þ¤Ëmci¤òÊĤ¸¤ë end
¥¹¥Ú¡¼¥¹Åù¤Ç´Ê°×Ū¤Ë¥¿¥¤¥ß¥ó¥°¸¡¾Ú¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿
await 16¤Ê¤Î¤ÇºÇÂç movms*16 ¥É¥Ã¥È²¡¤·¤¿¥¿¥¤¥ß¥ó¥°¤è¤ê¤º¤ì¤ë
º£²ó¤Î¾ì¹çmovms¤¬0.3¤Ê¤Î¤ÇºÇÂç5¥É¥Ã¥È¤°¤é¤¤¤º¤ì¤ë



Freedom Programmer(¤Õ¤ê¤×¤í¡Ë

¥ê¥ó¥¯

2016/7/13(Wed) 22:05:52|NO.76185

²Ë¿Í¤µ¤ó
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ª¡ª
¥¿¥¤¥ß¥ó¥°¤â¥Ð¥Ã¥Á¥·¹ç¤¤¤Þ¤·¤¿¡ª
¥Î¡¼¥È¤¬°ì½Ö¤À¤±É½¼¨¤µ¤ì¤ë¤È¤¤¤¦»ö¤â¤Ê¤¯¤Ê¤ê
̵»ö¤Ë¥Ó¡¼¥È¡ü¥Ë¥¢É÷¤Î¥²¡¼¥à¤¬³«È¯¤Ç¤­¤½¤¦¤Ç¤¹¡ª

¤¢¤È¡¢¤ï¤¶¤ï¤¶¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤¤Æ¤¯¤À¤µ¤ê
¤ª¼ê¿ô¤ò¤ª¤«¤±¤·¤Þ¤·¤¿¡£

ËÜÅö¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£



ONION software Copyright 1997-2023(c) All rights reserved.