Reduce potentiometer resolution before scaling it?


#1

I want to do as such : my 0->64 pot resolution (analog input) would map to a -12+12 semitones, without float numbers.
So it would 'magnet' to the closest integer, to avoid in-between pitch values.
I'm fighting with conversions to integers etc... but I think I have too many automatisms being a Pd user...
Please help :slight_smile:


#2

Ok, found an efficient (though not very elegant) way.

There might be a cleaner patch...


#3

Glad you've found a way to do it.
I think a more elegant way would be like this


#4

Of course, the round object... Slowly learning ! Thanks Matthew