Can SNEX include external header files?
-
@Christoph-Hart Might be a dumb question, but...
Well I might have my answer already, seeing I unsuccessfully tried... -
@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.
-
@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.
-
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!
-
@griffinboy if you want you can also send me a private link to your current videos, maybe I can help with proof-reading.
-
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).
-
@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
-
@Christoph-Hart Well, hovering shoes nothing, right click does but nothing happens with
Jump to Definition
Instead I can open the file manually which works fine enough...
-
@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.