Add automatic Quarks installation and Quark initialization

microsound-explorer
lambda 5 months ago
parent 0278f19a9d
commit 976d59005a
Signed by: lambda
GPG Key ID: 07006F27729676AE

@ -1,8 +1,22 @@
BmDspAlgs { BmDspAlgs {
*initClass {
Class.initClassTree(NodeDictionary);
}
*getDict { *getDict {
| relPath | | relPath |
/*
* TODO:
* ~d1 = BmDspAlgs.getDict("/synths/bass/saw_bass.scd");
* will cause an error because of / at start
* should check file that exists first
*/
var path = PathName(relPath.resolveRelative); var path = PathName(relPath.resolveRelative);
var file = path.fullPath.load; var file = path.fullPath.load;
/*
* TODO:
* load dictionary specs here
*/
^NodeDictionary.newFrom(file); ^NodeDictionary.newFrom(file);
} }
} }

@ -1,9 +1,9 @@
( (
name: "BmDspAlgs", name: "bmSClib",
summary: "WIP! Collection of dictionaries, describing synth nodes.", summary: "WIP! Collection of dictionaries, describing synth nodes.",
version: "0.1.0", version: "0.1.0",
schelp: "BmDspalgs", schelp: "bmSClib",
dependencies: ["NodeDictionary"], dependencies: [],
license: "GPL", license: "GPL",
copyright: "Bjornmossa 2023" copyright: "Bjornmossa 2025"
) )

@ -0,0 +1,20 @@
BmQuarks {
*initClass {
StartUp.add {
var quarks = [
"BatLib",
"Bjorklund",
"crucial-library",
"JITLibExtensions",
"miSCellaneous_lib",
];
quarks.do({
|quarkName|
if(Quarks.isInstalled(quarkName).not, {
Quarks.install(quarkName);
});
});
}
}
}

@ -1,15 +1,4 @@
BatLib Install all needed Quarks at startup.
Bjorklund
crucial-library
ddwCommon
ddwGUIEnhancements
ddwMixerChannel
Dirt-Samples
JITLibExtensions
miSCellaneous_lib
quarks
SuperDirt
Vowel
ChordSymbol TODO:
mi-UGens - find way to install extentions (ChordSymbol, mi-UGens)

@ -1,7 +1,10 @@
* About * About
* Structure This repo contains reusable code I often share
between my SuperCollider projects
* Structure
- NodeDictionary - NodeDictionary
Set of Dictionary class extentions for generating Set of Dictionary class extentions for generating
nodes from declarative definitions nodes from declarative definitions
- quarks
Quarks and Extentions I usally use for projects

Loading…
Cancel
Save