Value (conversion ) of st



  • Hello !
    some functions are not working with (for example) 0 to 1 but 0 st to 1st

    of course using slider with 0-1 make a Value Shift with st
    for example 0.17 (slider) give 2.04 st

    a way to "convert" st value ? (to have 2.00 on slider = 2.00 st on module) ?

    Thanks.


  • administrators

    Well you have some functions to convert between 0.5...2.0 (pitch ratio) to semitones which involves logarithms and complex scaling, but in this case the conversion function is only:

    inline function convertIntensityToPitch(intensity)
    {
        return intensity * 12.0;
    }
    

    and I doubt that you need an API function for something that simple (it just distributes the -1...1 range to plus minus one octave).



  • since a lot of time now, Christoph, you know that I am THE pro for silly and useless questions 🙂

    One more ... 😄


Log in to reply
 

1
Online

277
Users

739
Topics

4.8k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.