HISE Logo Forum
    • Categories
    • Register
    • Login

    3rd party Header Files in Hise?

    Scheduled Pinned Locked Moved Solved ScriptNode
    9 Posts 4 Posters 685 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.
    • griffinboyG
      griffinboy
      last edited by griffinboy

      When writing a c++ Scriptnode,
      You often end up with functions that get reused in various nodes, the common solution is of course to create a header file and use #include

      Is there an ideal place I can put header files, such that the compiler will pick up on them?
      I've had a hard time working this one out.

      • Thanks @Christoph-Hart ; )
      griffinboyG 1 Reply Last reply Reply Quote 0
      • griffinboyG
        griffinboy @griffinboy
        last edited by griffinboy

        @griffinboy
        Bump.

        Womp womp.

        I would also be interested in #including external libraries (such as eigen for matrix maths) for example.
        Is this more complex?

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • griffinboyG griffinboy marked this topic as a question on
        • Christoph HartC
          Christoph Hart @griffinboy
          last edited by

          @griffinboy Just include them in every file you need. Use include guards to prevent them being included multiple times, that's standard C++ practice:

          src/MySpecialFramework.h

          #pragma once // this directive tells the compiler to only include this file once
          
          void commonFunction()
          {
             exit 0;
          }
          

          DspNode1.h

          // put the 3rd party header file in the src folder to prevent it from being picked up as "node file" itself
          #include "src/MySpecialFramework.h"
          
          void f()
          {
              commonFunction();
          }
          

          DspNode2.h

          // put the 3rd party header file in the src folder to prevent it from being picked up as "node file" itself
          #include "src/MySpecialFramework.h"
          
          void f2()
          {
              commonFunction();
          }
          
          griffinboyG 2 Replies Last reply Reply Quote 1
          • griffinboyG griffinboy has marked this topic as solved on
          • griffinboyG
            griffinboy @Christoph Hart
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • griffinboyG
              griffinboy @Christoph Hart
              last edited by griffinboy

              @Christoph-Hart

              Thank you I've been waiting for clarification this is great!

              Just one thing, I couldn't find an src folder by default so I created it in thirdparty nodes. I shall see whether that works

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

                @griffinboy

                There are many dsp libraries available for use. For example Airwindows...etc.

                Would you be able to make a sample project (picked from any dsp library) or a screen video to explain the Third Party stuff to newbies like us? If not, no problem.

                Distortion, Saturation would be great.

                griffinboyG 1 Reply Last reply Reply Quote 1
                • griffinboyG
                  griffinboy @A Former User
                  last edited by

                  @harris-rosendahl

                  Haha, distortion: Some of the most complex dsp out there.

                  This is on the to do list, I plan to release a video and some templates for this stuff, but I am currently tied to this very tiring dsp project which has a short deadline.
                  Once I am free of it, I shall create the video and release the resources.

                  If you want it sooner than later I can make a rough guide and put it out there

                  ? C 2 Replies Last reply Reply Quote 4
                  • ?
                    A Former User @griffinboy
                    last edited by

                    @griffinboy Much appreciated, thank you so much! 👍

                    1 Reply Last reply Reply Quote 0
                    • C
                      ccbl @griffinboy
                      last edited by

                      @griffinboy some guides on this kind of stuff would be amazing. I'd love to have a crack at some of this too. When you have the time it would be awesome.

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

                      52

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts