HISE Logo Forum
    • Categories
    • Register
    • Login

    Displaying a waveform from a sampler

    Scheduled Pinned Locked Moved General Questions
    33 Posts 5 Posters 1.7k 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.
    • LindonL
      Lindon @Christoph Hart
      last edited by

      @Christoph-Hart well yes, and no.....

      When I make a sample map and create a ch1 file for it and then load this (ready to ship) sample map - the audioWavewForm doesnt refresh at all... :-(

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

        Have you selected a sample in the combobox?

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

          @Christoph-Hart yep that fixed it - silly me . Thanks.

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

            OK so for those of us trying to use this in any practical scenario - there's a couple of gotchas.....

            So assuming a scenario where you want to load a sample map and display the audio at the same index position in all cases, so for example you have a set of hundreds of drum sample maps, each with just one wav file (at index zero obviously..).

            So you swap out and load the new sample map and say:

            AudioWaveform1.set("sampleIndex", 0);
            

            and you will (sadly) discover your AudioWaveform will not display the new wav file...

            The only way around this that I've found (and its sorta ugly) is to:

            • set the AudioWaveform to some other index position (even if theres no file at that position) e.g.
            AudioWaveform1.set("sampleIndex", 1);
            
            • wait for it to set itself up...(use a timer) and then reapply:
            AudioWaveform1.set("sampleIndex", 0);
            

            You cannot do this:

            AudioWaveform1.set("sampleIndex", 1);
            AudioWaveform1.set("sampleIndex", 0);
            

            As again it fails to work

            Here's my snippet of this cough "solution" at work... if any one has a better way of doing this please let me know...

            HiseSnippet 1393.3oc4WEtaTaDDdctXf6JAUPTopJUIqn9iKRzn6.BTIDhK4RB5DDxoyAZU+QQK16c2Jr20Z85TthhT+Qef5i.OB8Qg2fzY2097ZykPHpPQsN+H2LyNi+1uY1YVOTvCHoobAxo4AyRHHmK65OiIm1eJlxPC1F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Vk2UNxGQRHXIj9s74R8FM5gBdVRcud6CzEKGHfoD.UXaXeFA3co8drufmlNF1N5XkZaZXlXhhqJ0LhbHQjVU2SxhgbOCNZqZk63.pdZJQkqoA6gkB5qrWs9sz4.rNeC2TUK2sl7MqIeqZx2tl7F0juSM46VJaHz8vIlKBtYPvyGs+96sw6LT5hmsgRPjzs0rV4VzIyeKFMkUxcJ4aMlrtS9BtQ6E9r9B2e55013rA22y2Dzr.i9TU1YG1gv4SPiBiWClxNFmEIKzVsWwdbFOYJmQCpdZ.ptmLgHrw9B2PaJkvgwRMWu2HRDAmZcb9658X3BnXQ0C4ePbQ2yNWbZ4qu10.WOUCNu+aLirw+6mQdZT2UxmP54q97jOyyyW1U2S2SMB9eKnNhmIgQqEi2bgYf9vb+.h8jvkTSWMxcTxJ.4SXgZA3VuGmarawXSkwtEFQAEgB1a4+V+MCNMHL0nC8U+hfAxQ1kzovsKTPBF08IAkw3.A+4AluFRg0Ko0.njo+pglt6oj8l+MTttcVuCJFlU87f.0AguGX3E6yMOG9bqygO29b3yFmCety4vm6dN74GNUeTWSXyLIO1zjDTLbGSgkyNyKrZf9a3FCodA
            
            LindonL ustkU 2 Replies Last reply Reply Quote 1
            • LindonL
              Lindon @Lindon
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @Lindon
                last edited by

                @Lindon I don't know much on this side.
                But maybe Engine.getPreloadProgress() can help you?

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

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

                  @ustk - thanks - I looked at the API - just one question "the progress of what?"

                  ustkU 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @Lindon
                    last edited by

                    @Lindon preload :)

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

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

                      @ustk lol - yes - the preload progress of what? The Sample Map? The AudioWaveForm ? my washingmachine?

                      and once i know what this is Im not sure how this helps me in any real way....

                      Actually this is a bit dis-ingenuouse of me..sorry. Yeah waiting for the sample map to load might be what I need - but I think what we need here... but its working right now so once I need to laod a bigger sample map and thus need some sort of async. call back method I think I might ask for that...

                      Hey @Christoph-Hart - how about it:

                      on async(event)

                      (just half joking here...)

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

                        @Lindon Apparently, it's the progress when loading samplemaps (maybe just audio samples too? don't know...) Sorry man that's all I know

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

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

                          @ustk Maybe just to replace your timer with something cleaner... Again, that's a side of Hise I don't really know...

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

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

                            @ustk yeah on async is the cleanest code solution ....

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

                            21

                            Online

                            1.8k

                            Users

                            12.1k

                            Topics

                            105.4k

                            Posts