HISE Logo Forum
    • Categories
    • Register
    • Login

    Value (conversion ) of st

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 500 Views
    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.
    • staiffS
      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 HartC
        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
        • staiffS
          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 ... :D

          Excuse me i'm French.

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

          49

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts