â ãã®è¨äºã¯ãIchigoJam Advent Calendar 2024ãã«åå ãã¦ãã¾ãã
ã¯ãªã¹ãã¹ã«ã馴æã¿ã®æ²ãã¸ã³ã°ã«ãã«ãããIchigoJamã®PLAYå½ä»¤ã§å¥ã§ã¦ã¿ã¾ãã
ã¾ãã¯ãã®ã¾ã¾æ¼å¥
ã¨ããããæ®éã«ããã°ã©ã ãæ¸ãã¨ã
10 PLAY "CAGFC2R2 CAGFD2R2 DA+GFE2R2 <CC>A+GA2R2 CAGFC2R2 CAGFD2R2 DA+GF<CCCC DC>A+GFR<CR >AAARAAAR A<C>F4.G8A2R2 A+A+A+A+A+AAA AGGAGR<CR >AAARAAAR A<C>F4.G8A2R2 A+A+A+A+A+AAA <CC>A+GF2R2"
190æåãªã®ã§1è¡ã«ä½ã¨ãå
¥ãã¾ãããä½ããé·ãã®ã§æã¡ã¥ããã§ãã
ãã£ã¨é·ãæ²ã ã£ãã1è¡ï¼250æåï¼ã«å
¥ããªãã§ãããã
ã§ãã®ã§ããã¬ã¼ãºï¼4å°ç¯ï¼ã§åºåã£ã¦PLAYãã¦ã¿ã¾ãã
10 PLAY "CAGFC2R2 CAGFD2R2":WAIT 470 20 PLAY "DA+GFE2R2 <CC>A+GA2R2":WAIT 470 30 PLAY "CAGFC2R2 CAGFD2R2":WAIT 470 40 PLAY "DA+GF<CCCC DC>A+GFR<CR":WAIT 470 50 PLAY "AAARAAAR A<C>F4.G8A2R2":WAIT 470 60 PLAY "A+A+A+A+A+AAA AGGAGR<CR":WAIT 470 70 PLAY "AAARAAAR A<C>F4.G8A2R2":WAIT 470 80 PLAY "A+A+A+A+A+AAA <CC>A+GF2R2"
PLAYå½ä»¤ã¯å®è¡ããã¨ãã次ã¸è¡ã£ã¦ãã¾ãã®ã§ãWAITãå
¥ããªãã¨æ¼å¥ããåã«æ¬¡ã®è¡ã¸è¡ã£ã¦ãã¾ã£ã¦ãæ²ã«ãªãã¾ããã
æ¨æºã ã¨ãã³ã120ï¼T120ã1ç§éã«2æï¼ãªã®ã§ã4å°ç¯ï¼16æï¼ã ã¨8ç§ï¼WAIT 480ï¼å¾
ã¦ã°ããã§ãã
ãããã®ã¾ã¾ãWAIT 480ãã ã¨IchigoJamç°å¢ã«ãã£ã¦ã¯é延ã³ããã®ã§ããWAIT 470ãã«ãã¦ãã¾ãã
æ£ç¢ºã«åã®ãã¬ã¼ãºæ¼å¥ãçµãã£ã¦ãã次ã¸è¡ãã«ã¯ã
10 PLAY "CAGFC2R2 CAGFD2R2" 15 IF SOUND() CONT 20 PLAY "DA+GFE2R2 <CC>A+GA2R2" 25 IF SOUND() CONT 30 PLAY "CAGFC2R2 CAGFD2R2" 35 IF SOUND() CONT 40 PLAY "DA+GF<CCCC DC>A+GFR<CR" 45 IF SOUND() CONT 50 PLAY "AAARAAAR A<C>F4.G8A2R2" 55 IF SOUND() CONT 60 PLAY "A+A+A+A+A+AAA AGGAGR<CR" 65 IF SOUND() CONT 70 PLAY "AAARAAAR A<C>F4.G8A2R2" 75 IF SOUND() CONT 80 PLAY "A+A+A+A+A+AAA <CC>A+GF2R2"
ã¨ãSOUNDé¢æ°ã使ã£ã¦ãæ¼å¥çµäºã¾ã§å¾
ã£ã¦æ¬¡ã¸è¡ãã¨ããã§ãã
ããWAITã§å¾
ã¤æ¹ãæ軽ã§ãããã°ã©ã ãçãã¦æ¸ã¿ã¾ãã
ãã¬ã¼ãºã使ã£ã¦ç縮ãæååæå®
ãã¬ã¼ãºæ¯ã«åºåã£ã¦ã¿ãã¨ã10è¡ã¨30è¡ã50è¡ã¨70è¡ã®ãã¬ã¼ãºã¯å
¨ãåããªã®ããããã¾ãã
é³æ¥½ã®æ²ã¯ããããæ§æãããããã¾ãã
ãã®ãã¸ã³ã°ã«ãã«ããªãããã¬ã¼ãºããAâBâAâCâDâEâDâFãã®æ§æã«ãªã£ã¦ãã¦ãå®éã®ãã¬ã¼ãºã¯6種é¡ããããã¾ããã
ãã£ãããªã®ã§ç縮ã»ç°¡ç¥åãããæã§ãã
ããã§ãæåå¤æ°ããã¾ã使ã£ã¦ã¿ã¾ãã
IchigoJam BASICã§ã¯ãæååãå¤æ°ã«ä»£å
¥ã§ãã¾ãã
A="ABC"
ãã®æãå¤æ°Aã«ã¯ä½ãå
¥ããã¨è¨ãã¨ãæååãABCããå
¥ã£ã¦ããã¡ã¢ãªã®ã¢ãã¬ã¹ãå
¥ãã¾ãã
ï¼ãã®ããã«ã¡ã¢ãªã¢ãã¬ã¹ãå
¥ã£ãå¤æ°ãããã¤ã³ã¿ãã¨è¨ãã¾ãï¼
ããã¦ãPLAYå½ä»¤ãæååã ãã§ãªããæåå¤æ°ï¼ãã¤ã³ã¿ï¼ã§é³éãæå®ã§ãã¾ããä¾ãã°ã
10 A="CDE" 20 PLAY A
ã§ããPLAY "CDE"ãã¨åããããã¬ãããé³´ãã¾ãã
ãã®æåå¤æ°ã使ã£ã¦ãã¸ã³ã°ã«ãã«ãæ¼å¥ãã¦ã¿ã¾ãã
10 A="CAGFC2R2 CAGFD2R2" 20 B="DA+GFE2R2 <CC>A+GA2R2" 30 C="DA+GF<CCCC DC>A+GFR<CR" 40 D="AAARAAAR A<C>F4.G8A2R2" 50 E="A+A+A+A+A+AAA AGGAGR<CR" 60 F="A+A+A+A+A+AAA <CC>A+GF2R2" 70 PLAY A:WAIT 470 80 PLAY B:WAIT 470 90 PLAY A:WAIT 470 100 PLAY C:WAIT 470 110 PLAY D:WAIT 470 120 PLAY E:WAIT 470 130 PLAY D:WAIT 470 140 PLAY F
MMLï¼é³ç¬¦ï¼ãæã¤ã®ã6ãã¬ã¼ãºåã§æ¸ã¿ã¾ãããæ¼å¥é¨åãé çªãããããããã§ãã
ããåããããªãPLAYãããWAITããä½åº¦ãæã¤ã®ãé¢åã§ãã
é åå¤æ°ã使ã
å®ã¯æåå¤æ°ï¼ãã¤ã³ã¿ï¼ã¯é
åå¤æ°ã§ã使ãã¾ãã
é常å¤æ°ãé
åå¤æ°ã«ç½®ãæããã¨ã
10 [0]="CAGFC2R2 CAGFD2R2" 20 [1]="DA+GFE2R2 <CC>A+GA2R2" 30 [2]="DA+GF<CCCC DC>A+GFR<CR" 40 [3]="AAARAAAR A<C>F4.G8A2R2" 50 [4]="A+A+A+A+A+AAA AGGAGR<CR" 60 [5]="A+A+A+A+A+AAA <CC>A+GF2R2" 70 PLAY [0]:WAIT 470 80 PLAY [1]:WAIT 470 90 PLAY [0]:WAIT 470 100 PLAY [2]:WAIT 470 110 PLAY [3]:WAIT 470 120 PLAY [4]:WAIT 470 130 PLAY [3]:WAIT 470 140 PLAY [5]
MMLãé åå¤æ°8åã«è¨å®ããã°ãæ¼å¥é¨åãç°¡ç¥åã§ãã¾ãã
10 [0]="CAGFC2R2 CAGFD2R2" 20 [1]="DA+GFE2R2 <CC>A+GA2R2" 30 [2]=[0] 40 [3]="DA+GF<CCCC DC>A+GFR<CR" 50 [4]="AAARAAAR A<C>F4.G8A2R2" 60 [5]="A+A+A+A+A+AAA AGGAGR<CR" 70 [6]=[4] 80 [7]="A+A+A+A+A+AAA <CC>A+GF2R2" 90 FOR N=0 TO 7 100 PLAY [N]:WAIT 470 110 NEXT
ããã§ãã£ããããæ¼å¥ããã°ã©ã ã«ãªãã¾ããã
WAITã®ä»£ããã«SOUNDé¢æ°ã使ãã°ã
10 [0]="CAGFC2R2 CAGFD2R2" 20 [1]="DA+GFE2R2 <CC>A+GA2R2" 30 [2]=[0] 40 [3]="DA+GF<CCCC DC>A+GFR<CR" 50 [4]="AAARAAAR A<C>F4.G8A2R2" 60 [5]="A+A+A+A+A+AAA AGGAGR<CR" 70 [6]=[4] 80 [7]="A+A+A+A+A+AAA <CC>A+GF2R2" 90 FOR N=0 TO 7 100 PLAY [N] 110 IF SOUND() CONT 120 NEXT
ããããã¨ãåãã¬ã¼ãºã®é·ããéãå ´åããæ¼å¥ãã³ããå¤ããå ´åã«ã対å¿ã§ãã¾ãã
10 [0]="T140CAGFC2R2 CAGFD2R2" 20 [1]="T140DA+GFE2R2 <CC>A+GA2R2" 30 [2]=[0] 40 [3]="T140DA+GF<CCCC DC>A+GFR<CR" 50 [4]="T140AAARAAAR A<C>F4.G8A2R2" 60 [5]="T140A+A+A+A+A+AAA AGGAGR<CR" 70 [6]=[4] 80 [7]="T140A+A+A+A+A+AAA <CC>A+GF2R2" 90 FOR N=0 TO 7 100 PLAY [N] 110 IF SOUND() CONT 120 NEXT
ãã³ã140ï¼T140ï¼ã«ãã¦éããã¦ã¿ã¾ããã
ãã®æ¹ãã¸ã³ã°ã«ãã«ãããã§ã(^_^)