POT skip routines

Software questions and issues with the FV-1

Moderator: frank

Post Reply
ZibiSound
Posts: 66
Joined: Fri Mar 15, 2013 3:02 pm

POT skip routines

Post by ZibiSound »

Hello,
I found in "coding examples" code, that allows change pot into multiposition switch. The problem is with bit mask - it could be 2, 4, 8, 16, etc.
Is there any option to make it 11 positions? Eg, position 1: pot 0-0.09, position 2: pot 0.1-0.19, ... , position 11: pot > 0.99
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: POT skip routines

Post by frank »

No quick trick that I am aware of, you will need to do something like subtract 1/11 and if negative then jump if not then subtract an additional 1/11 and if negative then jump, and so on. But that will use about 22 instructions just for that.
Frank Thomson
Experimental Noize
ZibiSound
Posts: 66
Joined: Fri Mar 15, 2013 3:02 pm

Re: POT skip routines

Post by ZibiSound »

Okay, that could be good enought.
Thank you, Sir.
Post Reply