~pbatch/patchwerk

patchwerk/janet/project.janet -rw-r--r-- 668 bytes
9c265356 — paul plan9 additions from Sigrid 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(def nodes
  @("sine"
    "wavout"
    "biscale"
    "scale"
    "blsaw"
    "butlp"
    "revsc"
    "mul"
    "add"
    "wavin"
    "tick"
    "tenvx"
    "clock"
    "samphold"
    "phasor"))

(defn mksrc (src nodespath dsppath)
  (each n nodes
    (array/push src (string nodespath "/j_" n ".c"))
    (array/push src (string dsppath "/" n ".c"))))

(var src @[])

(declare-project
  :name "patchwerk"
  :author "Paul Batchelor")

(array/push src "main.c")
(array/push src "../patchwerk.c")
(mksrc src "nodes" "../dsp")

(declare-native
    :name "patchwerk"
    :cflags '("-I../" "-DPW_JANET_PLUGIN")
    :lflags '("-lsoundpipe" "-lsndfile" "-lm")
    :source src)