Hi Pincho Paxton,
thanks for helping

I can't get it to echo with that?
Hi Green Gandalf,
Thanks for getting back with me
Yes the code is different I changed it around to be more like it in this post. I tried your files out. It sounds great! however I need to use dynamic reverbs. So it can switch from a big room vs a small room etc. So I can't use like Audacity.
Here is my code with lots of comments so far it seems kind of right but still it's not giving me a echo.
sync on
samples as word
getData as word
sampleRate as word
delayMilliSeconds as word
delayMilliSeconds = 500
type SoundType
ValueData as float
endtype
global oldTimer as integer
oldTimer = timer()
load sound "background with footsteps no fade on anything all dry.wav",1
make memblock from sound 1,1
make sound from memblock 1,1
samples = get memblock size(1)
sampleRate = memblock word(1,8)
decay as float
decay = 0.5
delaySamples as word
global dim sound(samples) as SoundType
delaySamples = (delayMilliSeconds * sampleRate)
play sound 1
do
rem only wait 10 seconds before reading/writing to the memblock. Then playing it
if timer()>oldTimer + 10000
rem use this loop for memblock word the step 2 is to make sure where grabbing a word and not a float in the memblock
for i = 25 to samples step 2
rem read the data
getData = memblock word(1,i)
rem put in array
sound(i).ValueData = getData
rem if the first loop has reached the end then proceed
if i = samples
rem use this loop for memblock float the step 4 is to make sure were writing float in right and not word
rem subtract samples from delaySamples which holds (500 * sampleRate)
for j = 25 to samples - delaySamples step 4
rem so add j to (500 * sampleRate) each time so it giving a (500 * sampleRate) delay plus the position j and putting in decay in sound(j + delaySamples).ValueData array by it's self
sound(j + delaySamples).ValueData = sound(j + delaySamples).ValueData * decay
rem last we write the data to the memblock
write memblock float 1,j + delaySamples, sound(j + delaySamples).ValueData
next j
endif
next i
rem update the change we wrote in the memblock
make sound from memblock 1,1
rem play sound now
play sound 1
oldTimer = timer()
endif
if spacekey()=1
if memblock exist(1) then delete memblock 1
end
endif
sync
loop
darkvee