[Qutecsound-devel] how to include files in example
Brought to you by:
mantaraya36
From: joachim h. <jh...@jo...> - 2021-07-27 20:55:16
|
hi - i want to include "fox.wav" in Examples/Synths/ImitiativeAdditive.csd. what is the best way to achieve this? in the McCurdy and FLOSS examples, i once inserted the option: --env:SSDIR+=../SourceMaterials i tried the same here (locally, no push to git): 1. i created a folder "SourceMaterials" in the examples/ directory, with fox.wav in it. 2. i inserted this around line 4600 in src/qutecsound.cpp: QStringList sourceMaterials; sourceMaterials << ":/examples/SourceMaterials/fox.wav"; subMenus << sourceMaterials; subMenuNames << tr("SourceMaterials"); 3. and in application.qrc: <file>../examples/SourceMaterials/fox.wav</file> after recompiling, the folder "SourceMaterials" shows up in the menu, but the fox.wav is not found by csound. perhaps i forgot one step? but anyway, i think it is a nasty way to do it. so back to the question above: how can it be done better, properly? cheers - joachim |