Invert ROOT NOTE in Audio Loop Player



  • Trying to invert the knob for Root note in the Audio Loop Player. I've scripted the callback as:

    AudioLoopPlayer1.setAttribute(7, 127 * (1-value));
    

    and set the knob values as Min: 127, Max, 0, Linear mode.

    However the knob then does it's own thing in having a range of 0-1 with .01 increments, and that skews the values of the Root Note.

    Any ideas anyone?!

    HiseSnippet 1095.3oc4W0saaaCElJ1ba1ctXsKWrKEB1E1CoAVcsMEXXnN+XOXzjTinrfcw.BnkniIBEo.EUV8J561vdB1avdE1av1gTRVxIFotd+Ar4qDO77yGO7b9NziTx.ZRhTgbZb1rXJx4iw9yD5oGLkvDngGhbtO9XRhlpbyDs+rXRRBMD43T6aLBbZTGY+8auXeBmHBnkhPnykr.5QrHltT5ndujw4CHgzyXQUz9I8FFHEGH4xT.O0vcQwjfqHWROgXTaCLx4C5GxzRkulnoIHm56KCm4OU9ChL8OmkvFyolEdHevQYhGH4gFDa9FcvTFObTw4NAgbviJyB0xxBahOlExlKuLa7I1MbKsnZ9vYi6BddqI7bp.u5Yv6AX+.EKVWtiAa2COT.WTSHvUPUXkoKZie1AefDzPn2IhbEcfBVL2h1Oqa2sceZ2tc9pVMa0DtHRztWSTt6kFxjGIkwi3jYTkm6W6ZqP14Rp1BV6p1aY0y0nnatlak4JlfyDT2Ioh.MSJbkhWJji8LPQI4sCjQwRA.psgvwSocZ07MsZ13lgcmDpdOsVwFmpos2caWuGuq6W3116QYVYh0aswq3LZvWguaukMla0w3l7He.gyGCEXsWDPFGUAqmH0zWIZ2o4aZ1n4aa5dyslLYo6k6LNUszsME9p6xv1hznwTUQNoPQnBXwRr6sZkXAY4jJJJECEL8qho4qKKBM6kcpK1sKZ9gspnxyXUo1i1RTqTzsqwQ42Ylp8b0AU01Z86mWq6yYgTEhAX7Cw1KLjM2Tvez46+0Wf91gGRzjB2.dDhRLUoYlbkygzqA1nrVnF3CoIWokwVcyKS.W+NC5qmSX067dyluvcbuHxqqR8Ajlw9reD7FF6sSWTTExxe5hdna2VCjKxvTNQuHiiglMeCnFYgVaS6qHgomUkF98fFp6Rog7V1UzJB2GfGwzASWNd2XI3Etr96Fu4j5sv8mLgFnKAac7fuacYvWOn7oEPYN+FMi7dS7sIPuigs+xpNrMdkG1B73Av0FsZoj8t7LEvRxDWVMTFX1WPfbQXUwmJkZCSQ0g89jnXNExnJM39EzldMUkrnGFv3ky6ssLXGibayU1mbH1V2UUPeQXwRmZq0X3Eaypn+RlIW+egmL7Weu5edpkZqFbeGupoQAF8YlRk9hqobnwvhwGB7zSHobcgzE6JNVJjwSkBVvhEVvCEt7RppJ1W5ABdRATbWJYydmR4TRRkJ3Ou2Qv6WHpa1a7djK7V8bwcce8Y3L35ZZkc+uwHgZ++bjvoxTMPodLAJTMDamjF4CLwAT.IBAkmXHy1v7xnr0cKH27ohP6heG9kuomYsS9ldEa9ORLhHAJ4EAYuYyTK+QVIv4VXIwa.+6QXs67GqgwcsuEJjcQPfIc+HODZ41730vlubMr4IqgMOcMr4YqgM6tF1776zFyvn8R0xnrVQPvn91GM63LeftSMze.bXSzc
    


  • @DanH said in Invert ROOT NOTE in Audio Loop Player:

    AudioLoopPlayer1.setAttribute(7, 127 * (1-value));

    is there something wrong with:

    AudioLoopPlayer1.setAttribute(7, (127-value));
    

    knob values as Min: 0, Max: 127, Linear mode.

    Or am I not understanding what you are trying to do?



  • @Lindon said in Invert ROOT NOTE in Audio Loop Player:

    AudioLoopPlayer1.setAttribute(7, (127-value));

    You da man... thanks!


Log in to reply
 

9
Online

1.1k
Users

3.6k
Topics

31.2k
Posts