aboutsummaryrefslogtreecommitdiff
path: root/tuio2_out.c
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2017-08-29 21:31:05 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2017-08-29 21:31:05 +0200
commit65626ff8d195f1834b2e445aec09175b33d7f7ef (patch)
tree587c6e45ce5e852b56a2648b697791dd02b2ebd0 /tuio2_out.c
parent03ce184a498fabb8ab1f596b27fc4127b4289896 (diff)
downloadespressivo.lv2-65626ff8d195f1834b2e445aec09175b33d7f7ef.zip
espressivo.lv2-65626ff8d195f1834b2e445aec09175b33d7f7ef.tar.gz
espressivo.lv2-65626ff8d195f1834b2e445aec09175b33d7f7ef.tar.bz2
espressivo.lv2-65626ff8d195f1834b2e445aec09175b33d7f7ef.tar.xz
prototype [0,1] range of pitch.
Diffstat (limited to 'tuio2_out.c')
-rw-r--r--tuio2_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tuio2_out.c b/tuio2_out.c
index 2adb295..630fa11 100644
--- a/tuio2_out.c
+++ b/tuio2_out.c
@@ -281,7 +281,7 @@ _add(void *data, int64_t frames, const xpress_state_t *state,
src->uuid = xpress_map(&handle->xpressI);
src->state = *state;
- src->state.pitch = (state->pitch - handle->bot) * handle->ran_1;
+ src->state.pitch = (state->pitch*0x7f - handle->bot) * handle->ran_1;
src->dirty = true;
src->last = frames;
@@ -298,7 +298,7 @@ _set(void *data, int64_t frames, const xpress_state_t *state,
_upd(handle, frames);
src->state = *state;
- src->state.pitch = (state->pitch - handle->bot) * handle->ran_1;
+ src->state.pitch = (state->pitch*0x7f - handle->bot) * handle->ran_1;
src->dirty = true;
src->last = frames;