HISE Logo Forum
    • Categories
    • Register
    • Login

    Spectral Analyser / Ever made one?

    Scheduled Pinned Locked Moved Scripting
    18 Posts 5 Posters 124 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.
    • ustkU
      ustk @Chazrox
      last edited by

      @Chazrox Scriptnode is not necessary if you don't go real time, so Chris's example has already (almost) what you need.
      Ok you want to display an FFT, but from what source? sampler? internal AF? user drag/drop AF?
      You must start here, then it'll only be a matter of getting a reference of that AF and feed the buffer.

      Here's a starting point

      inline function onButton1Control(component, value)
      {
      	if (value)
      	{
      		FileSystem.browse(FileSystem.Desktop, false, "", function(result)
      		{
      			arrayOfBuffers = result.loadAsAudioFile();
      			
      			// do fft with this array of buffers
      		});
      	}
      };
      
      Content.getComponent("Button1").setControlCallback(onButton1Control);
      

      Hise made me an F5 dude, browser just suffers...

      ChazroxC 1 Reply Last reply Reply Quote 2
      • ChazroxC
        Chazrox @ustk
        last edited by Chazrox

        @ustk Thank You ๐Ÿ™

        Im going to script a custom drop panel that will feed an audio file into an audio player. Atleast thats what I think I should do? Then run your script either in a button or inline my DROP script to run automatically. Am I right so far with using an AudioPlayer for that?..because I know we can just read the file AND load the audio file for auditioning at the same time, right?

        Christoph HartC ustkU 2 Replies Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @Chazrox
          last edited by

          @Chazrox no need for a audio player for a simple playback you can just use Engine.playBuffer()

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

            @Chazrox Yeah AFs in Hise can be fetched from anywhere, AudioPlayer, Scriptnode, Sampler, etc...
            The methods can differ but I imagine there are some examples in the doc and the snippet browser

            Hise made me an F5 dude, browser just suffers...

            1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @Christoph Hart
              last edited by Chazrox

              @Christoph-Hart hmm! I def have some reading to do. This is exciting. Anything you can recommend I read in documentation?

              @ustk speaking of 'methods' im investigating and got these...

                {
                  "normalise": Method,
                  "toCharString": Method,
                  "detectPitch": Method,
                  "indexOfPeak": Method,
                  "toBase64": Method,
                  "fromBase64": Method,
                  "getMagnitude": Method,
                  "getRMSLevel": Method,
                  "trim": Method,
                  "getPeakRange": Method
                }
              
              

              All new to me but looks promising! ๐Ÿ™

              I have no idea what "Method" is referring to tho. Never seen this before.

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

                @Chazrox start from here:

                Link Preview Image
                HISE | Scripting | Buffer

                A buffer of floating point data

                favicon

                (docs.hise.audio)

                ChazroxC 1 Reply Last reply Reply Quote 0
                • ChazroxC
                  Chazrox @Christoph Hart
                  last edited by

                  @Christoph-Hart Thanks! Reading that now.

                  1 Reply Last reply Reply Quote 0
                  • resonantR
                    resonant
                    last edited by resonant

                    Sorry if this is an irrelevant question, but how can we use this with online processing?

                    For example, online pitch detection?

                    ChazroxC 2 Replies Last reply Reply Quote 1
                    • ChazroxC
                      Chazrox @resonant
                      last edited by

                      @resonant i'd like to know that too haha.

                      1 Reply Last reply Reply Quote 0
                      • ChazroxC
                        Chazrox @resonant
                        last edited by

                        @resonant do you already know how to do offline analyzing?

                        resonantR 1 Reply Last reply Reply Quote 0
                        • resonantR
                          resonant @Chazrox
                          last edited by

                          @Chazrox said in Spectral Analyser / Ever made one?:

                          @resonant do you already know how to do offline analyzing?

                          No I donโ€™t know how to do that. But Iโ€™d really like to know real time spectral processing with Hise.

                          griffinboyG 1 Reply Last reply Reply Quote 0
                          • griffinboyG
                            griffinboy @resonant
                            last edited by

                            @resonant

                            C++ nodes can do it.

                            C++ nodes into c++ graphics.

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

                            22

                            Online

                            1.9k

                            Users

                            12.3k

                            Topics

                            107.0k

                            Posts