HISE Logo Forum
    • Categories
    • Register
    • Login

    Change sampler playback by script

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 215 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.
    • FrankbeatF
      Frankbeat
      last edited by

      Can the playback mode of a sampler be changed by a widget? I'm trying to switch between One Shot and Normal. Would be cool to just

      .setAttribute('One Shot', 1)
      

      or

      .setAttribute('Playback', 'One Shot')
      

      Using HISE from the develop branch (Feb '23)

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

        Add yourself a module browser popup and you can get the names of all the attributes.

        The one you want is Sampler.OneShot (replace Sampler with the name of your sampler reference).

        984d9e40-a192-481c-9f25-6b78
96b09189-image.png

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

        FrankbeatF 1 Reply Last reply Reply Quote 1
        • FrankbeatF
          Frankbeat @d.healey
          last edited by

          @d-healey thank you very much!

          Using HISE from the develop branch (Feb '23)

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

          44

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts