Is it possible to give a pot a similar way to move ?
pot values
Moderator: frank
You should be able to do it using some of the tricks from here http://www.spinsemi.com/knowledge_base/ ... aring_pots
First shift the range down by 0.5 so it goes from -0.5 to + 0.5. Then multiple it by 4 which would give a range of -2 to +2 except that the range is limited to -1 and +1. Therefore the first quarter of the pot is less than -1 so is limited to - 1, and the upper quarter more than +1 so is limited to +1. This gives you the shape you want. Then divide it by 2 and add 0.5 to get the range back to 0 to 1.
Something like this
First shift the range down by 0.5 so it goes from -0.5 to + 0.5. Then multiple it by 4 which would give a range of -2 to +2 except that the range is limited to -1 and +1. Therefore the first quarter of the pot is less than -1 so is limited to - 1, and the upper quarter more than +1 so is limited to +1. This gives you the shape you want. Then divide it by 2 and add 0.5 to get the range back to 0 to 1.
Something like this
Code: Select all
rdax pot0
sof 1, -0.5 ;deduct 0.5
sof -2,0 ;multiply by -2
sof -2,0 ;multiply by - 2 (multiply by 4 in total)
sof 0.5, 0.5 ; divide by 2 and add 0.5