HISE Logo Forum
    • Categories
    • Register
    • Login

    Sample loop play in Sampler

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 195 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.
    • P
      plugintutor
      last edited by

      Hi Everybody,

      I am new to this forum. Also I am not good at writing. Please ignore my writing mistakes. I just need some help. Please guide me.

      Recently I just installed the HISE on my windows 10.
      And created one Sampler by adding Sampler module.

      By clicking the button the sample is playing fine, but it's playing only once.
      Could someone please help me , how to add a loop in sampler ?

      I want my sample should play till onNoteOff () called.

      Please find my piece of code as follows -

      function onNoteOn()  {
                notekey = Message.getNoteNumber();
                 synth.playNote(notekey, 64);
      }
      

      Thanks and Regards
      San [PluginTutor}

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

        @plugintutor Hello, you need to add loop points to your sample in the sample editor

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

        1 Reply Last reply Reply Quote 0
        • P
          plugintutor
          last edited by

          Hi HEALEY,

          Thanks a lot !
          Really appreciate your help. I enabled the Looping Point. It's working fine now.

          But I tried through code but seems like I am doing something wrong -

          const var vs =  Synth.getSampler("Sampler1");
          vs.loopEnabled;
          

          Regards
          San[PluginTutor]

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

            @plugintutor
            You don't need to add any code for looping to work.

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

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

            49

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts