1 Commits

Author SHA1 Message Date
acdd377020 script for serving repo on local network 2024-08-02 13:26:13 +02:00
13 changed files with 13294 additions and 182577 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -5,15 +5,7 @@ The patches require the installation of [drawsocket](https://github.com/drawsock
<img width="1624" alt="image" src="https://github.com/HfMT-ZM4/healing-soundscapes/assets/17442406/0251cad9-4f36-44f2-9e85-ed5c2500f3e2">
## Installation:
Note that this repo served on Gitea must be cloned with SSH rather than HTTPS. The SSH port is 2222
If you're not sure what this means, but you know how to use Github Desktop, you can follow the tutorial at
[Teams Tutorial](https://teams.microsoft.com/l/message/19:K8SFmqtgHNmETeFMqunIiUqPx8njA5GmyttI788pXrQ1@thread.tacv2/1722428967353?tenantId=6fe94159-f184-4738-8023-3e026978a06c&groupId=0f95cf31-fcc5-4226-a9bf-d80b1703871e&parentMessageId=1722428967353&teamName=Healing%20Soundscapes&channelName=General&createdTime=1722428967353)
## Instructions:
Instructions:
1. When running drawsocket the first time, install resources by clicking on script npm install **drawsocket**
2. Start drawsocket server by clicking on **script start**
3. Dump html page by clicking on the button in the upper left-hand corner

File diff suppressed because it is too large Load Diff

View File

@@ -55,28 +55,6 @@ function setInstruments()
function bang()
{
css = [];
elements = [];
body = [];
svg = [];
var html = {
"*" : [{
"key" : "css",
"val" : css
},
{
"key" : "html",
"val" : elements
},
{
"key" : "svg",
"val" : svg
},
{
"key" : "function",
"val" : body
}]
};
css.push({
"selector" : ".menu",
"props" : {
@@ -197,7 +175,7 @@ svg.push({
addMenu(-1, "basicDIV", "Piece", "piece", 36, 0, pieces, "wide");
addMenu(-1, "basicDIV", "Playing Mode", "mode", 66, 0, modes, "wide");
addCheckbox(-1, "basicDIV", "Play", "play", 96, 0, "left");
addSlider(-1, "basicDIV", "Tempo", "tempo", 0, [10, 160], 1, 60, "this.value", "this.value");
addSlider(-1, "basicDIV", "Tempo", "tempo", 0, [20, 160], 1, 60, "this.value", "this.value");
addSlider(-1, "basicDIV", "Duration", "duration", 1, [0, 100], 1, 100, "this.value", "this.value");
addSlider(-1, "basicDIV", "Silence", "silence", 2, [0, 100], 1, 100, "this.value", "this.value");
@@ -205,7 +183,6 @@ svg.push({
for (var i = 0; i < 4; i++) {
var j = 0;
addMenu(i, "player" + i, "Instrument", "instrument", 36, 0, instruments, "narrow");
post("instruments", instruments, "\n");
addMenu(i, "player" + i, "Scale", "scale", 66, 0, scales, "narrow");
addMenu(i, "player" + i, "Meter", "meter", 96, 11, meters, "narrow");
addCheckbox(i, "player" + i, "On", "stream", 36, 0, "right");
@@ -213,7 +190,7 @@ svg.push({
addCheckbox(i, "player" + i, "Overlap", "overlap", 96, 0, "right");
addSlider(i, "player" + i, "Outset Pulses", "outset_pulses", j++, [1, 16], 1, 1, "this.value", "this.value");
addSlider(i, "player" + i, "Eventfulness", "eventfulness", j++, [0, 100], 1, 100, "this.value", "this.value");
addSlider(i, "player" + i, "Event Length", "event_length", j++, [5, 650], 1, 100, "this.value", "this.value");
addSlider(i, "player" + i, "Event Length", "event_length", j++, [5, 100], 1, 100, "this.value", "this.value");
addSlider(i, "player" + i, "Metriclarity", "metriclarity", j++, [0, 100], 1, 100, "this.value", "this.value");
addSlider(i, "player" + i, "Harmoniclarity", "harmoniclarity", j++, [0, 100], 1, 50, "this.value", "this.value");
addSlider(i, "player" + i, "Chordal Weight", "chordal_weight", j++, [1, 5], 1, 1, "this.value", "this.value");
@@ -486,15 +463,9 @@ function addMenu(index, parent, name, id, position, value, array, type)
,
"oninput" : "drawsocket.send({" + "djster" + ": {player: " + (index + 1) + ", " + id + ": this.value}})"
}
];
var obj2 = {
"id" : id + "_value" + "_" + index,
"args" : "v",
"body" : "document.getElementById('" + id + "_" + index + "').value = v;document.getElementById('" + id + "_num" + "_" + index + "').value = v"
};
];
elements.push(obj[0]);
elements.push(obj[1]);
body.push(obj2);
}
function addCheckbox(index, parent, name, id, position, checked, type)
@@ -502,7 +473,7 @@ function addCheckbox(index, parent, name, id, position, checked, type)
var left = (type == "left") ? 10 : 252;
var leftoffset = (type == "left") ? 126 : 85;
checkboxes[index + 1][id].name = name;
checkboxes[index + 1][id].pos = [left + leftoffset - 4, position - 1];
checkboxes[index + 1][id].pos = [left + leftoffset, position - 2];
checkboxes[index + 1][id].parent = parent;
var obj = [{
"parent" : parent,
@@ -690,12 +661,12 @@ function param()
d.name = p[1];
var obj = {};
var out = new Dict;
if (d.contains("player") == 0) return;
var keys = d.getkeys();
//post(d.stringify(), "\n");
var index1 = d.get("player");
var msg = keys.indexOf("player") ? keys[0] : keys[1];
var val = d.get(msg);
//post("what?", msg + "_value_" + (index1 - 1), val, "\n");
//post("what?", JSON.stringify(checkboxes), index1, msg, val, "\n");
//for range sliders (calc pulse_length, tonic_pitch, pitch_range)
switch (msg) {
//menus
@@ -704,7 +675,6 @@ function param()
case "instrument" :
case "scale" :
case "meter" :
/*
obj["*"] = {
"key" : "html",
"val" : {
@@ -712,14 +682,6 @@ function param()
"selected" : true
}
};
*/
obj["*"] = {
"key" : "function",
"val" : {
"id" : msg + "_value_" + (index1 - 1),
"call" : val
}
};
break;
//checkboxes
case "play" :
@@ -763,7 +725,6 @@ function param()
val = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'][val % 12] + (parseInt((val) / 12) - 2);
break;
}
/*
obj["*"] = {
"key" : "html",
"val" : [{
@@ -775,14 +736,6 @@ function param()
"value" : val
}]
};
*/
obj["*"] = {
"key" : "function",
"val" : {
"id" : msg + "_value_" + (index1 - 1),
"call" : val
}
};
}
out.parse(JSON.stringify(obj));
outlet(0, "dictionary", out.name);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -47,18 +47,16 @@ function readPiece(path)
jpieces = JSON.parse(outdict.stringify());
var keys = outdict.getkeys();
for (var i = 0; i < keys.length; i++) outlet(3, keys[i]);
outlet(1, outdict.get("DefaultSetting::1::networkData"));
outlet(1, "predict", 0.5, 0.5);
outlet(0, 0.5, 0.5);
outlet(1, outdict.get("DefaultSetting::1::networkData");
outlet(1, predict(0.5, 0.5);
outlet(0, 0.5, 0.5;
}
function getSection(section)
{
if (outdict.contains(section)) {
outlet(1, outdict.get(section + "::1::networkData"));
outlet(1, "predict", 0.5, 0.5);
outlet(0, 0.5, 0.5);
}
outlet(1, outdict.get(section + "::1::networkData");
outlet(1, predict(0.5, 0.5);
outlet(0, 0.5, 0.5;
}
function writePiece()

1
serve-files.sh Normal file
View File

@@ -0,0 +1 @@
git daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose

View File

@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>23C71</string>
<key>C74ObjectProperties</key>
<dict>
<key>c74excludefromcollectives</key>
<string></string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>vbap</string>
<key>CFBundleIdentifier</key>
<string>.</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>vbap - </string>
<key>CFBundlePackageType</key>
<string>iLaX</string>
<key>CFBundleSignature</key>
<string>max2</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CSResourcesFileMapped</key>
<true/>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string></string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>14.2</string>
<key>DTSDKBuild</key>
<string>23C53</string>
<key>DTSDKName</key>
<string>macosx14.2</string>
<key>DTXcode</key>
<string>1520</string>
<key>DTXcodeBuild</key>
<string>15C500b</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>LSRequiresCarbon</key>
<true/>
</dict>
</plist>

Binary file not shown.

View File

@@ -1 +0,0 @@
iLaX????

View File

@@ -1,115 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>