stealing appropriately from the program before, i tried...
but its not making sound. do i need to make a counter that writes at the step of memory it recorded at?
Code: Select all
; This program will record sound and Loop it infinitely,
; constantly acquiring new input and adding it over the top.
; Loop length is based on the POT1 value
;
delL mem 31233 ; Define delay as maximum
ldax adcl ; Read in ADC left
wra delL,1.0 ; Write to left delay line
wrax dacl,0 ; and to DAC left
; Playing out the left input
play:
clr ; Clear ACC
rdax pot1,1 ; Read value of POT1, multiply by 1 to get a positive integer
mulx pot1 ; multiply the value in POT1 by itself
mulx pot1 ; multiply the value by itself again
and %01111111_10000000_00000000
sof 240/256,1/31233 ; divide that into increments
wrax addr_ptr,0
rmpa 1 ; Read from address pointer
wra delL,1.0 ; Write to head of delay
wrax dacl,0 ; Write it to DAC left
;
end: