home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
subroutines
/
sonicboostapd.amos
/
sonicboostapd.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1990-12-28
|
1KB
|
38 lines
Screen Open 0,320,200,4,Lowres
Screen Open 1,320,154,16,Lowres
Break Off
Unpack 11 To 1
Screen To Front 1
F=10000
Screen 0 : Paper 0 : Pen 2 : Cls
Screen 1 : Bob 1,137,104,1
Screen 1 : Bob 2,158,104,1
Screen 0 : Locate 0,20 : Centre "SonicBoost by Chris Hurst."
Screen 0 : Locate 0,21 : Centre "SampleBank Empty." : Curs Off
Do
If Key State(64) Then End
If Key State(1) Then Gosub SLOAD
If Key State(2) Then Gosub SPLAY
If Key State(3) Then Clear Key : Screen 0 : Locate 0,20 : Cline : Locate 0,21 : Cline : Locate 0,20 : Input "Frequency(Hz)";F : Locate 0,20 : Cline : Locate 0,20 : Print F$ : Curs Off
Loop
SLOAD:
Clear Key
F$=Fsel$("","","Choose a sample")
If F$="" Then Return
Erase 10
Open In 1,F$
L=Lof(1)
Close 1
Reserve As Chip Work 10,L
Bload F$,Start(10)
Screen 0 : Locate 0,20 : Cline : Locate 0,21 : Cline : Locate 0,20 : Print "Sample:";F$ : Curs Off
Return
SPLAY:
Screen 1 : Bob 1,137,104,1
Screen 1 : Bob 2,158,104,1
Channel 1 To Bob 1
Channel 2 To Bob 2
Anim 1,"(1,2)(2,2)(3,2)(4,2)(1,2)"
Anim 2,"(1,2)(2,2)(3,2)(4,2)(1,2)"
Clear Key : Sam Raw 1,Start(10),Length(10),F : Anim On : Wait 10
Return