I'm working on an app that will take four touches, scale them appropriately, and then send those values to control an embedded synthesizer.
What I have so far is:
//Assign seperate touches to scaling values
_firstTouch=[[OneTouch alloc] initWithFrame:frame1
_secondTouch=[[OneTouch alloc] initWithFrame:frame2
_thirdTouch=[[OneTouch alloc] initWithFrame:frame3
_fourthTouch=[[OneTouch alloc] initWithFrame:frame4
The "scaling" values are macros I set up in the corresponding .h file. They are:
#define PITCH_SCALING 1000.0
#define OFFSET_SCALING 20000.0
#define DENSITY_SCALING 100.0
#define DURATION_SCALING 1.0
What I can't figure out how to do is program each touch to go between the maximum (scaled) value and a minimum value (for example, pitch would scale between 100 and 1000).