HISE Logo Forum
    • Categories
    • Register
    • Login

    AudioWaveform - callback

    Scheduled Pinned Locked Moved General Questions
    35 Posts 2 Posters 1.4k 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.
    • d.healeyD
      d.healey @Lindon
      last edited by

      @Lindon

      how do I assign an audio waveform to a sampler with scripting?

      I think you just use .set("processorId", "sampler") but obviously that isn't going to help here.

      Can you read the length of the sample in the preload callback when the user selects the sample map?

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

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

        @d-healey - yuep
        its:

        AudioWaveform1.set("processorId", "Sampler1");

        reading the length in the pre load is not much help as the end user is changing the length...

        still .. working on it...

        HISE Development for hire.
        www.channelrobot.com

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Lindon
          last edited by

          @Lindon -- yeah still no call back happening...

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon Yeah using AudioWaveform1.set("processorId", "Sampler1"); is effectively the same as setting it in the properties editor, that's why I said it isn't going to help here. I think what is needed is an additional callback for the audiowaveform control, something like onFileChanged.

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

            d.healeyD LindonL 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @d.healey
              last edited by

              What controls does the user use to change the playable area range?

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

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

                @d-healey said in AudioWaveform - callback:

                @Lindon Yeah using AudioWaveform1.set("processorId", "Sampler1"); is effectively the same as setting it in the properties editor, that's why I said it isn't going to help here. I think what is needed is an additional callback for the audiowaveform control, something like onFileChanged.

                Actually I need to be able to change the Sampler attached to the audioWaveform so I need:

                audioWaveForm.attachSampler("somename");

                and I need the callback to fire when the audiowaveform has the start and end positions changed..

                HISE Development for hire.
                www.channelrobot.com

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

                  @d-healey said in AudioWaveform - callback:

                  What controls does the user use to change the playable area range?

                  They use the audioWaveforms own controls: enableRange = true in the audioWaveforms properties...

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Lindon I think that this will require Christoph level intervention.

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

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

                      @d-healey - yeah I think that too... here goes... @Christoph-Hart !!!???

                      HISE Development for hire.
                      www.channelrobot.com

                      1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @Lindon
                        last edited by

                        @Lindon said in AudioWaveform - callback:

                        @d-healey said in AudioWaveform - callback:

                        @Lindon Yeah using AudioWaveform1.set("processorId", "Sampler1"); is effectively the same as setting it in the properties editor, that's why I said it isn't going to help here. I think what is needed is an additional callback for the audiowaveform control, something like onFileChanged.

                        Actually I need to be able to change the Sampler attached to the audioWaveform so I need:

                        audioWaveForm.attachSampler("somename");

                        and I need the callback to fire when the audiowaveform has the start and end positions changed..

                        Worse..... this wont even work dynamically...:

                        if (a==1)
                        {
                              AudioWaveform1.set("processorId", "Sampler1");
                        }else{
                              AudioWaveform1.set("processorId", "Sampler2");
                        }
                        

                        I can set this in a script but its ignored until I recompile the script....

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon
                          last edited by

                          NOOOOOO!!!!!!

                          Now I find that AudioWaveforms WONT save start and end values in
                          presets!!!!

                          HISE Development for hire.
                          www.channelrobot.com

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

                            @Lindon

                            You can use a sliderpack to store/restore the start/end values.

                            I can't get the processorId to refresh the component without compiling either, I suggest opening a github issue.

                            Here's a solution for loading in different samples which does update. It's much more convoluted and you'll need to experiment to get this working how you want. Also with this method it doesn't actually display the waveform (at least not for me). Another solution is to use multiple waveform controls that you show/hide but this might not be practical depending on how many waveforms you have.

                            HiseSnippet 1592.3oc6Y8taZbDDeOi2DCMMpNMUpeoRmr5GHUoD.+uJU0VrwPjahsQfSZkpZsVe2BrJG6h1aOmPirTej5iPej5aP6r6c.6cgfbHItoR3OX4clc1427amclASKoviFFJjHm7mNZHE4bKbmQbU+58ILN5vCPNeJlD4yDOmbAsqPNPQCUn8GMjDFR8QNN4dndiN4WEY94u+g8IADtGcpHD5oBlG8wrAL0Tosp8HVPPShO8T1.qcuUsC8D75h.QD.pb3xngDumQ5QOln21JXjyMZ3yTBYGEA.CxY08E9i5zW7bd79eJKjcd.UunBpCbPwhaJB70HVKEUuOKvu03fODAGZqoTQtXp3t3iX9rIxmRIehQg6TKr4CmURCubofWEa3U1Bdy.RNVPBGCo0wc7jrgpoZz34ivGxUTYWBP61P43nA6ou6ZxBzHA63.Db7AfVoYNbcAXFWUZ.4YzlRXwjio3NkKeeW3W26aKT.tOBUtWPjtcHCFFPkUb+NWSVRodTUhrhaLV4FfMuhIUmmIU2XpaLIaGPTDvfF7dLNsjmjBT4db+1zdrP.gSBphYvmQwOkjopQ43HDbZcwfgBNrn3Fo2l14okTRR6RkmZfQwI.R6JFO.Pja2HtmhI3tB99QJkfWQ6HoHnn2Xube.PAQz6U3kExGH7HAtcA6yy55VLQQdPShpPCODp4nDRLIn6PCnFOUbiRekFn4y2E1Ux9+kx+pNxJlXTIMkneln22k4yWHOMHjNW+T8s2OPPMghJEHH9lKltftKg.d1W.Ij1F2qTnVt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.uI17obPnEwTepmGYQLs.NLRB4RvmeZAr9FX3y2PWjwQqtbbzkiiZON55Xw4BZEfoz0uzstxNM5ZW2Sitb5zOjmNs5xoSWNc5xoSWNc5xoSWNc5bmNMSt.dl4Bq7VkKfFP7jhy7h+tSzb7ZFI.R4lud473izqcm7kjfwkKUFM.lH3LOOc4luFximsMUW.a1bArYqEvlsW.a1YArY2EvluYt1nGFauHkXPbqHPPqFwIWNMljbkC8ubItN6.
                            

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

                            LindonL 3 Replies Last reply Reply Quote 0
                            • LindonL
                              Lindon @d.healey
                              last edited by

                              @d-healey thanks I will take a look - so yes I am reverting to using multiple Audiowaveform widgets - one for each of the 32 samplers....

                              HISE Development for hire.
                              www.channelrobot.com

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

                                @d-healey Okay well all Im getting is:

                                Interface:! Line 23, column 21: Unknown function 'get'
                                

                                ..after I try and drop in a couple of samples...

                                HISE Development for hire.
                                www.channelrobot.com

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

                                  @d-healey said in AudioWaveform - callback:

                                  @Lindon

                                  You can use a sliderpack to store/restore the start/end values.

                                  The problem with this is - the f***ng AudioWaveform control doesnt fire its callback - so I have no way of knowing when the start and end values have changed!!! Grrr.>>!!!!!!

                                  HISE Development for hire.
                                  www.channelrobot.com

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

                                    @Lindon Where are you dropping in the samples?

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

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

                                      @d-healey said in AudioWaveform - callback:

                                      @Lindon Where are you dropping in the samples?

                                      on the audiowaveform...

                                      HISE Development for hire.
                                      www.channelrobot.com

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

                                        @Lindon That snippet I made is grabbing samples from the sampler's sample map, so I don't expect it would work when using the drag/drop thing.

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

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

                                          @d-healey said in AudioWaveform - callback:

                                          @Lindon That snippet I made is grabbing samples from the sampler's sample map, so I don't expect it would work when using the drag/drop thing.

                                          Ok- but then I cant get it to do anything but show me the first (index 0) sample name - it wont show me the sample and thus I cant change its size...

                                          So - lets say I use a widget (slider) to set the start and end values , first thing I would need is the actual real-world total length of the sample right? Any idea how to get that?

                                          HISE Development for hire.
                                          www.channelrobot.com

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

                                            @Lindon

                                            Yeah I couldn't get the waveform to show up either, think this is a bug or I'm not using it correctly.

                                            You can get/set any sample property:

                                            60f3e3e8-c081-404e-95b5-a736fe4ae584-image.png

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

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

                                            6

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.2k

                                            Posts