Forum

    • Register
    • Login
    • Search
    • Categories

    Value (conversion ) of st

    General Questions
    2
    3
    369
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • staiff
      staiff last edited by

      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.

      Excuse me i'm French.

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        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).

        1 Reply Last reply Reply Quote 0
        • staiff
          staiff last edited by

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

          One more ... 😄

          Excuse me i'm French.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          7
          Online

          849
          Users

          5.7k
          Topics

          52.8k
          Posts