Project Generator (idea)

Hi all!
I tried to use the libs inside xcode but i got always some libs that cannot be found.
I was using the juce to make some vst ( i am still a noob).
I got a daisy pod and wanted to port dsp code i have written.
It is a basic amplitude modulation of an input signal with four algorithms.
(Tri, Cos, Noise + Cosine, Noise + seed(ms))
Juce programmers offer have an app called projucer and it creates by itself
the xcode project and all linking of files (libs).
Also openframeworks has a project generator.
This would be a great improvement to make one for the daisy programmers.
Has anyone got some success with visual studio code, codeblocks ecc…?
Can someone tell me how to do it or point me into the right direction how to include the libs in the right way?
Anyone has tried to do it on rasberry pi (running ubuntu 64 bit)?
Thank you for taking your time…
Cheers and happy seeding :smiley:

Hi Bee, welcome to the forum!

I recently added a helper.py file that can be used to create new projects within the DaisyExamples hierarchy.

It doesn’t have the configuration that projucer offers, and does not support native VisualStudio or XCode yet, but it does provide project files for:

  • Make/Command Line builds
  • VS Code + Cortex Debug extension
  • Visual Studio + VisualGDB extension

This makes creating new projects that can be debugged fairly simple (compared to a lot of text replacement, or set up that would be required otherwise).

To copy an existing example as a starting point you can do:

./helper.py copy seed/MyNewProject --source seed/Knob

or to create a new project from scratch:

./helper.py create seed/MyNewProject --board seed

At some point we may add a GUI, and additional features to the code-generation, but this is a good starting point if you weren’t aware of it, and all you need is to have python (3) installed for it to work.

Building on Raspberry Pi should be pretty similar since the toolchain is not tied to any particular architecture or OS.

Hope that helps!

3 Likes

It is possible to do it on a Pi, but be aware that the compilers for the Arm A series Pi and the M series Seed are different but some parts, especially libraries, have the same name and it is quite easy to get them confused and spend ages chasing make failures.

Maybe try running it as
python3 ./helper.py create seed/MyNewProject --board seed
I think casefold is a python 3.3 and up feature.

4 Likes

@dialectrics ah, the scripts within the daisy ecosystem (with the exception of pd2dsy because of hvcc) require python3. I believe this is noted in the README on DaisyExamples, but if it’s not I can add clarification.

With your installation you should be able to run the script with python3 as @ben_serge illustrated.

3 Likes

Hi Bee and welcome!

I’m using google gyp, (generate your project) which creates for me the Xcode project, and ninja build file to cross-compile for daisy seed. The whole is packaged in a meta-build-system python module to make it easy to use.

The project is here, it’s open source. Watch for the CI workflow files in .github to see how the machine is installed depending on the platform (it does not link properly using ninja on Windows yet).

Have a look at the test project to see how it is organised. The configuration (the equivalent to the projucer document) is the test.gyp file.

I’m planning to add VSCode/PlatformIO support, but if you are looking for editing from within Xcode and configure/build/deploy from the command line, that could be a starting point.

Hope this helps,

Raphael

2 Likes