HISE Logo Forum
    • Categories
    • Register
    • Login

    fft core library module

    Scheduled Pinned Locked Moved General Questions
    30 Posts 7 Posters 1.6k 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
      last edited by

      @Christoph-Hart I know it isn't finished yet, but is it working so far? How to get the result?

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

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

        Not sure, also I haven‘t found a proper way how to handle Complex number type of the fft output within the scriptnode signal architecture. I‘ll probably remove it and move the functionality to pure SNEX (because chances are good that once you enter the frequency domain you want to write code anyway).

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

          @Christoph-Hart That's what I was thinking, having it along with SNEX would be a better way of handling it I guess...

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

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

            @ustk Was just trying to get my mark with fft, which isn't the easiest part ahah....

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

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @ustk
              last edited by

              @ustk How are your delves into FFT going? I just started finally wrapping my brain around it and JIT today 😓

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

                @iamlamprey as you can read above the fft isn't working (unless you wrap your own in C++ of course), and JIT isn't viable either anymore.
                Christoph is currently rewriting everything, SNEX, JIT, all FFT related stuff, graphs, scriptnode, the new workbench tool, and probably tons of stuffs I can't understand... in short, a titan job... Until then, nobody has any idea on how it'll work.

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

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  JIT lets you operate on the audio buffer directly so unless that functionality is removed from HISE completely (doubtful), any custom stuff we write now can be ported over to the new version (the actual algorithms aren't going to change any time soon).

                  I was just checking to see if you or anyone else was ahead of me in terms of writing your own FFT in a JIT node. If I finish mine I'll post it as a snippet.

                  ustkU 1 Reply Last reply Reply Quote 1
                  • ustkU
                    ustk @A Former User
                    last edited by

                    @iamlamprey yeah you’re right, unfortunately I didn’t get very far, I’m waiting for the library to work so it’ll be easier to implement

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

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

                      @iamlamprey said in fft core library module:

                      I was just checking to see if you or anyone else was ahead of me in terms of writing your own FFT in a JIT node. If I finish mine I'll post it as a snippet.

                      Well writing an actual FFT routine in JIT code is a bit ambitious (and there is no chance that the performance will be competitive to a statically compiled FFT routine from an industry standard library like IPP or Apples VDSP). There will be a wrapper for different FFT implementations and a common API that allows high-level usage of FFT tasks...

                      ? 1 Reply Last reply Reply Quote 3
                      • ?
                        A Former User @Christoph Hart
                        last edited by

                        @Christoph-Hart said in fft core library module:

                        Well writing an actual FFT routine in JIT code is a bit ambitious

                        So it IS possible 😏

                        Just messing around with it while I wait for the update

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User
                          last edited by

                          @Christoph-Hart Could you elaborate on "high-level usage of FFT tasks"?

                          Mainly will we be able to analyze a signal and detect gains of specific frequencies?

                          I have the most ridiculously sweaty idea for introducing RR functionality in a static sample using modal resynthesis and residue, both of which necessitate being able to identify the loudest frequency(s).

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

                            With high-level usage I mean that you don't know how the FFT works, you just use it. Something like this:

                            block b;
                            SnexFFT fftObject;
                            
                            void prepare(PrepareSpecs ps)
                            {
                                fftObject.setImplementation(FFT::IPP);
                                fftObject.setMaxFFTSize(ps.blockSize);
                                fftObject.setScaleToNormalise(true);
                                fftObject.setOutputFormat(FFT::Amplitude);
                            }
                            
                            void process(ProcessData<2>& d)
                            {
                                // Transforms the first channel of the signal to the fftBuffer
                                fftObject.forward(d[0], fftBuffer);
                            
                                int maxIndex = 0;
                                int counter;
                                float maxValue = 0.0f;
                            
                                for(auto& s: fftBuffer)
                                {
                                    if(s > maxValue)
                                    {
                                        maxValue = s;
                                        maxIndex = counter;
                                    }
                            
                                    ++counter;
                                }
                            
                                double freq = (double)maxIndex / (double)fftBuffer.size() * nyquist;
                            }
                            

                            All these methods are purely theoretical at the moment, but it will look something like this (so basically just a wrapper around the C++ FFT classes that HISE is already using).

                            1 Reply Last reply Reply Quote 2
                            • ?
                              A Former User
                              last edited by

                              Sweeeet officially bought a ticket on the hype train

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

                                The hype train just got a new logo:

                                e19a0410-e0e0-42c2-93af-40a3d3a0883b-image.png

                                Not using the circles as cable end points is such a missed opportunity that I don't know how I could have missed that in the past...

                                ustkU hisefiloH orangeO 3 Replies Last reply Reply Quote 7
                                • ustkU
                                  ustk @Christoph Hart
                                  last edited by

                                  @Christoph-Hart Is the C a modulator or is it the P ???

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

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

                                    It could also be a send connection:

                                    9423811d-2f70-4802-ac04-392b6239d94a-image.png

                                    Or a xfader connection:

                                    45592296-305e-4fcc-9466-5bb921f0b959-image.png

                                    Cables!

                                    ustkU 1 Reply Last reply Reply Quote 3
                                    • ustkU
                                      ustk @Christoph Hart
                                      last edited by

                                      @Christoph-Hart Can’t wait for a t-shirt 😍

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

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

                                        Good idea. The t-shirt will either have this logo or "Crashy, the scriptnode robot":

                                        ccded5e0-8d86-45cd-9cb6-38709b8edbc5-image.png

                                        orangeO 1 Reply Last reply Reply Quote 6
                                        • hisefiloH
                                          hisefilo @Christoph Hart
                                          last edited by hisefilo

                                          @Christoph-Hart (scriptnode logo) love it!!!!!!!!! Really pro. Just try zooming out to see if small sizes are ok. Otherwise you can make a simpler version with just one wire..... Sorry.... Can't help. Worked in advertising for 20 years

                                          1 Reply Last reply Reply Quote 2
                                          • orangeO
                                            orange @Christoph Hart
                                            last edited by

                                            @Christoph-Hart said in fft core library module:

                                            The hype train just got a new logo:

                                            e19a0410-e0e0-42c2-93af-40a3d3a0883b-image.png

                                            Not using the circles as cable end points is such a missed opportunity that I don't know how I could have missed that in the past...

                                            Scriptpiercer :)

                                            develop Branch / XCode 13.1
                                            macOS Monterey / M1 Max

                                            Christoph HartC LindonL 2 Replies Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            47

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts