Forum

    • Register
    • Login
    • Search
    • Categories

    Question - Sampler Monophonic Glides for Audio anybody??

    General Questions
    2
    17
    530
    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.
    • L
      LeeC last edited by LeeC

      Hi Guys,

      Does anybody have a script or a way to get a sound mapped across the sampler in Hise to glide from note to note.
      I'm only looking to do this monophonically.

      Basically, I'm looking for a monophonic portamento glide script that can work on the Hise sampler. ☺

      Cheers,

      Lee

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

        Do you want to play each sample in between or just pitch bend?

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

        L 2 Replies Last reply Reply Quote 0
        • L
          LeeC @d.healey last edited by

          @d-healey Was hoping to glide from one single sample note up/down to another.
          Purely monophonic with no perceived overlap of notes.

          So for example, holding down C4 followed by E4 would glide between the notes.

          Just realised that you’ve contributed massively to the Hise community. True legend!

          Thanks again,
          Lee

          1 Reply Last reply Reply Quote 1
          • L
            LeeC @d.healey last edited by

            @d-healey Would be great if there was a way to have a slider that could alter the glide amount.

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

              @LeeC So in your example all of the samples between C4 and E4 would be triggered and crossfaded/pitch bent? Or you want to pitch bend the C4 sample up to E4?

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

              L 1 Reply Last reply Reply Quote 0
              • L
                LeeC @d.healey last edited by

                @d-healey I was hoping to "pitch bend the C4 sample up to E4" or at least give the illusion that this has happened ☺
                Is this a complex thing to implement?

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

                  Not particularly complicated. I think I already did it with this script - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/modules/portGlide.js - this is GPLv3 licensed.

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

                  L 1 Reply Last reply Reply Quote 1
                  • L
                    LeeC @d.healey last edited by LeeC

                    @d-healey Absolute legend!
                    Will give this a try when I get back later and will feedback.

                    So do I need to place a midi processor before the sampler and then paste the script that you've written into the onNoteOn section?

                    More generally, where do I place the script for it to work on wavs in the sampler?

                    Sorry for the noob question ☺
                    Still learning the ropes & your tutorials have helped massively!!

                    Cheers

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

                      Add a script processor to the sampler then copy the entire script I linked, right click in the script processor and select load script from clipboard.

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

                      L 2 Replies Last reply Reply Quote 0
                      • L
                        LeeC @d.healey last edited by

                        @d-healey Perfect will try this out later. Much Appreciated!

                        1 Reply Last reply Reply Quote 0
                        • L
                          LeeC @d.healey last edited by LeeC

                          Hi @d-healey,

                          So just gave your script a try.

                          All seemed to load in successfully with the instructions you provided.
                          Unfortunately, I've tried with a few sample maps with no success.

                          What happens?

                          Continuing the example earlier in this thread, the initial note C4 sounds as usual but E4 is no longer heard with the script is active. I've posted a screenshot of the current sampler settings in case there's anything glaring obvious that I'm doing wrong.

                          https://ibb.co/yqm0Hrp

                          Thanks again ☺

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

                            Try increasing max interval

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

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              LeeC @d.healey last edited by LeeC

                              @d-healey Just increased max interval all the way to no avail.
                              Did notice that the following error is shown in the console when hitting E4 after C4 though

                              Script Processor1:! onTimer() - Line 15, column 15: Unqualified assignments are not supported anymore. Use var or const var or reg for definitions

                              Line 15 in the 'On Timer' section relates to the following line of code.

                              bendAmount = knbBendAmount.getValue();

                              Not sure if this is the reason for the lack of glide though

                              https://ibb.co/Br20KjZ

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

                                Well the good news is the script works once you add reg bendAmount; in the init callback (this wasn't needed when I wrote the script back in 2017). The bad news is I was thinking of the wrong script when I pointed you to this one 😛 This actually plays and crossfades and pitch fades every sample in the glide.

                                The script you want is this one - https://raw.githubusercontent.com/davidhealey/HISE-Scripting-Framework/master/modules/monoMode.js

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

                                L 2 Replies Last reply Reply Quote 0
                                • L
                                  LeeC @d.healey last edited by

                                  @d-healey Wow that actually sounds pretty ace man!

                                  Really appreciate all of your scripting skills 👌

                                  Works a treat.

                                  1 Reply Last reply Reply Quote 1
                                  • L
                                    LeeC @d.healey last edited by

                                    @d-healey Honestly, that script absolutely nailed it!
                                    Thanks again

                                    1 Reply Last reply Reply Quote 1
                                    • L
                                      LeeC last edited by LeeC

                                      Just realised that you updated this script @d-healey.

                                      https://raw.githubusercontent.com/davidhealey/HISE-Scripting-Framework/master/modules/monoMode.js

                                      Thanks again for all your help ☺

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

                                      16
                                      Online

                                      982
                                      Users

                                      6.6k
                                      Topics

                                      60.8k
                                      Posts