-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibs.scm
72 lines (64 loc) · 1.89 KB
/
libs.scm
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(compile-imported-libraries #t)
(optimize-level 2)
(define aeon-dir
(if (top-level-bound? 'aeon-file)
(path-parent aeon-file)
(current-directory)))
(library-extensions
(list ".chezscheme.sls" ".sc" ".ss" ".scm" ".sls" ".sch"))
(library-directories
(map (lambda (s) (string-append aeon-dir s))
(list "/libs"
"/libs/third-party"
"/libs/third-party/thunder"
"/libs/third-party/sc3"
"/tests")))
(import (scheme)
(utilities)
(file-tools)
(system)
(rename (version-control) (jump vc:jump)))
(build-aeon-libraries aeon-dir)
(import (prefix (rsc3) sc/)
(prefix (sosc) so/)
(rename (matchable) (? ??) ($ $$))
(project)
(doc)
(event)
(arc)
(context)
(context-render)
(seq-def)
(seq-continuous)
(seq-subdivide)
(seq-eval)
(ops-basic)
(ops-chains)
(ops-sugar)
(ops-time)
(ops-chords)
(midinotes)
(harmony)
(rhythm)
(playback)
(samples)
(synthesis))
; (import (controls)) ;; I'll come back to this
;;------------------------------------------------------------------
;; Pull docs from libraries that expose them, add them to a
;; global dict. Also define convenience macros for accessing.
(define docs-dict (make-docs-dict))
(for-each (lambda (f) (f docs-dict))
(list rhythm-docs
harmony-docs
ops-basic-docs
subdivide-docs
chain-docs))
(define-syntax doc
(syntax-rules () ((_ name) (print-doc docs-dict 'name))))
(define-syntax docstr
(syntax-rules () ((_ name) (get-doc-desc docs-dict 'name))))
(define-syntax docargs
(syntax-rules () ((_ name) (get-doc-args docs-dict 'name))))
(define-syntax docex
(syntax-rules () ((_ name) (get-doc-examples docs-dict 'name))))