Forum
    • Categories
    • Register
    • Login

    playNoteWithStartOffset

    Scheduled Pinned Locked Moved Scripting
    21 Posts 3 Posters 3.8k 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

      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...

      David HealeyD 1 Reply Last reply Reply Quote 2
      • David HealeyD
        David 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.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - 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
          • David HealeyD
            David 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.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey
              last edited by

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

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              1 Reply Last reply Reply Quote 0
              • David HealeyD
                David 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.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @David Healey
                  last edited by

                  bump bump

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - 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.

                    David HealeyD 1 Reply Last reply Reply Quote 2
                    • David HealeyD
                      David Healey @Christoph Hart
                      last edited by

                      @christoph-hart Has this been resolved?

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @David Healey
                        last edited by David 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]

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey
                          last edited by David Healey

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

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          1 Reply Last reply Reply Quote 0
                          • David HealeyD
                            David Healey
                            last edited by

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

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

                            David HealeyD 1 Reply Last reply Reply Quote 0
                            • David HealeyD
                              David Healey @David Healey
                              last edited by

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

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - 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)

                                David HealeyD 1 Reply Last reply Reply Quote 1
                                • David HealeyD
                                  David Healey @Christoph Hart
                                  last edited by

                                  @christoph-hart Building now...

                                  Free HISE Bootcamp Full Course for beginners.
                                  YouTube Channel - Public HISE tutorials
                                  My Patreon - HISE tutorials

                                  1 Reply Last reply Reply Quote 0
                                  • David HealeyD
                                    David Healey
                                    last edited by

                                    Yippie! it works! thank you!!!

                                    Free HISE Bootcamp Full Course for beginners.
                                    YouTube Channel - Public HISE tutorials
                                    My Patreon - 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

                                      31

                                      Online

                                      2.1k

                                      Users

                                      13.0k

                                      Topics

                                      112.5k

                                      Posts