home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
076-100
/
apd077
/
equalizer.amos
/
equalizer.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1990-11-07
|
941b
|
30 lines
'
' Simple equalizer bars, soundtracker style. By spadge.
'
Cls 0
Music 1
ST: Show On : Cls 0 : Screen Open 0,400,256,2,LORES : Cls 0 : Palette 0,$FF
C1=0 : C2=0 : C3=0 : C4=0
View
Gosub RB
Do
V1=Int(Vumeter(0)/2) : V2=Int(Vumeter(1)/2) : V3=Int(Vumeter(2)/2) : V4=Int(Vumeter(3)/2)
If V1>C1 Then C1=V1
If V1<C1 and C1>0 Then Dec C1
If V2>C2 Then C2=V2
If V2<C2 and C2>0 Then Dec C2
If V3>C3 Then C3=V3
If V3<C3 and C3>0 Then Dec C3
If V4>C4 Then C4=V4
If V4<C4 and C4>0 Then Dec C4
Bob 1,160,180,C1 : Bob 2,170,180,C2 : Bob 3,180,180,C3 : Bob 4,190,180,C4 : Wait Vbl
Loop
RB:
Rem
Set Rainbow 0,1,35,"","","" : Rainbow 0,0,220,35 : Colour Back 0 : Restore RDATA7
For C=0 To 34 : Read CVA : Rain(0,C)=CVA
Next C : View : Return
RDATA7:
Data $0,$0,$0,$544,$655,$766,$877,$988,$A99,$BAA,$CBB,$DCC,$EDD,$FED,$FEC,$FEB
Data $FEA,$FE9,$FE8,$FE7,$FD6,$FC5,$FA3,$F92,$F81,$F70,$E60,$D50,$C40,$B30,$A20,$910
Data $800,$700,$600,$0,$0,$0,$0,$0