HISE Logo Forum
    • Categories
    • Register
    • Login

    playNoteWithStartOffset

    Scheduled Pinned Locked Moved Scripting
    21 Posts 3 Posters 3.0k 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      I‘ll add some advanced docs for the method ;)

      1 Reply Last reply Reply Quote 1
      • AxiomCruxA
        AxiomCrux
        last edited by

        Is this like a midi delay?? If so very cool!

        http://www.axiom-crux.net

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          It's the other way around - you can skip into the sample making it a negative delay - a normal midi delay can just be done using Message.delayEvent().

          @d-healey I've pushed an explanation to the Extended API doc...

          d.healeyD 1 Reply Last reply Reply Quote 2
          • d.healeyD
            d.healey @Christoph Hart
            last edited by

            @christoph-hart Excellent, this is going to be very useful for my legato script so I can skip the attack of mid phrase notes - currently I'm having to use a constant modulator.

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

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Yup this is exactly what it‘s there for.

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

                Am I right in assuming that the value passed as the offset should be in samples?

                I'm getting instant crashe/close when using any offset greater than 0, I even tried setting the s.mod to the full length of the sample.

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

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

                  Hmm, seems the issue isn't with the function, I need to debug more.

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

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

                    Ok I worked it out. There is a bug :) but it only happens when using multi-mic samples. With a really low offset it causes some nasty distortion and noises, with an offset greater than 1 millisecond it causes an instant crash on my system.

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

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

                      bump bump

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

                      1 Reply Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart
                        last edited by

                        Yupp, will add it to the things to fix with the new sample map system.

                        d.healeyD 1 Reply Last reply Reply Quote 2
                        • d.healeyD
                          d.healey @Christoph Hart
                          last edited by

                          @christoph-hart Has this been resolved?

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

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

                            @d-healey said in playNoteWithStartOffset:

                            @christoph-hart Has this been resolved?

                            It has not :p

                            dmesg shows this if it's any help: segfault at 7f4d7dc0dc74 ip 00000000008c49ea sp 00007f4dd6ef9df0 error 4 in HISE Standalone[400000+f61000]

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

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

                              Was the recent multichannel crash commit meant to fix this issue?

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

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

                                A quick demo of the bug, does some strange stuff. https://youtu.be/d5fjOezOtZ4

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

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

                                  @d-healey This problem is still present in the develop branch

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

                                  1 Reply Last reply Reply Quote 0
                                  • Christoph HartC
                                    Christoph Hart
                                    last edited by

                                    I think I found the problem and fixed it, but I didn't reproduce the issue because I am lazy. Can you check if it works now?

                                    Basically I didn't duplicate the code from the normal sample playback to multimic playback, which caused a sample offset of minus one (=> crash)

                                    d.healeyD 1 Reply Last reply Reply Quote 1
                                    • d.healeyD
                                      d.healey @Christoph Hart
                                      last edited by

                                      @christoph-hart Building now...

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

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

                                        Yippie! it works! thank you!!!

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

                                        1 Reply Last reply Reply Quote 0
                                        • Christoph HartC
                                          Christoph Hart
                                          last edited by

                                          Well, you waited long enough :)

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

                                          17

                                          Online

                                          1.8k

                                          Users

                                          12.1k

                                          Topics

                                          105.5k

                                          Posts