HISE Logo Forum
    • Categories
    • Register
    • Login

    Change pitch

    Scheduled Pinned Locked Moved Scripting
    10 Posts 2 Posters 143 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.
    • S
      Sampletekk
      last edited by

      If I have a sampler, and each time I play a key, I wan't to change the pitch of the triggered sample, how would I do that?

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

        @Sampletekk Do you want to change it by a random amount?

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

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

          @d-healey Yep

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

            @Sampletekk Add a random modulator to the sampler's pitch chain.

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

            S 2 Replies Last reply Reply Quote 0
            • S
              Sampletekk @d.healey
              last edited by

              @d-healey That was simple! Thanks!

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

                @d-healey ...and if you, as I, wish to change the pitch on a sample level, so that the change of pitch is always the same on a certain note?

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

                  @Sampletekk Synth.addPitchFade()

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

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

                    @d-healey Hmm, say that I always want to change the pitch for a sample with notenumber 63 and pitch that down 0.2 cent

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

                      @Sampletekk

                      You could try

                      if note == 63
                          Synth.addPitchFade(eventid, 0, -0.2);
                      

                      But if you always want that why not set it in the sample map?

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

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

                        @d-healey I want to set the pitch randomly for each note, but I think I've got it now!

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

                        15

                        Online

                        1.7k

                        Users

                        11.9k

                        Topics

                        103.6k

                        Posts