HISE Logo Forum
    • Categories
    • Register
    • Login

    Can SNEX include external header files?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 307 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 ustk

      @Christoph-Hart Might be a dumb question, but...
      Well I might have my answer already, seeing I unsuccessfully tried...

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

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

        @ustk nope all in one file.

        I hate to say this because I spent so much time and effort into SNEX but it might be the time for you to move on to the C++ workflow that @griffinboy had posted the video about.

        Most of the knowledge about SNEX transfers over there but the endless possibilities of C++ will feel liberating.

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

          @Christoph-Hart Listen, do not hate what you're saying because this is exactly what I feel these last days, and @griffinboy's amazing tuto makes me wanting to jump straight into it!

          Effectively SNEX is very close to C++ paradigm (oh really? was it intend? :beaming_face_with_smiling_eyes: ) so the gap isn't that big for me now. Though, long live SNEX, because it is so helpful and fast for prototyping! Then once you get a part of code working it should be good to transfer it in C++. Also, small DSPs can happily live within SNEX without feeling the need to move into C++ anyway. So in the end the effort you put in raising this little boy largely worth it!

          The fact is that I tried already, but I wasn't able to make it through using XCode. @griffinboy's VS example wasn't enough for me to make that transfer successfully but I have spend a very little amount of time so I might try again in the next days.

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

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

            @ustk

            Working on a set of videos for the c++ dsp, but I've recently hit some horrible c++ related issues in my projects, and so I am making sure that I fully explore everything before I decide to go and teach!

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

              @griffinboy if you want you can also send me a private link to your current videos, maybe I can help with proof-reading.

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

                The fact is that I tried already, but I wasn't able to make it through using XCode.

                It's really not that much different, so where did you get stuck? I think the most annoying problem is that your C++ node files are not inside the Xcode solution folder so they won't show up in the project file browser, but you can mitigate this with the jump to definition function when you hover over include statements (hack of the day).

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

                  @griffinboy amazing ! Whatever you come up with will be so helpful 😉

                  @Christoph-Hart said in Can SNEX include external header files?:

                  The fact is that I tried already, but I wasn't able to make it through using XCode.

                  It's really not that much different, so where did you get stuck? I think the most annoying problem is that your C++ node files are not inside the Xcode solution folder so they won't show up in the project file browser, but you can mitigate this with the jump to definition function when you hover over include statements (hack of the day).

                  Stuck exactly there! So you’re not just a bot, you’re clairvoyant too 😛

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

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

                    @Christoph-Hart Well, hovering shoes nothing, right click does but nothing happens with Jump to Definition

                    Screenshot 2024-10-19 at 01.13.47.png

                    Instead I can open the file manually which works fine enough...

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

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

                      @ustk ah I mispoke (cue the obvious improve my skills joke here), that works on Visual Studio.

                      In Xcode what you need to do is to go to the Main.cpp file and where you see this:

                      TempoSyncer::initTempoData();
                      // Node registrations ----------------------------------------------------------------------
                      		
                      registerPolyNode<project::node1<1>, wrap::illegal_poly<project::node1<1>>>();
                      registerPolyNode<project::node2<1>, wrap::illegal_poly<project::node2<1>>>();
                      registerPolyNode<project::node3<1>, ...
                      

                      right click on node1 (or the node you want), then use Jump to definition. If Xcode hasn't completely given up with the auto complete (happens sometimes, Apple FTW), it will take you to your node file and open it in a new tab.

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

                      25

                      Online

                      1.8k

                      Users

                      12.1k

                      Topics

                      104.9k

                      Posts