[戻る]

[1-] [101-] [201-] [301-] [401-] [501-] [601-] [701-] [最新50] [検索] ※標準/名無しさん

10 黒猫SPCに関する話題(717)

1 管理者 : 2004-07-13 01:21:21 [zXIVQd5A]
黒猫SPCやID6666に関する話はここでお願いします。

SPC自体の話や、script700関係でもOKです。
SPCの在処なんか聞かないように。
423 CaitSith2 : 2006-12-26 16:38:16 [PvdX6vxg]
Went one step farther with my mario paint sequencer script.
(The song in the data area is equivelent to mpaint-002.700)

---- Start -----
m #34100 w0 ;Delay for 1 Frame, normally 34100 clock cycles from the spc700 clock.
m w0 w2
m #21 w1 ;Multiply with number of frames to make the measure delay.
u w0 w1 ;For this song, the delay is 21 frames between notes.
m #0x7FFFFF00 w6 ;Loop song from beginning command.
m #0x7FFFFF01 w7 ;End song command.

m #0, w3

:001
c w3 w3 ;Read first byte and load it into
m db? i3 ;APU inport 3.
a #1 w3

c w3 w3 ;Read second byte and
m db? i2 ;Load it into APU port 2
a #1 w3

c w3 w3 ;Read Third byte and
m db? i1 ;Load it into APU port 1
a #1 w3

w w2 ;Wait one frame
m #0 i3 ;Then clear the IO ports.
m #0 i2 ;So that the same data bytes
m #0 i1 ;will play at next beat.

w w1 ;Wait for xx frames.


c w3 w3 ;Load DWORD to check for commands
m dd? w4
w 2

c w6 w4
beq 002
c w7 w4
beq 003
bra 001

:002
m #0 w3
bra 001

:003
e
e


;Seq data
;Format in sets of 3 for music playback
;Put 00FFFF7F to loop the song to beginning
;Put 01FFFF7F to end song playback.
424900 4D0000 4B4200 4D0000 494600 4D0000 4B4600 4D0000
494700 4C0000 494700 4C0000 4D4B46 000000 000000 000000


47454C 490000 4C4745 490000 4B4644 490000 4B4644 490000
4A4843 460000 4A4300 480000 494442 000000 000000 000000


464400 4D0000 464400 4D0000 454300 4D0000 454300 4D0000
444200 4D0000 444200 4D0000 434100 000000 000000 000000


460000 494D00 460000 494D00 450000 494D00 450000 494D00
440000 494D00 440000 494D00 43484A 000000 000000 000000


444200 420000 424400 420000 444600 440000 444600 440000
454700 450000 454700 450000 44464D 000000 000000 000000


454700 450000 454700 480000 444900 460000 444900 000000
43464A 000000 43464A 000000 494442 000000 000000 000000


00FFFF7F
----- End -----

This shows some of the untapped potential of script700.
Further programming of this script could allow for more
advanced things that the mario paint sequencer didn't
allow for, like looping in middle of the song, or
tempo changes mid song. This script however follows most
of the mario paint sequencer limits.
NAME: MAIL:
[ALL] [LAST100] [1-100]

megabbsっぽい PHP+MySQL +NGワード +DNSBL 081102 / 黒羽製作所