HISE Logo Forum
    • Categories
    • Register
    • Login

    parseInt Problem

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 158 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.
    • MikeBM
      MikeB
      last edited by

      How do I get this value as an integer with parseInt?

      Synth.getAudioSampleProcessor("Audio Loop Player1").setFile("{PROJECT_FOLDER}kit"+cmbKitSelector1.getValue()+"/"+ inst[value]);
      

      "cmbKitSelector1.getValue()"
      is now no longer an integer in the Develop version but a floating point number 1.0
      How do I get this back as an integer in this case?

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by d.healey

        parseInt(cmbKitSelector1.getValue());

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • MikeBM
          MikeB
          last edited by

          @d-healey
          And as always there is a video :-)

          Thank you David

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

          21

          Online

          1.8k

          Users

          12.0k

          Topics

          104.2k

          Posts