Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit d4c3138

Browse files
build instructions in readme
1 parent 27d520e commit d4c3138

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Readme.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ In a terminal, start the python server as described above.
6666
In Supercollider, step through `examples/notochord/tidalcycles/tidal-notochord-demo.scd` which will receive from Tidal, talk to the python server, and send MIDI on to a synthesizer. There are two options, either send to fluidsynth to synthesize General MIDI, or specify your own mapping of instruments to channels and send on to your own DAW or synth.
6767

6868
### Install fluidsynth (optional)
69-
fluidsynth (https://github.com/FluidSynth/fluidsynth) is a General MIDI synthesizer which you can install from the package manager. On mac:
69+
fluidsynth (https://github.com/FluidSynth/fluidsynth) is a General MIDI synthesizer which you can install from the package manager. On macOS:
7070
```
7171
brew install fluidsynth
7272
```
@@ -92,3 +92,20 @@ add new dependencies to `environment.yml`, then run:
9292
```
9393
conda env update -f environment.yml
9494
```
95+
96+
# Build
97+
98+
single-download redistributable builds can be made using Nuitka (https://nuitka.net/index.html)
99+
100+
steps (for arm64 mac):
101+
102+
install Nuitka into the conda environment (this is 1.1-rc10 at time of writing; 1.0 has a bug)
103+
`pip install -U "https://github.com/Nuitka/Nuitka/archive/develop.zip"`
104+
105+
you can add `pip install ordered-set` and `brew install ccache` for best performance.
106+
107+
pytorch 1.12.x has an issue with an x86 binary being included in arm64 pacakges: https://github.com/pytorch/pytorch/issues/84351
108+
109+
to get around this, delete `_dl.*.so` from the torch install (which can be located with `python -c "import torch; from pathlib import Path; print(Path(torch.__file__).parent)"`)
110+
111+
then `nuitka-build.sh`, and `zip-notochord.sh` should compile notochord with nuitka and produce a zip from the build directory, artifacts directory, and `notochord-osc-server.sh` entry point.

0 commit comments

Comments
 (0)