HISE Logo Forum
    • Categories
    • Register
    • Login

    Triggering different samples for Attack & Sustain

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 757 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.
    • ustkU
      ustk
      last edited by ustk

      @Ohnias Hi Toby

      I'm not very good with samplers so someone else will surely give a better solution.
      So I would say:
      If you want to have 2 different instruments at a time, first you'll need two samplers
      Then I see two solutions.
      Either you play with an AHDSR or a Table Envelope modulator in both samplers so you can adjust the attack of the first sampler and when the sustain sampler will play, or you create 2 different artificial notes and delay the 2nd one.

      Again, there might be a better solution I'm not aware of...

      Can't help pressing F5 in the forum...

      OhniasO 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @Ohnias
        last edited by

        @Ohnias Here's an example that might work for you

        HiseSnippet 1363.3oc6X0saaTDEdVmLUMtjVpT4mKWEIjbDEKamz.UUUwoN1QQE2XkMsEwETMY2wwi5tyrr6rgZJUpWxc7JzGAtkqnu.bEu.bCWf3l9D.bl8GuylrMxXQRop0QIJy4u86blyedGDHroggh.jwB6M1mhLdGr0XtbTmQDFGs8lHiKh6SBkz.yDR2ZrOILj5fLLlaKEAiElGE+4EqeKhKgaSyIgP2SvroeNyiIyoNn8sYtt8HNz8XdZRuZ6ssE7NBWQDfm4vMP9D6GRNfdGhRrJXjw455vjh.KIQRCQFyeKgyXqQhugmH+8Xgr8copCMQVfgRH2S35nPr5+QcFwbcFj42gHvnCxiBykDEtBtOygMgddz3ciYXlqgd7vnxIAulyH7Lzf27Iv6xXK6.luLmiBaW.uMGtnFRfq.cXkHKpxWUA2Q.Rvk08HOj1K.NLQiZq0nwUMuViFKeiEqtXU3hHTZdHIvbOB.4t7CotBeZSyaZFmeT+.pruvIxk.9askhExbhTKoLxKwDslJSzZoDbn9gwcYbp4vHtsjI3lBNQJgLCU1ys46q7o.gaMagmufCd2UgGpaDc4Eq93Eq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Yp90G2eb8YZafuzM7Qucaf2tMvabaCbVLd8r3Y3QrCDOvN4Mrop.OeLEvu4wu9+Ev8UmMal8J0v3F0andUTrGXaqB2eBDeJWmVyfNqLC5r5Lny0lAcVaFz4SmAc9rSTG0T5MhjBujRQfvftIMqMRd+EwY8n+Amp3GAA
        

        Can't help pressing F5 in the forum...

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

          The two samplers + envelopes approach is the simplest and requires minimal scripting. Another way is to use note on/off scripting, or scripted note fades, and can be achieved with one or two samplers.

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

          OhniasO 1 Reply Last reply Reply Quote 0
          • OhniasO
            Ohnias @ustk
            last edited by

            @ustk Hi USTK, thanks for replying ! I think the problem here is that the attack-times vary depending on the sound-source(instrument). Than the delay-times for the sustain samples would have to know these variations...
            Or do i get something wrong?

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

              Hi @d-healey ;

              "Another way is to use note on/off scripting, or scripted note fades, and can be achieved with one or two samplers."

              would my problem with the varying attack-times be solved with any of these techniques?

              Greets

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

                @Ohnias If you know the attack times then you can set it manually for each note using a lookup array this can be applied to either technique. You might also be able to solve it using a note number modulator on the envelope's attack time.

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

                OhniasO 1 Reply Last reply Reply Quote 0
                • OhniasO
                  Ohnias @ustk
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • OhniasO
                    Ohnias @d.healey
                    last edited by

                    @d-healey Sounds good, totally blasts my brain! How hard is it to set this up? Do you think i can implement this as a beginner?

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

                      @Ohnias Define "beginner".

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

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

                        @d-healey i know the basics for creating sample-library-instruments. I can create a piano-library-instrument in Hise or other samplers like kontakt with ease. Not that in with scripting yet..

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

                          @Ohnias Without scripting you should try the note number modulator method - but I suspect you'll probably need to resort to scripting in the end.

                          I have a YouTube playlist with scripting tutorials - https://www.youtube.com/playlist?list=PLynv7CujPCfbH2OPE-cC5F4ZK-sVGkBwx

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

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

                          14

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.4k

                          Posts