Posted: Sat Mar 28, 2015 9:19 am
OK I'm digging into this now and have another question.
Here's the knowledge base code:
What I'm wondering about now is mpos. From the text, it is described as the "position within the buffer". So does that go from 0 to 4095? Or 0 to (4096 * 256) - 1?
If I wanted to use a Pot for mpos, do I have to scale it down by 4096/32768? Or does Pot 0.0 to 1.0 magically map somehow to 0 to 4095?
Thx!
Here's the knowledge base code:
Code: Select all
skp run,1 ;only establish the LFO on the first sample pass
wldr rmp0,0,4096 ;set rmp0 to its widest range
cho rdal,rmp0 ;load in the current RMP0 pointer
rdax mpos,-1 ;subtract the desired position
wrax rmp0_rate,0 ;write the position error to the ramp rate register
If I wanted to use a Pot for mpos, do I have to scale it down by 4096/32768? Or does Pot 0.0 to 1.0 magically map somehow to 0 to 4095?
Thx!