LilyPond-Ruby 0.0.2.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1112) hide show
  1. checksums.yaml +4 -4
  2. data/etc/fonts/conf.d/10-hinting-slight.conf +15 -0
  3. data/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +83 -0
  4. data/etc/fonts/conf.d/11-lcdfilter-default.conf +17 -0
  5. data/etc/fonts/conf.d/20-unhint-small-vera.conf +49 -0
  6. data/etc/fonts/conf.d/30-metric-aliases.conf +637 -0
  7. data/etc/fonts/conf.d/40-nonlatin.conf +332 -0
  8. data/etc/fonts/conf.d/45-generic.conf +136 -0
  9. data/etc/fonts/conf.d/45-latin.conf +301 -0
  10. data/etc/fonts/conf.d/48-spacing.conf +16 -0
  11. data/etc/fonts/conf.d/49-sansserif.conf +22 -0
  12. data/etc/fonts/conf.d/50-user.conf +16 -0
  13. data/etc/fonts/conf.d/51-local.conf +7 -0
  14. data/etc/fonts/conf.d/60-generic.conf +64 -0
  15. data/etc/fonts/conf.d/60-latin.conf +88 -0
  16. data/etc/fonts/conf.d/65-fonts-persian.conf +418 -0
  17. data/etc/fonts/conf.d/65-nonlatin.conf +228 -0
  18. data/etc/fonts/conf.d/69-unifont.conf +28 -0
  19. data/etc/fonts/conf.d/80-delicious.conf +19 -0
  20. data/etc/fonts/conf.d/90-synthetic.conf +64 -0
  21. data/etc/fonts/conf.d/README +23 -0
  22. data/etc/fonts/fonts.conf +101 -0
  23. data/etc/relocate/fontconfig.reloc +2 -0
  24. data/etc/relocate/guile.reloc +2 -0
  25. data/etc/relocate/libexec.reloc +1 -0
  26. data/lib/guile/2.2/ccache/ice-9/and-let-star.go +0 -0
  27. data/lib/guile/2.2/ccache/ice-9/arrays.go +0 -0
  28. data/lib/guile/2.2/ccache/ice-9/atomic.go +0 -0
  29. data/lib/guile/2.2/ccache/ice-9/binary-ports.go +0 -0
  30. data/lib/guile/2.2/ccache/ice-9/boot-9.go +0 -0
  31. data/lib/guile/2.2/ccache/ice-9/buffered-input.go +0 -0
  32. data/lib/guile/2.2/ccache/ice-9/calling.go +0 -0
  33. data/lib/guile/2.2/ccache/ice-9/channel.go +0 -0
  34. data/lib/guile/2.2/ccache/ice-9/command-line.go +0 -0
  35. data/lib/guile/2.2/ccache/ice-9/common-list.go +0 -0
  36. data/lib/guile/2.2/ccache/ice-9/control.go +0 -0
  37. data/lib/guile/2.2/ccache/ice-9/curried-definitions.go +0 -0
  38. data/lib/guile/2.2/ccache/ice-9/debug.go +0 -0
  39. data/lib/guile/2.2/ccache/ice-9/deprecated.go +0 -0
  40. data/lib/guile/2.2/ccache/ice-9/documentation.go +0 -0
  41. data/lib/guile/2.2/ccache/ice-9/eval-string.go +0 -0
  42. data/lib/guile/2.2/ccache/ice-9/eval.go +0 -0
  43. data/lib/guile/2.2/ccache/ice-9/expect.go +0 -0
  44. data/lib/guile/2.2/ccache/ice-9/fdes-finalizers.go +0 -0
  45. data/lib/guile/2.2/ccache/ice-9/format.go +0 -0
  46. data/lib/guile/2.2/ccache/ice-9/ftw.go +0 -0
  47. data/lib/guile/2.2/ccache/ice-9/futures.go +0 -0
  48. data/lib/guile/2.2/ccache/ice-9/gap-buffer.go +0 -0
  49. data/lib/guile/2.2/ccache/ice-9/getopt-long.go +0 -0
  50. data/lib/guile/2.2/ccache/ice-9/hash-table.go +0 -0
  51. data/lib/guile/2.2/ccache/ice-9/hcons.go +0 -0
  52. data/lib/guile/2.2/ccache/ice-9/history.go +0 -0
  53. data/lib/guile/2.2/ccache/ice-9/i18n.go +0 -0
  54. data/lib/guile/2.2/ccache/ice-9/iconv.go +0 -0
  55. data/lib/guile/2.2/ccache/ice-9/lineio.go +0 -0
  56. data/lib/guile/2.2/ccache/ice-9/list.go +0 -0
  57. data/lib/guile/2.2/ccache/ice-9/local-eval.go +0 -0
  58. data/lib/guile/2.2/ccache/ice-9/ls.go +0 -0
  59. data/lib/guile/2.2/ccache/ice-9/mapping.go +0 -0
  60. data/lib/guile/2.2/ccache/ice-9/match.go +0 -0
  61. data/lib/guile/2.2/ccache/ice-9/networking.go +0 -0
  62. data/lib/guile/2.2/ccache/ice-9/null.go +0 -0
  63. data/lib/guile/2.2/ccache/ice-9/occam-channel.go +0 -0
  64. data/lib/guile/2.2/ccache/ice-9/optargs.go +0 -0
  65. data/lib/guile/2.2/ccache/ice-9/peg/cache.go +0 -0
  66. data/lib/guile/2.2/ccache/ice-9/peg/codegen.go +0 -0
  67. data/lib/guile/2.2/ccache/ice-9/peg/simplify-tree.go +0 -0
  68. data/lib/guile/2.2/ccache/ice-9/peg/string-peg.go +0 -0
  69. data/lib/guile/2.2/ccache/ice-9/peg/using-parsers.go +0 -0
  70. data/lib/guile/2.2/ccache/ice-9/peg.go +0 -0
  71. data/lib/guile/2.2/ccache/ice-9/poe.go +0 -0
  72. data/lib/guile/2.2/ccache/ice-9/poll.go +0 -0
  73. data/lib/guile/2.2/ccache/ice-9/popen.go +0 -0
  74. data/lib/guile/2.2/ccache/ice-9/ports.go +0 -0
  75. data/lib/guile/2.2/ccache/ice-9/posix.go +0 -0
  76. data/lib/guile/2.2/ccache/ice-9/pretty-print.go +0 -0
  77. data/lib/guile/2.2/ccache/ice-9/psyntax-pp.go +0 -0
  78. data/lib/guile/2.2/ccache/ice-9/q.go +0 -0
  79. data/lib/guile/2.2/ccache/ice-9/r5rs.go +0 -0
  80. data/lib/guile/2.2/ccache/ice-9/rdelim.go +0 -0
  81. data/lib/guile/2.2/ccache/ice-9/receive.go +0 -0
  82. data/lib/guile/2.2/ccache/ice-9/regex.go +0 -0
  83. data/lib/guile/2.2/ccache/ice-9/runq.go +0 -0
  84. data/lib/guile/2.2/ccache/ice-9/rw.go +0 -0
  85. data/lib/guile/2.2/ccache/ice-9/safe-r5rs.go +0 -0
  86. data/lib/guile/2.2/ccache/ice-9/safe.go +0 -0
  87. data/lib/guile/2.2/ccache/ice-9/sandbox.go +0 -0
  88. data/lib/guile/2.2/ccache/ice-9/save-stack.go +0 -0
  89. data/lib/guile/2.2/ccache/ice-9/scm-style-repl.go +0 -0
  90. data/lib/guile/2.2/ccache/ice-9/serialize.go +0 -0
  91. data/lib/guile/2.2/ccache/ice-9/session.go +0 -0
  92. data/lib/guile/2.2/ccache/ice-9/slib.go +0 -0
  93. data/lib/guile/2.2/ccache/ice-9/stack-catch.go +0 -0
  94. data/lib/guile/2.2/ccache/ice-9/streams.go +0 -0
  95. data/lib/guile/2.2/ccache/ice-9/string-fun.go +0 -0
  96. data/lib/guile/2.2/ccache/ice-9/suspendable-ports.go +0 -0
  97. data/lib/guile/2.2/ccache/ice-9/syncase.go +0 -0
  98. data/lib/guile/2.2/ccache/ice-9/textual-ports.go +0 -0
  99. data/lib/guile/2.2/ccache/ice-9/threads.go +0 -0
  100. data/lib/guile/2.2/ccache/ice-9/time.go +0 -0
  101. data/lib/guile/2.2/ccache/ice-9/top-repl.go +0 -0
  102. data/lib/guile/2.2/ccache/ice-9/unicode.go +0 -0
  103. data/lib/guile/2.2/ccache/ice-9/vlist.go +0 -0
  104. data/lib/guile/2.2/ccache/ice-9/weak-vector.go +0 -0
  105. data/lib/guile/2.2/ccache/language/brainfuck/compile-scheme.go +0 -0
  106. data/lib/guile/2.2/ccache/language/brainfuck/compile-tree-il.go +0 -0
  107. data/lib/guile/2.2/ccache/language/brainfuck/parse.go +0 -0
  108. data/lib/guile/2.2/ccache/language/brainfuck/spec.go +0 -0
  109. data/lib/guile/2.2/ccache/language/bytecode/spec.go +0 -0
  110. data/lib/guile/2.2/ccache/language/bytecode.go +0 -0
  111. data/lib/guile/2.2/ccache/language/cps/closure-conversion.go +0 -0
  112. data/lib/guile/2.2/ccache/language/cps/compile-bytecode.go +0 -0
  113. data/lib/guile/2.2/ccache/language/cps/constructors.go +0 -0
  114. data/lib/guile/2.2/ccache/language/cps/contification.go +0 -0
  115. data/lib/guile/2.2/ccache/language/cps/cse.go +0 -0
  116. data/lib/guile/2.2/ccache/language/cps/dce.go +0 -0
  117. data/lib/guile/2.2/ccache/language/cps/effects-analysis.go +0 -0
  118. data/lib/guile/2.2/ccache/language/cps/elide-values.go +0 -0
  119. data/lib/guile/2.2/ccache/language/cps/handle-interrupts.go +0 -0
  120. data/lib/guile/2.2/ccache/language/cps/intmap.go +0 -0
  121. data/lib/guile/2.2/ccache/language/cps/intset.go +0 -0
  122. data/lib/guile/2.2/ccache/language/cps/licm.go +0 -0
  123. data/lib/guile/2.2/ccache/language/cps/optimize.go +0 -0
  124. data/lib/guile/2.2/ccache/language/cps/peel-loops.go +0 -0
  125. data/lib/guile/2.2/ccache/language/cps/primitives.go +0 -0
  126. data/lib/guile/2.2/ccache/language/cps/prune-bailouts.go +0 -0
  127. data/lib/guile/2.2/ccache/language/cps/prune-top-level-scopes.go +0 -0
  128. data/lib/guile/2.2/ccache/language/cps/reify-primitives.go +0 -0
  129. data/lib/guile/2.2/ccache/language/cps/renumber.go +0 -0
  130. data/lib/guile/2.2/ccache/language/cps/rotate-loops.go +0 -0
  131. data/lib/guile/2.2/ccache/language/cps/self-references.go +0 -0
  132. data/lib/guile/2.2/ccache/language/cps/simplify.go +0 -0
  133. data/lib/guile/2.2/ccache/language/cps/slot-allocation.go +0 -0
  134. data/lib/guile/2.2/ccache/language/cps/spec.go +0 -0
  135. data/lib/guile/2.2/ccache/language/cps/specialize-numbers.go +0 -0
  136. data/lib/guile/2.2/ccache/language/cps/specialize-primcalls.go +0 -0
  137. data/lib/guile/2.2/ccache/language/cps/split-rec.go +0 -0
  138. data/lib/guile/2.2/ccache/language/cps/type-checks.go +0 -0
  139. data/lib/guile/2.2/ccache/language/cps/type-fold.go +0 -0
  140. data/lib/guile/2.2/ccache/language/cps/types.go +0 -0
  141. data/lib/guile/2.2/ccache/language/cps/utils.go +0 -0
  142. data/lib/guile/2.2/ccache/language/cps/verify.go +0 -0
  143. data/lib/guile/2.2/ccache/language/cps/with-cps.go +0 -0
  144. data/lib/guile/2.2/ccache/language/cps.go +0 -0
  145. data/lib/guile/2.2/ccache/language/ecmascript/array.go +0 -0
  146. data/lib/guile/2.2/ccache/language/ecmascript/base.go +0 -0
  147. data/lib/guile/2.2/ccache/language/ecmascript/compile-tree-il.go +0 -0
  148. data/lib/guile/2.2/ccache/language/ecmascript/function.go +0 -0
  149. data/lib/guile/2.2/ccache/language/ecmascript/impl.go +0 -0
  150. data/lib/guile/2.2/ccache/language/ecmascript/parse.go +0 -0
  151. data/lib/guile/2.2/ccache/language/ecmascript/spec.go +0 -0
  152. data/lib/guile/2.2/ccache/language/ecmascript/tokenize.go +0 -0
  153. data/lib/guile/2.2/ccache/language/elisp/bindings.go +0 -0
  154. data/lib/guile/2.2/ccache/language/elisp/boot.go +0 -0
  155. data/lib/guile/2.2/ccache/language/elisp/compile-tree-il.go +0 -0
  156. data/lib/guile/2.2/ccache/language/elisp/falias.go +0 -0
  157. data/lib/guile/2.2/ccache/language/elisp/lexer.go +0 -0
  158. data/lib/guile/2.2/ccache/language/elisp/parser.go +0 -0
  159. data/lib/guile/2.2/ccache/language/elisp/runtime/function-slot.go +0 -0
  160. data/lib/guile/2.2/ccache/language/elisp/runtime/value-slot.go +0 -0
  161. data/lib/guile/2.2/ccache/language/elisp/runtime.go +0 -0
  162. data/lib/guile/2.2/ccache/language/elisp/spec.go +0 -0
  163. data/lib/guile/2.2/ccache/language/scheme/compile-tree-il.go +0 -0
  164. data/lib/guile/2.2/ccache/language/scheme/decompile-tree-il.go +0 -0
  165. data/lib/guile/2.2/ccache/language/scheme/spec.go +0 -0
  166. data/lib/guile/2.2/ccache/language/tree-il/analyze.go +0 -0
  167. data/lib/guile/2.2/ccache/language/tree-il/canonicalize.go +0 -0
  168. data/lib/guile/2.2/ccache/language/tree-il/compile-cps.go +0 -0
  169. data/lib/guile/2.2/ccache/language/tree-il/debug.go +0 -0
  170. data/lib/guile/2.2/ccache/language/tree-il/effects.go +0 -0
  171. data/lib/guile/2.2/ccache/language/tree-il/fix-letrec.go +0 -0
  172. data/lib/guile/2.2/ccache/language/tree-il/optimize.go +0 -0
  173. data/lib/guile/2.2/ccache/language/tree-il/peval.go +0 -0
  174. data/lib/guile/2.2/ccache/language/tree-il/primitives.go +0 -0
  175. data/lib/guile/2.2/ccache/language/tree-il/spec.go +0 -0
  176. data/lib/guile/2.2/ccache/language/tree-il.go +0 -0
  177. data/lib/guile/2.2/ccache/language/value/spec.go +0 -0
  178. data/lib/guile/2.2/ccache/oop/goops/accessors.go +0 -0
  179. data/lib/guile/2.2/ccache/oop/goops/active-slot.go +0 -0
  180. data/lib/guile/2.2/ccache/oop/goops/composite-slot.go +0 -0
  181. data/lib/guile/2.2/ccache/oop/goops/describe.go +0 -0
  182. data/lib/guile/2.2/ccache/oop/goops/internal.go +0 -0
  183. data/lib/guile/2.2/ccache/oop/goops/save.go +0 -0
  184. data/lib/guile/2.2/ccache/oop/goops/simple.go +0 -0
  185. data/lib/guile/2.2/ccache/oop/goops/stklos.go +0 -0
  186. data/lib/guile/2.2/ccache/oop/goops.go +0 -0
  187. data/lib/guile/2.2/ccache/rnrs/arithmetic/bitwise.go +0 -0
  188. data/lib/guile/2.2/ccache/rnrs/arithmetic/fixnums.go +0 -0
  189. data/lib/guile/2.2/ccache/rnrs/arithmetic/flonums.go +0 -0
  190. data/lib/guile/2.2/ccache/rnrs/base.go +0 -0
  191. data/lib/guile/2.2/ccache/rnrs/bytevectors.go +0 -0
  192. data/lib/guile/2.2/ccache/rnrs/conditions.go +0 -0
  193. data/lib/guile/2.2/ccache/rnrs/control.go +0 -0
  194. data/lib/guile/2.2/ccache/rnrs/enums.go +0 -0
  195. data/lib/guile/2.2/ccache/rnrs/eval.go +0 -0
  196. data/lib/guile/2.2/ccache/rnrs/exceptions.go +0 -0
  197. data/lib/guile/2.2/ccache/rnrs/files.go +0 -0
  198. data/lib/guile/2.2/ccache/rnrs/hashtables.go +0 -0
  199. data/lib/guile/2.2/ccache/rnrs/io/ports.go +0 -0
  200. data/lib/guile/2.2/ccache/rnrs/io/simple.go +0 -0
  201. data/lib/guile/2.2/ccache/rnrs/lists.go +0 -0
  202. data/lib/guile/2.2/ccache/rnrs/mutable-pairs.go +0 -0
  203. data/lib/guile/2.2/ccache/rnrs/mutable-strings.go +0 -0
  204. data/lib/guile/2.2/ccache/rnrs/programs.go +0 -0
  205. data/lib/guile/2.2/ccache/rnrs/r5rs.go +0 -0
  206. data/lib/guile/2.2/ccache/rnrs/records/inspection.go +0 -0
  207. data/lib/guile/2.2/ccache/rnrs/records/procedural.go +0 -0
  208. data/lib/guile/2.2/ccache/rnrs/records/syntactic.go +0 -0
  209. data/lib/guile/2.2/ccache/rnrs/sorting.go +0 -0
  210. data/lib/guile/2.2/ccache/rnrs/syntax-case.go +0 -0
  211. data/lib/guile/2.2/ccache/rnrs/unicode.go +0 -0
  212. data/lib/guile/2.2/ccache/rnrs.go +0 -0
  213. data/lib/guile/2.2/ccache/scripts/api-diff.go +0 -0
  214. data/lib/guile/2.2/ccache/scripts/autofrisk.go +0 -0
  215. data/lib/guile/2.2/ccache/scripts/compile.go +0 -0
  216. data/lib/guile/2.2/ccache/scripts/disassemble.go +0 -0
  217. data/lib/guile/2.2/ccache/scripts/display-commentary.go +0 -0
  218. data/lib/guile/2.2/ccache/scripts/doc-snarf.go +0 -0
  219. data/lib/guile/2.2/ccache/scripts/frisk.go +0 -0
  220. data/lib/guile/2.2/ccache/scripts/generate-autoload.go +0 -0
  221. data/lib/guile/2.2/ccache/scripts/help.go +0 -0
  222. data/lib/guile/2.2/ccache/scripts/lint.go +0 -0
  223. data/lib/guile/2.2/ccache/scripts/list.go +0 -0
  224. data/lib/guile/2.2/ccache/scripts/punify.go +0 -0
  225. data/lib/guile/2.2/ccache/scripts/read-rfc822.go +0 -0
  226. data/lib/guile/2.2/ccache/scripts/read-scheme-source.go +0 -0
  227. data/lib/guile/2.2/ccache/scripts/read-text-outline.go +0 -0
  228. data/lib/guile/2.2/ccache/scripts/scan-api.go +0 -0
  229. data/lib/guile/2.2/ccache/scripts/snarf-check-and-output-texi.go +0 -0
  230. data/lib/guile/2.2/ccache/scripts/snarf-guile-m4-docs.go +0 -0
  231. data/lib/guile/2.2/ccache/scripts/summarize-guile-TODO.go +0 -0
  232. data/lib/guile/2.2/ccache/scripts/use2dot.go +0 -0
  233. data/lib/guile/2.2/ccache/srfi/srfi-1.go +0 -0
  234. data/lib/guile/2.2/ccache/srfi/srfi-10.go +0 -0
  235. data/lib/guile/2.2/ccache/srfi/srfi-11.go +0 -0
  236. data/lib/guile/2.2/ccache/srfi/srfi-111.go +0 -0
  237. data/lib/guile/2.2/ccache/srfi/srfi-13.go +0 -0
  238. data/lib/guile/2.2/ccache/srfi/srfi-14.go +0 -0
  239. data/lib/guile/2.2/ccache/srfi/srfi-16.go +0 -0
  240. data/lib/guile/2.2/ccache/srfi/srfi-17.go +0 -0
  241. data/lib/guile/2.2/ccache/srfi/srfi-18.go +0 -0
  242. data/lib/guile/2.2/ccache/srfi/srfi-19.go +0 -0
  243. data/lib/guile/2.2/ccache/srfi/srfi-2.go +0 -0
  244. data/lib/guile/2.2/ccache/srfi/srfi-26.go +0 -0
  245. data/lib/guile/2.2/ccache/srfi/srfi-27.go +0 -0
  246. data/lib/guile/2.2/ccache/srfi/srfi-28.go +0 -0
  247. data/lib/guile/2.2/ccache/srfi/srfi-31.go +0 -0
  248. data/lib/guile/2.2/ccache/srfi/srfi-34.go +0 -0
  249. data/lib/guile/2.2/ccache/srfi/srfi-35.go +0 -0
  250. data/lib/guile/2.2/ccache/srfi/srfi-37.go +0 -0
  251. data/lib/guile/2.2/ccache/srfi/srfi-38.go +0 -0
  252. data/lib/guile/2.2/ccache/srfi/srfi-39.go +0 -0
  253. data/lib/guile/2.2/ccache/srfi/srfi-4/gnu.go +0 -0
  254. data/lib/guile/2.2/ccache/srfi/srfi-4.go +0 -0
  255. data/lib/guile/2.2/ccache/srfi/srfi-41.go +0 -0
  256. data/lib/guile/2.2/ccache/srfi/srfi-42.go +0 -0
  257. data/lib/guile/2.2/ccache/srfi/srfi-43.go +0 -0
  258. data/lib/guile/2.2/ccache/srfi/srfi-45.go +0 -0
  259. data/lib/guile/2.2/ccache/srfi/srfi-6.go +0 -0
  260. data/lib/guile/2.2/ccache/srfi/srfi-60.go +0 -0
  261. data/lib/guile/2.2/ccache/srfi/srfi-64.go +0 -0
  262. data/lib/guile/2.2/ccache/srfi/srfi-67.go +0 -0
  263. data/lib/guile/2.2/ccache/srfi/srfi-69.go +0 -0
  264. data/lib/guile/2.2/ccache/srfi/srfi-71.go +0 -0
  265. data/lib/guile/2.2/ccache/srfi/srfi-8.go +0 -0
  266. data/lib/guile/2.2/ccache/srfi/srfi-88.go +0 -0
  267. data/lib/guile/2.2/ccache/srfi/srfi-9/gnu.go +0 -0
  268. data/lib/guile/2.2/ccache/srfi/srfi-9.go +0 -0
  269. data/lib/guile/2.2/ccache/srfi/srfi-98.go +0 -0
  270. data/lib/guile/2.2/ccache/statprof.go +0 -0
  271. data/lib/guile/2.2/ccache/sxml/apply-templates.go +0 -0
  272. data/lib/guile/2.2/ccache/sxml/fold.go +0 -0
  273. data/lib/guile/2.2/ccache/sxml/match.go +0 -0
  274. data/lib/guile/2.2/ccache/sxml/simple.go +0 -0
  275. data/lib/guile/2.2/ccache/sxml/ssax/input-parse.go +0 -0
  276. data/lib/guile/2.2/ccache/sxml/ssax.go +0 -0
  277. data/lib/guile/2.2/ccache/sxml/transform.go +0 -0
  278. data/lib/guile/2.2/ccache/sxml/xpath.go +0 -0
  279. data/lib/guile/2.2/ccache/system/base/ck.go +0 -0
  280. data/lib/guile/2.2/ccache/system/base/compile.go +0 -0
  281. data/lib/guile/2.2/ccache/system/base/lalr.go +0 -0
  282. data/lib/guile/2.2/ccache/system/base/language.go +0 -0
  283. data/lib/guile/2.2/ccache/system/base/message.go +0 -0
  284. data/lib/guile/2.2/ccache/system/base/pmatch.go +0 -0
  285. data/lib/guile/2.2/ccache/system/base/syntax.go +0 -0
  286. data/lib/guile/2.2/ccache/system/base/target.go +0 -0
  287. data/lib/guile/2.2/ccache/system/base/types.go +0 -0
  288. data/lib/guile/2.2/ccache/system/foreign-object.go +0 -0
  289. data/lib/guile/2.2/ccache/system/foreign.go +0 -0
  290. data/lib/guile/2.2/ccache/system/repl/command.go +0 -0
  291. data/lib/guile/2.2/ccache/system/repl/common.go +0 -0
  292. data/lib/guile/2.2/ccache/system/repl/coop-server.go +0 -0
  293. data/lib/guile/2.2/ccache/system/repl/debug.go +0 -0
  294. data/lib/guile/2.2/ccache/system/repl/error-handling.go +0 -0
  295. data/lib/guile/2.2/ccache/system/repl/repl.go +0 -0
  296. data/lib/guile/2.2/ccache/system/repl/server.go +0 -0
  297. data/lib/guile/2.2/ccache/system/syntax.go +0 -0
  298. data/lib/guile/2.2/ccache/system/vm/assembler.go +0 -0
  299. data/lib/guile/2.2/ccache/system/vm/coverage.go +0 -0
  300. data/lib/guile/2.2/ccache/system/vm/debug.go +0 -0
  301. data/lib/guile/2.2/ccache/system/vm/disassembler.go +0 -0
  302. data/lib/guile/2.2/ccache/system/vm/dwarf.go +0 -0
  303. data/lib/guile/2.2/ccache/system/vm/elf.go +0 -0
  304. data/lib/guile/2.2/ccache/system/vm/frame.go +0 -0
  305. data/lib/guile/2.2/ccache/system/vm/inspect.go +0 -0
  306. data/lib/guile/2.2/ccache/system/vm/linker.go +0 -0
  307. data/lib/guile/2.2/ccache/system/vm/loader.go +0 -0
  308. data/lib/guile/2.2/ccache/system/vm/program.go +0 -0
  309. data/lib/guile/2.2/ccache/system/vm/trace.go +0 -0
  310. data/lib/guile/2.2/ccache/system/vm/trap-state.go +0 -0
  311. data/lib/guile/2.2/ccache/system/vm/traps.go +0 -0
  312. data/lib/guile/2.2/ccache/system/vm/vm.go +0 -0
  313. data/lib/guile/2.2/ccache/system/xref.go +0 -0
  314. data/lib/guile/2.2/ccache/texinfo/docbook.go +0 -0
  315. data/lib/guile/2.2/ccache/texinfo/html.go +0 -0
  316. data/lib/guile/2.2/ccache/texinfo/indexing.go +0 -0
  317. data/lib/guile/2.2/ccache/texinfo/plain-text.go +0 -0
  318. data/lib/guile/2.2/ccache/texinfo/reflection.go +0 -0
  319. data/lib/guile/2.2/ccache/texinfo/serialize.go +0 -0
  320. data/lib/guile/2.2/ccache/texinfo/string-utils.go +0 -0
  321. data/lib/guile/2.2/ccache/texinfo.go +0 -0
  322. data/lib/guile/2.2/ccache/web/client.go +0 -0
  323. data/lib/guile/2.2/ccache/web/http.go +0 -0
  324. data/lib/guile/2.2/ccache/web/request.go +0 -0
  325. data/lib/guile/2.2/ccache/web/response.go +0 -0
  326. data/lib/guile/2.2/ccache/web/server/http.go +0 -0
  327. data/lib/guile/2.2/ccache/web/server.go +0 -0
  328. data/lib/guile/2.2/ccache/web/uri.go +0 -0
  329. data/lib/guile.rb +19 -0
  330. data/lib/lilypond/2.24.1/ccache/lily/accreg.go +0 -0
  331. data/lib/lilypond/2.24.1/ccache/lily/auto-beam.go +0 -0
  332. data/lib/lilypond/2.24.1/ccache/lily/autochange.go +0 -0
  333. data/lib/lilypond/2.24.1/ccache/lily/backend-library.go +0 -0
  334. data/lib/lilypond/2.24.1/ccache/lily/bar-line.go +0 -0
  335. data/lib/lilypond/2.24.1/ccache/lily/breath.go +0 -0
  336. data/lib/lilypond/2.24.1/ccache/lily/c++.go +0 -0
  337. data/lib/lilypond/2.24.1/ccache/lily/chord-entry.go +0 -0
  338. data/lib/lilypond/2.24.1/ccache/lily/chord-ignatzek-names.go +0 -0
  339. data/lib/lilypond/2.24.1/ccache/lily/chord-name.go +0 -0
  340. data/lib/lilypond/2.24.1/ccache/lily/clip-region.go +0 -0
  341. data/lib/lilypond/2.24.1/ccache/lily/color.go +0 -0
  342. data/lib/lilypond/2.24.1/ccache/lily/curried-definitions.go +0 -0
  343. data/lib/lilypond/2.24.1/ccache/lily/define-context-properties.go +0 -0
  344. data/lib/lilypond/2.24.1/ccache/lily/define-event-classes.go +0 -0
  345. data/lib/lilypond/2.24.1/ccache/lily/define-grob-interfaces.go +0 -0
  346. data/lib/lilypond/2.24.1/ccache/lily/define-grob-properties.go +0 -0
  347. data/lib/lilypond/2.24.1/ccache/lily/define-grobs.go +0 -0
  348. data/lib/lilypond/2.24.1/ccache/lily/define-markup-commands.go +0 -0
  349. data/lib/lilypond/2.24.1/ccache/lily/define-music-callbacks.go +0 -0
  350. data/lib/lilypond/2.24.1/ccache/lily/define-music-display-methods.go +0 -0
  351. data/lib/lilypond/2.24.1/ccache/lily/define-music-properties.go +0 -0
  352. data/lib/lilypond/2.24.1/ccache/lily/define-music-types.go +0 -0
  353. data/lib/lilypond/2.24.1/ccache/lily/define-note-names.go +0 -0
  354. data/lib/lilypond/2.24.1/ccache/lily/define-stencil-commands.go +0 -0
  355. data/lib/lilypond/2.24.1/ccache/lily/define-woodwind-diagrams.go +0 -0
  356. data/lib/lilypond/2.24.1/ccache/lily/display-lily.go +0 -0
  357. data/lib/lilypond/2.24.1/ccache/lily/display-woodwind-diagrams.go +0 -0
  358. data/lib/lilypond/2.24.1/ccache/lily/file-cache.go +0 -0
  359. data/lib/lilypond/2.24.1/ccache/lily/flag-styles.go +0 -0
  360. data/lib/lilypond/2.24.1/ccache/lily/font-encodings.go +0 -0
  361. data/lib/lilypond/2.24.1/ccache/lily/font.go +0 -0
  362. data/lib/lilypond/2.24.1/ccache/lily/framework-cairo.go +0 -0
  363. data/lib/lilypond/2.24.1/ccache/lily/framework-ps.go +0 -0
  364. data/lib/lilypond/2.24.1/ccache/lily/framework-svg.go +0 -0
  365. data/lib/lilypond/2.24.1/ccache/lily/fret-diagrams.go +0 -0
  366. data/lib/lilypond/2.24.1/ccache/lily/graphviz.go +0 -0
  367. data/lib/lilypond/2.24.1/ccache/lily/harp-pedals.go +0 -0
  368. data/lib/lilypond/2.24.1/ccache/lily/layout-beam.go +0 -0
  369. data/lib/lilypond/2.24.1/ccache/lily/layout-slur.go +0 -0
  370. data/lib/lilypond/2.24.1/ccache/lily/lily-library.go +0 -0
  371. data/lib/lilypond/2.24.1/ccache/lily/lily.go +0 -0
  372. data/lib/lilypond/2.24.1/ccache/lily/ly-syntax-constructors.go +0 -0
  373. data/lib/lilypond/2.24.1/ccache/lily/markup-macros.go +0 -0
  374. data/lib/lilypond/2.24.1/ccache/lily/markup.go +0 -0
  375. data/lib/lilypond/2.24.1/ccache/lily/midi.go +0 -0
  376. data/lib/lilypond/2.24.1/ccache/lily/modal-transforms.go +0 -0
  377. data/lib/lilypond/2.24.1/ccache/lily/music-functions.go +0 -0
  378. data/lib/lilypond/2.24.1/ccache/lily/output-lib.go +0 -0
  379. data/lib/lilypond/2.24.1/ccache/lily/output-ps.go +0 -0
  380. data/lib/lilypond/2.24.1/ccache/lily/output-svg.go +0 -0
  381. data/lib/lilypond/2.24.1/ccache/lily/page.go +0 -0
  382. data/lib/lilypond/2.24.1/ccache/lily/paper-system.go +0 -0
  383. data/lib/lilypond/2.24.1/ccache/lily/paper.go +0 -0
  384. data/lib/lilypond/2.24.1/ccache/lily/parser-clef.go +0 -0
  385. data/lib/lilypond/2.24.1/ccache/lily/parser-ly-from-scheme.go +0 -0
  386. data/lib/lilypond/2.24.1/ccache/lily/part-combiner.go +0 -0
  387. data/lib/lilypond/2.24.1/ccache/lily/predefined-fretboards.go +0 -0
  388. data/lib/lilypond/2.24.1/ccache/lily/ps-to-png.go +0 -0
  389. data/lib/lilypond/2.24.1/ccache/lily/scheme-engravers.go +0 -0
  390. data/lib/lilypond/2.24.1/ccache/lily/scheme-performers.go +0 -0
  391. data/lib/lilypond/2.24.1/ccache/lily/script.go +0 -0
  392. data/lib/lilypond/2.24.1/ccache/lily/skyline.go +0 -0
  393. data/lib/lilypond/2.24.1/ccache/lily/song-util.go +0 -0
  394. data/lib/lilypond/2.24.1/ccache/lily/song.go +0 -0
  395. data/lib/lilypond/2.24.1/ccache/lily/stencil.go +0 -0
  396. data/lib/lilypond/2.24.1/ccache/lily/tablature.go +0 -0
  397. data/lib/lilypond/2.24.1/ccache/lily/time-signature-settings.go +0 -0
  398. data/lib/lilypond/2.24.1/ccache/lily/time-signature.go +0 -0
  399. data/lib/lilypond/2.24.1/ccache/lily/titling.go +0 -0
  400. data/lib/lilypond/2.24.1/ccache/lily/to-xml.go +0 -0
  401. data/lib/lilypond/2.24.1/ccache/lily/translation-functions.go +0 -0
  402. data/lib/lilypond/builder.rb +161 -0
  403. data/lib/lilypond-ruby.rb +18 -3
  404. data/share/emacs/site-lisp/lilypond-font-lock.el +208 -0
  405. data/share/emacs/site-lisp/lilypond-indent.el +605 -0
  406. data/share/emacs/site-lisp/lilypond-init.el +21 -0
  407. data/share/emacs/site-lisp/lilypond-mode.el +1204 -0
  408. data/share/emacs/site-lisp/lilypond-song.el +556 -0
  409. data/share/emacs/site-lisp/lilypond-what-beat.el +279 -0
  410. data/share/emacs/site-lisp/lilypond-words.el +1428 -0
  411. data/share/guile/2.2/guile-procedures.txt +8860 -0
  412. data/share/guile/2.2/ice-9/and-let-star.scm +73 -0
  413. data/share/guile/2.2/ice-9/arrays.scm +70 -0
  414. data/share/guile/2.2/ice-9/atomic.scm +38 -0
  415. data/share/guile/2.2/ice-9/binary-ports.scm +53 -0
  416. data/share/guile/2.2/ice-9/boot-9.scm +4131 -0
  417. data/share/guile/2.2/ice-9/buffered-input.scm +109 -0
  418. data/share/guile/2.2/ice-9/calling.scm +326 -0
  419. data/share/guile/2.2/ice-9/channel.scm +170 -0
  420. data/share/guile/2.2/ice-9/command-line.scm +477 -0
  421. data/share/guile/2.2/ice-9/common-list.scm +278 -0
  422. data/share/guile/2.2/ice-9/control.scm +110 -0
  423. data/share/guile/2.2/ice-9/curried-definitions.scm +57 -0
  424. data/share/guile/2.2/ice-9/debug.scm +25 -0
  425. data/share/guile/2.2/ice-9/deprecated.scm +93 -0
  426. data/share/guile/2.2/ice-9/documentation.scm +203 -0
  427. data/share/guile/2.2/ice-9/eval-string.scm +90 -0
  428. data/share/guile/2.2/ice-9/eval.scm +723 -0
  429. data/share/guile/2.2/ice-9/expect.scm +171 -0
  430. data/share/guile/2.2/ice-9/fdes-finalizers.scm +25 -0
  431. data/share/guile/2.2/ice-9/format.scm +1626 -0
  432. data/share/guile/2.2/ice-9/ftw.scm +564 -0
  433. data/share/guile/2.2/ice-9/futures.scm +308 -0
  434. data/share/guile/2.2/ice-9/gap-buffer.scm +283 -0
  435. data/share/guile/2.2/ice-9/getopt-long.scm +371 -0
  436. data/share/guile/2.2/ice-9/hash-table.scm +45 -0
  437. data/share/guile/2.2/ice-9/hcons.scm +80 -0
  438. data/share/guile/2.2/ice-9/history.scm +65 -0
  439. data/share/guile/2.2/ice-9/i18n.scm +531 -0
  440. data/share/guile/2.2/ice-9/iconv.scm +95 -0
  441. data/share/guile/2.2/ice-9/lineio.scm +115 -0
  442. data/share/guile/2.2/ice-9/list.scm +36 -0
  443. data/share/guile/2.2/ice-9/local-eval.scm +261 -0
  444. data/share/guile/2.2/ice-9/ls.scm +94 -0
  445. data/share/guile/2.2/ice-9/mapping.scm +118 -0
  446. data/share/guile/2.2/ice-9/match.scm +59 -0
  447. data/share/guile/2.2/ice-9/match.upstream.scm +917 -0
  448. data/share/guile/2.2/ice-9/networking.scm +94 -0
  449. data/share/guile/2.2/ice-9/null.scm +34 -0
  450. data/share/guile/2.2/ice-9/occam-channel.scm +261 -0
  451. data/share/guile/2.2/ice-9/optargs.scm +381 -0
  452. data/share/guile/2.2/ice-9/peg/cache.scm +45 -0
  453. data/share/guile/2.2/ice-9/peg/codegen.scm +359 -0
  454. data/share/guile/2.2/ice-9/peg/simplify-tree.scm +97 -0
  455. data/share/guile/2.2/ice-9/peg/string-peg.scm +273 -0
  456. data/share/guile/2.2/ice-9/peg/using-parsers.scm +116 -0
  457. data/share/guile/2.2/ice-9/peg.scm +42 -0
  458. data/share/guile/2.2/ice-9/poe.scm +116 -0
  459. data/share/guile/2.2/ice-9/poll.scm +172 -0
  460. data/share/guile/2.2/ice-9/popen.scm +178 -0
  461. data/share/guile/2.2/ice-9/ports.scm +566 -0
  462. data/share/guile/2.2/ice-9/posix.scm +75 -0
  463. data/share/guile/2.2/ice-9/pretty-print.scm +483 -0
  464. data/share/guile/2.2/ice-9/psyntax-pp.scm +3542 -0
  465. data/share/guile/2.2/ice-9/psyntax.scm +3326 -0
  466. data/share/guile/2.2/ice-9/q.scm +153 -0
  467. data/share/guile/2.2/ice-9/quasisyntax.scm +136 -0
  468. data/share/guile/2.2/ice-9/r5rs.scm +45 -0
  469. data/share/guile/2.2/ice-9/r6rs-libraries.scm +242 -0
  470. data/share/guile/2.2/ice-9/rdelim.scm +208 -0
  471. data/share/guile/2.2/ice-9/receive.scm +26 -0
  472. data/share/guile/2.2/ice-9/regex.scm +229 -0
  473. data/share/guile/2.2/ice-9/runq.scm +241 -0
  474. data/share/guile/2.2/ice-9/rw.scm +27 -0
  475. data/share/guile/2.2/ice-9/safe-r5rs.scm +145 -0
  476. data/share/guile/2.2/ice-9/safe.scm +34 -0
  477. data/share/guile/2.2/ice-9/sandbox.scm +1399 -0
  478. data/share/guile/2.2/ice-9/save-stack.scm +58 -0
  479. data/share/guile/2.2/ice-9/scm-style-repl.scm +279 -0
  480. data/share/guile/2.2/ice-9/serialize.scm +114 -0
  481. data/share/guile/2.2/ice-9/session.scm +530 -0
  482. data/share/guile/2.2/ice-9/slib.scm +33 -0
  483. data/share/guile/2.2/ice-9/stack-catch.scm +47 -0
  484. data/share/guile/2.2/ice-9/streams.scm +168 -0
  485. data/share/guile/2.2/ice-9/string-fun.scm +280 -0
  486. data/share/guile/2.2/ice-9/suspendable-ports.scm +788 -0
  487. data/share/guile/2.2/ice-9/syncase.scm +37 -0
  488. data/share/guile/2.2/ice-9/textual-ports.scm +70 -0
  489. data/share/guile/2.2/ice-9/threads.scm +392 -0
  490. data/share/guile/2.2/ice-9/time.scm +58 -0
  491. data/share/guile/2.2/ice-9/top-repl.scm +78 -0
  492. data/share/guile/2.2/ice-9/unicode.scm +26 -0
  493. data/share/guile/2.2/ice-9/vlist.scm +595 -0
  494. data/share/guile/2.2/ice-9/weak-vector.scm +31 -0
  495. data/share/guile/2.2/language/brainfuck/compile-scheme.scm +123 -0
  496. data/share/guile/2.2/language/brainfuck/compile-tree-il.scm +184 -0
  497. data/share/guile/2.2/language/brainfuck/parse.scm +95 -0
  498. data/share/guile/2.2/language/brainfuck/spec.scm +43 -0
  499. data/share/guile/2.2/language/bytecode/spec.scm +42 -0
  500. data/share/guile/2.2/language/bytecode.scm +104 -0
  501. data/share/guile/2.2/language/cps/closure-conversion.scm +848 -0
  502. data/share/guile/2.2/language/cps/compile-bytecode.scm +610 -0
  503. data/share/guile/2.2/language/cps/constructors.scm +106 -0
  504. data/share/guile/2.2/language/cps/contification.scm +448 -0
  505. data/share/guile/2.2/language/cps/cse.scm +414 -0
  506. data/share/guile/2.2/language/cps/dce.scm +363 -0
  507. data/share/guile/2.2/language/cps/effects-analysis.scm +597 -0
  508. data/share/guile/2.2/language/cps/elide-values.scm +88 -0
  509. data/share/guile/2.2/language/cps/handle-interrupts.scm +69 -0
  510. data/share/guile/2.2/language/cps/intmap.scm +765 -0
  511. data/share/guile/2.2/language/cps/intset.scm +830 -0
  512. data/share/guile/2.2/language/cps/licm.scm +308 -0
  513. data/share/guile/2.2/language/cps/optimize.scm +135 -0
  514. data/share/guile/2.2/language/cps/peel-loops.scm +287 -0
  515. data/share/guile/2.2/language/cps/primitives.scm +141 -0
  516. data/share/guile/2.2/language/cps/prune-bailouts.scm +86 -0
  517. data/share/guile/2.2/language/cps/prune-top-level-scopes.scm +63 -0
  518. data/share/guile/2.2/language/cps/reify-primitives.scm +179 -0
  519. data/share/guile/2.2/language/cps/renumber.scm +217 -0
  520. data/share/guile/2.2/language/cps/rotate-loops.scm +239 -0
  521. data/share/guile/2.2/language/cps/self-references.scm +79 -0
  522. data/share/guile/2.2/language/cps/simplify.scm +274 -0
  523. data/share/guile/2.2/language/cps/slot-allocation.scm +1058 -0
  524. data/share/guile/2.2/language/cps/spec.scm +51 -0
  525. data/share/guile/2.2/language/cps/specialize-numbers.scm +724 -0
  526. data/share/guile/2.2/language/cps/specialize-primcalls.scm +87 -0
  527. data/share/guile/2.2/language/cps/split-rec.scm +174 -0
  528. data/share/guile/2.2/language/cps/type-checks.scm +72 -0
  529. data/share/guile/2.2/language/cps/type-fold.scm +455 -0
  530. data/share/guile/2.2/language/cps/types.scm +1826 -0
  531. data/share/guile/2.2/language/cps/utils.scm +550 -0
  532. data/share/guile/2.2/language/cps/verify.scm +304 -0
  533. data/share/guile/2.2/language/cps/with-cps.scm +145 -0
  534. data/share/guile/2.2/language/cps.scm +358 -0
  535. data/share/guile/2.2/language/ecmascript/array.scm +121 -0
  536. data/share/guile/2.2/language/ecmascript/base.scm +251 -0
  537. data/share/guile/2.2/language/ecmascript/compile-tree-il.scm +576 -0
  538. data/share/guile/2.2/language/ecmascript/function.scm +78 -0
  539. data/share/guile/2.2/language/ecmascript/impl.scm +169 -0
  540. data/share/guile/2.2/language/ecmascript/parse.scm +352 -0
  541. data/share/guile/2.2/language/ecmascript/spec.scm +37 -0
  542. data/share/guile/2.2/language/ecmascript/tokenize.scm +513 -0
  543. data/share/guile/2.2/language/elisp/bindings.scm +107 -0
  544. data/share/guile/2.2/language/elisp/boot.el +617 -0
  545. data/share/guile/2.2/language/elisp/compile-tree-il.scm +812 -0
  546. data/share/guile/2.2/language/elisp/falias.scm +47 -0
  547. data/share/guile/2.2/language/elisp/lexer.scm +430 -0
  548. data/share/guile/2.2/language/elisp/parser.scm +222 -0
  549. data/share/guile/2.2/language/elisp/runtime/function-slot.scm +63 -0
  550. data/share/guile/2.2/language/elisp/runtime/value-slot.scm +24 -0
  551. data/share/guile/2.2/language/elisp/runtime.scm +153 -0
  552. data/share/guile/2.2/language/elisp/spec.scm +43 -0
  553. data/share/guile/2.2/language/scheme/compile-tree-il.scm +33 -0
  554. data/share/guile/2.2/language/scheme/decompile-tree-il.scm +796 -0
  555. data/share/guile/2.2/language/scheme/spec.scm +63 -0
  556. data/share/guile/2.2/language/tree-il/analyze.scm +1568 -0
  557. data/share/guile/2.2/language/tree-il/canonicalize.scm +82 -0
  558. data/share/guile/2.2/language/tree-il/compile-cps.scm +1149 -0
  559. data/share/guile/2.2/language/tree-il/debug.scm +246 -0
  560. data/share/guile/2.2/language/tree-il/effects.scm +591 -0
  561. data/share/guile/2.2/language/tree-il/fix-letrec.scm +314 -0
  562. data/share/guile/2.2/language/tree-il/optimize.scm +43 -0
  563. data/share/guile/2.2/language/tree-il/peval.scm +1669 -0
  564. data/share/guile/2.2/language/tree-il/primitives.scm +630 -0
  565. data/share/guile/2.2/language/tree-il/spec.scm +46 -0
  566. data/share/guile/2.2/language/tree-il.scm +630 -0
  567. data/share/guile/2.2/language/value/spec.scm +30 -0
  568. data/share/guile/2.2/oop/goops/accessors.scm +72 -0
  569. data/share/guile/2.2/oop/goops/active-slot.scm +63 -0
  570. data/share/guile/2.2/oop/goops/composite-slot.scm +83 -0
  571. data/share/guile/2.2/oop/goops/describe.scm +189 -0
  572. data/share/guile/2.2/oop/goops/internal.scm +30 -0
  573. data/share/guile/2.2/oop/goops/save.scm +874 -0
  574. data/share/guile/2.2/oop/goops/simple.scm +30 -0
  575. data/share/guile/2.2/oop/goops/stklos.scm +74 -0
  576. data/share/guile/2.2/oop/goops.scm +3176 -0
  577. data/share/guile/2.2/rnrs/arithmetic/bitwise.scm +92 -0
  578. data/share/guile/2.2/rnrs/arithmetic/fixnums.scm +291 -0
  579. data/share/guile/2.2/rnrs/arithmetic/flonums.scm +203 -0
  580. data/share/guile/2.2/rnrs/base.scm +291 -0
  581. data/share/guile/2.2/rnrs/bytevectors.scm +83 -0
  582. data/share/guile/2.2/rnrs/conditions.scm +225 -0
  583. data/share/guile/2.2/rnrs/control.scm +22 -0
  584. data/share/guile/2.2/rnrs/enums.scm +152 -0
  585. data/share/guile/2.2/rnrs/eval.scm +39 -0
  586. data/share/guile/2.2/rnrs/exceptions.scm +276 -0
  587. data/share/guile/2.2/rnrs/files.scm +96 -0
  588. data/share/guile/2.2/rnrs/hashtables.scm +190 -0
  589. data/share/guile/2.2/rnrs/io/ports.scm +554 -0
  590. data/share/guile/2.2/rnrs/io/simple.scm +167 -0
  591. data/share/guile/2.2/rnrs/lists.scm +55 -0
  592. data/share/guile/2.2/rnrs/mutable-pairs.scm +23 -0
  593. data/share/guile/2.2/rnrs/mutable-strings.scm +23 -0
  594. data/share/guile/2.2/rnrs/programs.scm +22 -0
  595. data/share/guile/2.2/rnrs/r5rs.scm +34 -0
  596. data/share/guile/2.2/rnrs/records/inspection.scm +81 -0
  597. data/share/guile/2.2/rnrs/records/procedural.scm +289 -0
  598. data/share/guile/2.2/rnrs/records/syntactic.scm +248 -0
  599. data/share/guile/2.2/rnrs/sorting.scm +27 -0
  600. data/share/guile/2.2/rnrs/syntax-case.scm +68 -0
  601. data/share/guile/2.2/rnrs/unicode.scm +104 -0
  602. data/share/guile/2.2/rnrs.scm +289 -0
  603. data/share/guile/2.2/scripts/api-diff.scm +179 -0
  604. data/share/guile/2.2/scripts/autofrisk.scm +218 -0
  605. data/share/guile/2.2/scripts/compile.scm +273 -0
  606. data/share/guile/2.2/scripts/disassemble.scm +38 -0
  607. data/share/guile/2.2/scripts/display-commentary.scm +67 -0
  608. data/share/guile/2.2/scripts/doc-snarf.scm +439 -0
  609. data/share/guile/2.2/scripts/frisk.scm +290 -0
  610. data/share/guile/2.2/scripts/generate-autoload.scm +144 -0
  611. data/share/guile/2.2/scripts/help.scm +188 -0
  612. data/share/guile/2.2/scripts/lint.scm +318 -0
  613. data/share/guile/2.2/scripts/list.scm +91 -0
  614. data/share/guile/2.2/scripts/punify.scm +87 -0
  615. data/share/guile/2.2/scripts/read-rfc822.scm +131 -0
  616. data/share/guile/2.2/scripts/read-scheme-source.scm +282 -0
  617. data/share/guile/2.2/scripts/read-text-outline.scm +253 -0
  618. data/share/guile/2.2/scripts/scan-api.scm +223 -0
  619. data/share/guile/2.2/scripts/snarf-check-and-output-texi.scm +303 -0
  620. data/share/guile/2.2/scripts/snarf-guile-m4-docs.scm +86 -0
  621. data/share/guile/2.2/scripts/summarize-guile-TODO.scm +213 -0
  622. data/share/guile/2.2/scripts/use2dot.scm +110 -0
  623. data/share/guile/2.2/srfi/srfi-1.scm +1061 -0
  624. data/share/guile/2.2/srfi/srfi-10.scm +89 -0
  625. data/share/guile/2.2/srfi/srfi-11.scm +146 -0
  626. data/share/guile/2.2/srfi/srfi-111.scm +37 -0
  627. data/share/guile/2.2/srfi/srfi-13.scm +132 -0
  628. data/share/guile/2.2/srfi/srfi-14.scm +99 -0
  629. data/share/guile/2.2/srfi/srfi-16.scm +51 -0
  630. data/share/guile/2.2/srfi/srfi-17.scm +174 -0
  631. data/share/guile/2.2/srfi/srfi-18.scm +382 -0
  632. data/share/guile/2.2/srfi/srfi-19.scm +1470 -0
  633. data/share/guile/2.2/srfi/srfi-2.scm +31 -0
  634. data/share/guile/2.2/srfi/srfi-26.scm +66 -0
  635. data/share/guile/2.2/srfi/srfi-27.scm +96 -0
  636. data/share/guile/2.2/srfi/srfi-28.scm +34 -0
  637. data/share/guile/2.2/srfi/srfi-31.scm +35 -0
  638. data/share/guile/2.2/srfi/srfi-34.scm +84 -0
  639. data/share/guile/2.2/srfi/srfi-35.scm +351 -0
  640. data/share/guile/2.2/srfi/srfi-37.scm +234 -0
  641. data/share/guile/2.2/srfi/srfi-38.scm +207 -0
  642. data/share/guile/2.2/srfi/srfi-39.scm +55 -0
  643. data/share/guile/2.2/srfi/srfi-4/gnu.scm +80 -0
  644. data/share/guile/2.2/srfi/srfi-4.scm +118 -0
  645. data/share/guile/2.2/srfi/srfi-41.scm +505 -0
  646. data/share/guile/2.2/srfi/srfi-42/ec.scm +1053 -0
  647. data/share/guile/2.2/srfi/srfi-42.scm +66 -0
  648. data/share/guile/2.2/srfi/srfi-43.scm +1077 -0
  649. data/share/guile/2.2/srfi/srfi-45.scm +93 -0
  650. data/share/guile/2.2/srfi/srfi-6.scm +29 -0
  651. data/share/guile/2.2/srfi/srfi-60.scm +73 -0
  652. data/share/guile/2.2/srfi/srfi-64/testing.scm +1040 -0
  653. data/share/guile/2.2/srfi/srfi-64.scm +55 -0
  654. data/share/guile/2.2/srfi/srfi-67/compare.scm +686 -0
  655. data/share/guile/2.2/srfi/srfi-67.scm +88 -0
  656. data/share/guile/2.2/srfi/srfi-69.scm +336 -0
  657. data/share/guile/2.2/srfi/srfi-71.scm +267 -0
  658. data/share/guile/2.2/srfi/srfi-8.scm +31 -0
  659. data/share/guile/2.2/srfi/srfi-88.scm +53 -0
  660. data/share/guile/2.2/srfi/srfi-9/gnu.scm +168 -0
  661. data/share/guile/2.2/srfi/srfi-9.scm +351 -0
  662. data/share/guile/2.2/srfi/srfi-98.scm +44 -0
  663. data/share/guile/2.2/statprof.scm +988 -0
  664. data/share/guile/2.2/sxml/apply-templates.scm +102 -0
  665. data/share/guile/2.2/sxml/fold.scm +250 -0
  666. data/share/guile/2.2/sxml/match.scm +75 -0
  667. data/share/guile/2.2/sxml/simple.scm +408 -0
  668. data/share/guile/2.2/sxml/ssax/input-parse.scm +180 -0
  669. data/share/guile/2.2/sxml/ssax.scm +265 -0
  670. data/share/guile/2.2/sxml/sxml-match.ss +1181 -0
  671. data/share/guile/2.2/sxml/transform.scm +298 -0
  672. data/share/guile/2.2/sxml/upstream/SSAX.scm +3235 -0
  673. data/share/guile/2.2/sxml/upstream/SXML-tree-trans.scm +249 -0
  674. data/share/guile/2.2/sxml/upstream/SXPath-old.scm +1216 -0
  675. data/share/guile/2.2/sxml/upstream/assert.scm +35 -0
  676. data/share/guile/2.2/sxml/upstream/input-parse.scm +326 -0
  677. data/share/guile/2.2/sxml/xpath.scm +493 -0
  678. data/share/guile/2.2/system/base/ck.scm +55 -0
  679. data/share/guile/2.2/system/base/compile.scm +282 -0
  680. data/share/guile/2.2/system/base/lalr.scm +51 -0
  681. data/share/guile/2.2/system/base/lalr.upstream.scm +2096 -0
  682. data/share/guile/2.2/system/base/language.scm +119 -0
  683. data/share/guile/2.2/system/base/message.scm +238 -0
  684. data/share/guile/2.2/system/base/pmatch.scm +68 -0
  685. data/share/guile/2.2/system/base/syntax.scm +299 -0
  686. data/share/guile/2.2/system/base/target.scm +152 -0
  687. data/share/guile/2.2/system/base/types.scm +561 -0
  688. data/share/guile/2.2/system/foreign-object.scm +91 -0
  689. data/share/guile/2.2/system/foreign.scm +200 -0
  690. data/share/guile/2.2/system/repl/command.scm +946 -0
  691. data/share/guile/2.2/system/repl/common.scm +263 -0
  692. data/share/guile/2.2/system/repl/coop-server.scm +200 -0
  693. data/share/guile/2.2/system/repl/debug.scm +210 -0
  694. data/share/guile/2.2/system/repl/describe.scm +347 -0
  695. data/share/guile/2.2/system/repl/error-handling.scm +183 -0
  696. data/share/guile/2.2/system/repl/repl.scm +233 -0
  697. data/share/guile/2.2/system/repl/server.scm +332 -0
  698. data/share/guile/2.2/system/syntax.scm +33 -0
  699. data/share/guile/2.2/system/vm/assembler.scm +2614 -0
  700. data/share/guile/2.2/system/vm/coverage.scm +351 -0
  701. data/share/guile/2.2/system/vm/debug.scm +766 -0
  702. data/share/guile/2.2/system/vm/disassembler.scm +658 -0
  703. data/share/guile/2.2/system/vm/dwarf.scm +1852 -0
  704. data/share/guile/2.2/system/vm/elf.scm +1042 -0
  705. data/share/guile/2.2/system/vm/frame.scm +485 -0
  706. data/share/guile/2.2/system/vm/inspect.scm +188 -0
  707. data/share/guile/2.2/system/vm/linker.scm +732 -0
  708. data/share/guile/2.2/system/vm/loader.scm +27 -0
  709. data/share/guile/2.2/system/vm/program.scm +312 -0
  710. data/share/guile/2.2/system/vm/trace.scm +121 -0
  711. data/share/guile/2.2/system/vm/trap-state.scm +302 -0
  712. data/share/guile/2.2/system/vm/traps.scm +608 -0
  713. data/share/guile/2.2/system/vm/vm.scm +32 -0
  714. data/share/guile/2.2/system/xref.scm +369 -0
  715. data/share/guile/2.2/texinfo/docbook.scm +240 -0
  716. data/share/guile/2.2/texinfo/html.scm +279 -0
  717. data/share/guile/2.2/texinfo/indexing.scm +75 -0
  718. data/share/guile/2.2/texinfo/plain-text.scm +322 -0
  719. data/share/guile/2.2/texinfo/reflection.scm +585 -0
  720. data/share/guile/2.2/texinfo/serialize.scm +300 -0
  721. data/share/guile/2.2/texinfo/string-utils.scm +410 -0
  722. data/share/guile/2.2/texinfo.scm +1263 -0
  723. data/share/guile/2.2/web/client.scm +513 -0
  724. data/share/guile/2.2/web/http.scm +2043 -0
  725. data/share/guile/2.2/web/request.scm +326 -0
  726. data/share/guile/2.2/web/response.scm +379 -0
  727. data/share/guile/2.2/web/server/http.scm +183 -0
  728. data/share/guile/2.2/web/server.scm +397 -0
  729. data/share/guile/2.2/web/uri.scm +552 -0
  730. data/share/lilypond/2.24.1/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-8 +0 -0
  731. data/share/lilypond/2.24.1/fontconfig/188ac73a183f12857f63bb60a4a6d603-le64.cache-8 +0 -0
  732. data/share/lilypond/2.24.1/fontconfig/32b6488e5b8292a2e95c79d947e009e8-le64.cache-8 +0 -0
  733. data/share/lilypond/2.24.1/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8 +0 -0
  734. data/share/lilypond/2.24.1/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-8 +0 -0
  735. data/share/lilypond/2.24.1/fontconfig/4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8 +0 -0
  736. data/share/lilypond/2.24.1/fontconfig/57e423e26b20ab21d0f2f29c145174c3-le64.cache-8 +0 -0
  737. data/share/lilypond/2.24.1/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8 +0 -0
  738. data/share/lilypond/2.24.1/fontconfig/826f6b6ef79022e2eac8af26bf4b62f2-le64.cache-8 +0 -0
  739. data/share/lilypond/2.24.1/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-8 +0 -0
  740. data/share/lilypond/2.24.1/fontconfig/95530828ff6c81d309f8258d8d02a23e-le64.cache-8 +0 -0
  741. data/share/lilypond/2.24.1/fontconfig/CACHEDIR.TAG +4 -0
  742. data/share/lilypond/2.24.1/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-8 +0 -0
  743. data/share/lilypond/2.24.1/fontconfig/c855463f699352c367813e37f3f70ea7-le64.cache-8 +0 -0
  744. data/share/lilypond/2.24.1/fontconfig/d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-8 +0 -0
  745. data/share/lilypond/2.24.1/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-8 +0 -0
  746. data/share/lilypond/2.24.1/fontconfig/d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-8 +0 -0
  747. data/share/lilypond/2.24.1/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-8 +0 -0
  748. data/share/lilypond/2.24.1/fontconfig/e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-8 +0 -0
  749. data/share/lilypond/2.24.1/fontconfig/f1f2465696798768e9653f19e17ccdc8-le64.cache-8 +0 -0
  750. data/share/lilypond/2.24.1/fonts/00-lilypond-fonts.conf +99 -0
  751. data/share/lilypond/2.24.1/fonts/99-lilypond-fonts.conf +28 -0
  752. data/share/lilypond/2.24.1/fonts/otf/C059-BdIta.otf +0 -0
  753. data/share/lilypond/2.24.1/fonts/otf/C059-Bold.otf +0 -0
  754. data/share/lilypond/2.24.1/fonts/otf/C059-Italic.otf +0 -0
  755. data/share/lilypond/2.24.1/fonts/otf/C059-Roman.otf +0 -0
  756. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Bold.otf +0 -0
  757. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-BoldItalic.otf +0 -0
  758. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Italic.otf +0 -0
  759. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Regular.otf +0 -0
  760. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Bold.otf +0 -0
  761. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-BoldItalic.otf +0 -0
  762. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Italic.otf +0 -0
  763. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Regular.otf +0 -0
  764. data/share/lilypond/2.24.1/fonts/otf/emmentaler-11.otf +0 -0
  765. data/share/lilypond/2.24.1/fonts/otf/emmentaler-13.otf +0 -0
  766. data/share/lilypond/2.24.1/fonts/otf/emmentaler-14.otf +0 -0
  767. data/share/lilypond/2.24.1/fonts/otf/emmentaler-16.otf +0 -0
  768. data/share/lilypond/2.24.1/fonts/otf/emmentaler-18.otf +0 -0
  769. data/share/lilypond/2.24.1/fonts/otf/emmentaler-20.otf +0 -0
  770. data/share/lilypond/2.24.1/fonts/otf/emmentaler-23.otf +0 -0
  771. data/share/lilypond/2.24.1/fonts/otf/emmentaler-26.otf +0 -0
  772. data/share/lilypond/2.24.1/fonts/otf/emmentaler-brace.otf +0 -0
  773. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bold.otf +0 -0
  774. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bolditalic.otf +0 -0
  775. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-italic.otf +0 -0
  776. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-regular.otf +0 -0
  777. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bold.otf +0 -0
  778. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bolditalic.otf +0 -0
  779. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-italic.otf +0 -0
  780. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-regular.otf +0 -0
  781. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bold.otf +0 -0
  782. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bolditalic.otf +0 -0
  783. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-italic.otf +0 -0
  784. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-regular.otf +0 -0
  785. data/share/lilypond/2.24.1/fonts/source/common-modules-and-initialization.mf +26 -0
  786. data/share/lilypond/2.24.1/fonts/source/debugging-settings.mf +14 -0
  787. data/share/lilypond/2.24.1/fonts/source/declare-autometric-parameters.mf +9 -0
  788. data/share/lilypond/2.24.1/fonts/source/feta-accidentals.mf +58 -0
  789. data/share/lilypond/2.24.1/fonts/source/feta-accordion.mf +575 -0
  790. data/share/lilypond/2.24.1/fonts/source/feta-alphabet-generic.mf +16 -0
  791. data/share/lilypond/2.24.1/fonts/source/feta-alphabet11.mf +6 -0
  792. data/share/lilypond/2.24.1/fonts/source/feta-alphabet13.mf +6 -0
  793. data/share/lilypond/2.24.1/fonts/source/feta-alphabet14.mf +6 -0
  794. data/share/lilypond/2.24.1/fonts/source/feta-alphabet16.mf +6 -0
  795. data/share/lilypond/2.24.1/fonts/source/feta-alphabet18.mf +6 -0
  796. data/share/lilypond/2.24.1/fonts/source/feta-alphabet20.mf +6 -0
  797. data/share/lilypond/2.24.1/fonts/source/feta-alphabet23.mf +6 -0
  798. data/share/lilypond/2.24.1/fonts/source/feta-alphabet26.mf +6 -0
  799. data/share/lilypond/2.24.1/fonts/source/feta-arrow.mf +114 -0
  800. data/share/lilypond/2.24.1/fonts/source/feta-arrowheads.mf +171 -0
  801. data/share/lilypond/2.24.1/fonts/source/feta-autometric.mf +303 -0
  802. data/share/lilypond/2.24.1/fonts/source/feta-braces-a.mf +6 -0
  803. data/share/lilypond/2.24.1/fonts/source/feta-braces-b.mf +6 -0
  804. data/share/lilypond/2.24.1/fonts/source/feta-braces-c.mf +6 -0
  805. data/share/lilypond/2.24.1/fonts/source/feta-braces-d.mf +6 -0
  806. data/share/lilypond/2.24.1/fonts/source/feta-braces-e.mf +6 -0
  807. data/share/lilypond/2.24.1/fonts/source/feta-braces-f.mf +6 -0
  808. data/share/lilypond/2.24.1/fonts/source/feta-braces-g.mf +6 -0
  809. data/share/lilypond/2.24.1/fonts/source/feta-braces-generic.mf +47 -0
  810. data/share/lilypond/2.24.1/fonts/source/feta-braces-h.mf +6 -0
  811. data/share/lilypond/2.24.1/fonts/source/feta-braces-i.mf +6 -0
  812. data/share/lilypond/2.24.1/fonts/source/feta-braces.mf +125 -0
  813. data/share/lilypond/2.24.1/fonts/source/feta-brackettips.mf +100 -0
  814. data/share/lilypond/2.24.1/fonts/source/feta-clefs.mf +963 -0
  815. data/share/lilypond/2.24.1/fonts/source/feta-dots.mf +37 -0
  816. data/share/lilypond/2.24.1/fonts/source/feta-dynamics.mf +891 -0
  817. data/share/lilypond/2.24.1/fonts/source/feta-flags-generic.mf +17 -0
  818. data/share/lilypond/2.24.1/fonts/source/feta-flags.mf +926 -0
  819. data/share/lilypond/2.24.1/fonts/source/feta-flags11.mf +6 -0
  820. data/share/lilypond/2.24.1/fonts/source/feta-flags13.mf +6 -0
  821. data/share/lilypond/2.24.1/fonts/source/feta-flags14.mf +6 -0
  822. data/share/lilypond/2.24.1/fonts/source/feta-flags16.mf +6 -0
  823. data/share/lilypond/2.24.1/fonts/source/feta-flags18.mf +6 -0
  824. data/share/lilypond/2.24.1/fonts/source/feta-flags20.mf +6 -0
  825. data/share/lilypond/2.24.1/fonts/source/feta-flags23.mf +6 -0
  826. data/share/lilypond/2.24.1/fonts/source/feta-flags26.mf +6 -0
  827. data/share/lilypond/2.24.1/fonts/source/feta-flats.mf +668 -0
  828. data/share/lilypond/2.24.1/fonts/source/feta-macros.mf +506 -0
  829. data/share/lilypond/2.24.1/fonts/source/feta-naturals.mf +223 -0
  830. data/share/lilypond/2.24.1/fonts/source/feta-noteheads-generic.mf +17 -0
  831. data/share/lilypond/2.24.1/fonts/source/feta-noteheads.mf +2642 -0
  832. data/share/lilypond/2.24.1/fonts/source/feta-noteheads11.mf +6 -0
  833. data/share/lilypond/2.24.1/fonts/source/feta-noteheads13.mf +6 -0
  834. data/share/lilypond/2.24.1/fonts/source/feta-noteheads14.mf +6 -0
  835. data/share/lilypond/2.24.1/fonts/source/feta-noteheads16.mf +6 -0
  836. data/share/lilypond/2.24.1/fonts/source/feta-noteheads18.mf +6 -0
  837. data/share/lilypond/2.24.1/fonts/source/feta-noteheads20.mf +6 -0
  838. data/share/lilypond/2.24.1/fonts/source/feta-noteheads23.mf +6 -0
  839. data/share/lilypond/2.24.1/fonts/source/feta-noteheads26.mf +6 -0
  840. data/share/lilypond/2.24.1/fonts/source/feta-numbers.mf +1677 -0
  841. data/share/lilypond/2.24.1/fonts/source/feta-other-generic.mf +27 -0
  842. data/share/lilypond/2.24.1/fonts/source/feta-params.mf +323 -0
  843. data/share/lilypond/2.24.1/fonts/source/feta-parenthesis.mf +63 -0
  844. data/share/lilypond/2.24.1/fonts/source/feta-pedals.mf +355 -0
  845. data/share/lilypond/2.24.1/fonts/source/feta-rests.mf +890 -0
  846. data/share/lilypond/2.24.1/fonts/source/feta-scripts.mf +2206 -0
  847. data/share/lilypond/2.24.1/fonts/source/feta-sharps.mf +524 -0
  848. data/share/lilypond/2.24.1/fonts/source/feta-sori-koron.mf +325 -0
  849. data/share/lilypond/2.24.1/fonts/source/feta-ties.mf +72 -0
  850. data/share/lilypond/2.24.1/fonts/source/feta-timesignatures.mf +119 -0
  851. data/share/lilypond/2.24.1/fonts/source/feta-trills.mf +321 -0
  852. data/share/lilypond/2.24.1/fonts/source/feta11.mf +6 -0
  853. data/share/lilypond/2.24.1/fonts/source/feta13.mf +6 -0
  854. data/share/lilypond/2.24.1/fonts/source/feta14.mf +6 -0
  855. data/share/lilypond/2.24.1/fonts/source/feta16.mf +6 -0
  856. data/share/lilypond/2.24.1/fonts/source/feta18.mf +6 -0
  857. data/share/lilypond/2.24.1/fonts/source/feta20.mf +7 -0
  858. data/share/lilypond/2.24.1/fonts/source/feta23.mf +6 -0
  859. data/share/lilypond/2.24.1/fonts/source/feta26.mf +6 -0
  860. data/share/lilypond/2.24.1/fonts/source/parmesan-accidentals.mf +483 -0
  861. data/share/lilypond/2.24.1/fonts/source/parmesan-clefs.mf +1636 -0
  862. data/share/lilypond/2.24.1/fonts/source/parmesan-custodes.mf +503 -0
  863. data/share/lilypond/2.24.1/fonts/source/parmesan-dots.mf +62 -0
  864. data/share/lilypond/2.24.1/fonts/source/parmesan-flags.mf +319 -0
  865. data/share/lilypond/2.24.1/fonts/source/parmesan-macros.mf +225 -0
  866. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads-generic.mf +16 -0
  867. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads.mf +2191 -0
  868. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads11.mf +6 -0
  869. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads13.mf +6 -0
  870. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads14.mf +6 -0
  871. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads16.mf +6 -0
  872. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads18.mf +6 -0
  873. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads20.mf +6 -0
  874. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads23.mf +6 -0
  875. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads26.mf +6 -0
  876. data/share/lilypond/2.24.1/fonts/source/parmesan-other-generic.mf +24 -0
  877. data/share/lilypond/2.24.1/fonts/source/parmesan-rests.mf +428 -0
  878. data/share/lilypond/2.24.1/fonts/source/parmesan-scripts.mf +284 -0
  879. data/share/lilypond/2.24.1/fonts/source/parmesan-timesignatures.mf +402 -0
  880. data/share/lilypond/2.24.1/fonts/source/parmesan11.mf +6 -0
  881. data/share/lilypond/2.24.1/fonts/source/parmesan13.mf +6 -0
  882. data/share/lilypond/2.24.1/fonts/source/parmesan14.mf +6 -0
  883. data/share/lilypond/2.24.1/fonts/source/parmesan16.mf +6 -0
  884. data/share/lilypond/2.24.1/fonts/source/parmesan18.mf +6 -0
  885. data/share/lilypond/2.24.1/fonts/source/parmesan20.mf +6 -0
  886. data/share/lilypond/2.24.1/fonts/source/parmesan23.mf +6 -0
  887. data/share/lilypond/2.24.1/fonts/source/parmesan26.mf +6 -0
  888. data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.svg +2525 -0
  889. data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.woff +0 -0
  890. data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.svg +2530 -0
  891. data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.woff +0 -0
  892. data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.svg +2526 -0
  893. data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.woff +0 -0
  894. data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.svg +2523 -0
  895. data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.woff +0 -0
  896. data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.svg +2519 -0
  897. data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.woff +0 -0
  898. data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.svg +2512 -0
  899. data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.woff +0 -0
  900. data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.svg +2506 -0
  901. data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.woff +0 -0
  902. data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.svg +2510 -0
  903. data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.woff +0 -0
  904. data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.svg +1757 -0
  905. data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.woff +0 -0
  906. data/share/lilypond/2.24.1/ly/Welcome_to_LilyPond.ly +45 -0
  907. data/share/lilypond/2.24.1/ly/arabic.ly +185 -0
  908. data/share/lilypond/2.24.1/ly/articulate.ly +1013 -0
  909. data/share/lilypond/2.24.1/ly/bagpipe.ly +368 -0
  910. data/share/lilypond/2.24.1/ly/base-tkit.ly +135 -0
  911. data/share/lilypond/2.24.1/ly/catalan.ly +23 -0
  912. data/share/lilypond/2.24.1/ly/chord-modifiers-init.ly +63 -0
  913. data/share/lilypond/2.24.1/ly/chord-repetition-init.ly +60 -0
  914. data/share/lilypond/2.24.1/ly/context-mods-init.ly +119 -0
  915. data/share/lilypond/2.24.1/ly/declarations-init.ly +167 -0
  916. data/share/lilypond/2.24.1/ly/deutsch.ly +23 -0
  917. data/share/lilypond/2.24.1/ly/drumpitch-init.ly +366 -0
  918. data/share/lilypond/2.24.1/ly/dynamic-scripts-init.ly +54 -0
  919. data/share/lilypond/2.24.1/ly/english.ly +23 -0
  920. data/share/lilypond/2.24.1/ly/engraver-init.ly +1619 -0
  921. data/share/lilypond/2.24.1/ly/espanol.ly +23 -0
  922. data/share/lilypond/2.24.1/ly/event-listener.ly +241 -0
  923. data/share/lilypond/2.24.1/ly/festival.ly +38 -0
  924. data/share/lilypond/2.24.1/ly/generate-documentation.ly +7 -0
  925. data/share/lilypond/2.24.1/ly/grace-init.ly +56 -0
  926. data/share/lilypond/2.24.1/ly/graphviz-init.ly +174 -0
  927. data/share/lilypond/2.24.1/ly/gregorian.ly +268 -0
  928. data/share/lilypond/2.24.1/ly/guile-debugger.ly +55 -0
  929. data/share/lilypond/2.24.1/ly/hel-arabic.ly +307 -0
  930. data/share/lilypond/2.24.1/ly/init.ly +96 -0
  931. data/share/lilypond/2.24.1/ly/italiano.ly +23 -0
  932. data/share/lilypond/2.24.1/ly/lilypond-book-preamble.ly +47 -0
  933. data/share/lilypond/2.24.1/ly/lyrics-tkit.ly +68 -0
  934. data/share/lilypond/2.24.1/ly/makam.ly +166 -0
  935. data/share/lilypond/2.24.1/ly/midi-init.ly +59 -0
  936. data/share/lilypond/2.24.1/ly/music-functions-init.ly +2254 -0
  937. data/share/lilypond/2.24.1/ly/nederlands.ly +23 -0
  938. data/share/lilypond/2.24.1/ly/norsk.ly +23 -0
  939. data/share/lilypond/2.24.1/ly/paper-defaults-init.ly +188 -0
  940. data/share/lilypond/2.24.1/ly/performer-init.ly +398 -0
  941. data/share/lilypond/2.24.1/ly/persian.ly +335 -0
  942. data/share/lilypond/2.24.1/ly/piano-tkit.ly +61 -0
  943. data/share/lilypond/2.24.1/ly/portugues.ly +23 -0
  944. data/share/lilypond/2.24.1/ly/predefined-fretboards-init.ly +78 -0
  945. data/share/lilypond/2.24.1/ly/predefined-guitar-fretboards.ly +506 -0
  946. data/share/lilypond/2.24.1/ly/predefined-guitar-ninth-fretboards.ly +75 -0
  947. data/share/lilypond/2.24.1/ly/predefined-mandolin-fretboards.ly +876 -0
  948. data/share/lilypond/2.24.1/ly/predefined-ukulele-fretboards.ly +1285 -0
  949. data/share/lilypond/2.24.1/ly/property-init.ly +858 -0
  950. data/share/lilypond/2.24.1/ly/satb.ly +214 -0
  951. data/share/lilypond/2.24.1/ly/scale-definitions-init.ly +117 -0
  952. data/share/lilypond/2.24.1/ly/scheme-sandbox.ly +39 -0
  953. data/share/lilypond/2.24.1/ly/script-init.ly +94 -0
  954. data/share/lilypond/2.24.1/ly/spanners-init.ly +146 -0
  955. data/share/lilypond/2.24.1/ly/ssaattbb.ly +335 -0
  956. data/share/lilypond/2.24.1/ly/staff-tkit.ly +182 -0
  957. data/share/lilypond/2.24.1/ly/string-tunings-init.ly +94 -0
  958. data/share/lilypond/2.24.1/ly/suomi.ly +23 -0
  959. data/share/lilypond/2.24.1/ly/svenska.ly +23 -0
  960. data/share/lilypond/2.24.1/ly/swing.ly +362 -0
  961. data/share/lilypond/2.24.1/ly/text-replacements.ly +150 -0
  962. data/share/lilypond/2.24.1/ly/titling-init.ly +150 -0
  963. data/share/lilypond/2.24.1/ly/toc-init.ly +182 -0
  964. data/share/lilypond/2.24.1/ly/turkish-makam.ly +609 -0
  965. data/share/lilypond/2.24.1/ly/vlaams.ly +23 -0
  966. data/share/lilypond/2.24.1/ly/vocal-tkit.ly +103 -0
  967. data/share/lilypond/2.24.1/ly/voice-tkit.ly +34 -0
  968. data/share/lilypond/2.24.1/ps/encodingdefs.ps +2611 -0
  969. data/share/lilypond/2.24.1/ps/lilyponddefs.ps +49 -0
  970. data/share/lilypond/2.24.1/ps/music-drawing-routines.ps +329 -0
  971. data/share/lilypond/2.24.1/python/__pycache__/book_base.cpython-310.pyc +0 -0
  972. data/share/lilypond/2.24.1/python/__pycache__/book_docbook.cpython-310.pyc +0 -0
  973. data/share/lilypond/2.24.1/python/__pycache__/book_html.cpython-310.pyc +0 -0
  974. data/share/lilypond/2.24.1/python/__pycache__/book_latex.cpython-310.pyc +0 -0
  975. data/share/lilypond/2.24.1/python/__pycache__/book_snippets.cpython-310.pyc +0 -0
  976. data/share/lilypond/2.24.1/python/__pycache__/book_texinfo.cpython-310.pyc +0 -0
  977. data/share/lilypond/2.24.1/python/__pycache__/convertrules.cpython-310.pyc +0 -0
  978. data/share/lilypond/2.24.1/python/__pycache__/langdefs.cpython-310.pyc +0 -0
  979. data/share/lilypond/2.24.1/python/__pycache__/lilylib.cpython-310.pyc +0 -0
  980. data/share/lilypond/2.24.1/python/__pycache__/midi.cpython-310.pyc +0 -0
  981. data/share/lilypond/2.24.1/python/__pycache__/musicexp.cpython-310.pyc +0 -0
  982. data/share/lilypond/2.24.1/python/__pycache__/musicxml.cpython-310.pyc +0 -0
  983. data/share/lilypond/2.24.1/python/__pycache__/musicxml2ly_conversion.cpython-310.pyc +0 -0
  984. data/share/lilypond/2.24.1/python/__pycache__/utilities.cpython-310.pyc +0 -0
  985. data/share/lilypond/2.24.1/python/book_base.py +331 -0
  986. data/share/lilypond/2.24.1/python/book_docbook.py +154 -0
  987. data/share/lilypond/2.24.1/python/book_html.py +178 -0
  988. data/share/lilypond/2.24.1/python/book_latex.py +373 -0
  989. data/share/lilypond/2.24.1/python/book_snippets.py +1052 -0
  990. data/share/lilypond/2.24.1/python/book_texinfo.py +437 -0
  991. data/share/lilypond/2.24.1/python/convertrules.py +4764 -0
  992. data/share/lilypond/2.24.1/python/langdefs.py +131 -0
  993. data/share/lilypond/2.24.1/python/lilylib.py +141 -0
  994. data/share/lilypond/2.24.1/python/midi.py +212 -0
  995. data/share/lilypond/2.24.1/python/musicexp.py +2781 -0
  996. data/share/lilypond/2.24.1/python/musicxml.py +1905 -0
  997. data/share/lilypond/2.24.1/python/musicxml2ly_conversion.py +80 -0
  998. data/share/lilypond/2.24.1/python/utilities.py +280 -0
  999. data/share/lilypond/2.24.1/scm/lily/accreg.scm +579 -0
  1000. data/share/lilypond/2.24.1/scm/lily/auto-beam.scm +163 -0
  1001. data/share/lilypond/2.24.1/scm/lily/autochange.scm +100 -0
  1002. data/share/lilypond/2.24.1/scm/lily/backend-library.scm +593 -0
  1003. data/share/lilypond/2.24.1/scm/lily/bar-line.scm +1281 -0
  1004. data/share/lilypond/2.24.1/scm/lily/breath.scm +74 -0
  1005. data/share/lilypond/2.24.1/scm/lily/c++.scm +174 -0
  1006. data/share/lilypond/2.24.1/scm/lily/chord-entry.scm +278 -0
  1007. data/share/lilypond/2.24.1/scm/lily/chord-ignatzek-names.scm +304 -0
  1008. data/share/lilypond/2.24.1/scm/lily/chord-name.scm +217 -0
  1009. data/share/lilypond/2.24.1/scm/lily/clip-region.scm +87 -0
  1010. data/share/lilypond/2.24.1/scm/lily/color.scm +757 -0
  1011. data/share/lilypond/2.24.1/scm/lily/curried-definitions.scm +68 -0
  1012. data/share/lilypond/2.24.1/scm/lily/define-context-properties.scm +939 -0
  1013. data/share/lilypond/2.24.1/scm/lily/define-event-classes.scm +142 -0
  1014. data/share/lilypond/2.24.1/scm/lily/define-grob-interfaces.scm +640 -0
  1015. data/share/lilypond/2.24.1/scm/lily/define-grob-properties.scm +1647 -0
  1016. data/share/lilypond/2.24.1/scm/lily/define-grobs.scm +4027 -0
  1017. data/share/lilypond/2.24.1/scm/lily/define-markup-commands.scm +5737 -0
  1018. data/share/lilypond/2.24.1/scm/lily/define-music-callbacks.scm +257 -0
  1019. data/share/lilypond/2.24.1/scm/lily/define-music-display-methods.scm +1350 -0
  1020. data/share/lilypond/2.24.1/scm/lily/define-music-properties.scm +242 -0
  1021. data/share/lilypond/2.24.1/scm/lily/define-music-types.scm +983 -0
  1022. data/share/lilypond/2.24.1/scm/lily/define-note-names.scm +1421 -0
  1023. data/share/lilypond/2.24.1/scm/lily/define-stencil-commands.scm +71 -0
  1024. data/share/lilypond/2.24.1/scm/lily/define-woodwind-diagrams.scm +1215 -0
  1025. data/share/lilypond/2.24.1/scm/lily/display-lily.scm +315 -0
  1026. data/share/lilypond/2.24.1/scm/lily/display-woodwind-diagrams.scm +1985 -0
  1027. data/share/lilypond/2.24.1/scm/lily/document-backend.scm +307 -0
  1028. data/share/lilypond/2.24.1/scm/lily/document-context-mods.scm +98 -0
  1029. data/share/lilypond/2.24.1/scm/lily/document-functions.scm +169 -0
  1030. data/share/lilypond/2.24.1/scm/lily/document-identifiers.scm +76 -0
  1031. data/share/lilypond/2.24.1/scm/lily/document-markup.scm +158 -0
  1032. data/share/lilypond/2.24.1/scm/lily/document-music.scm +146 -0
  1033. data/share/lilypond/2.24.1/scm/lily/document-outside-staff-priorities.scm +40 -0
  1034. data/share/lilypond/2.24.1/scm/lily/document-paper-sizes.scm +71 -0
  1035. data/share/lilypond/2.24.1/scm/lily/document-translation.scm +318 -0
  1036. data/share/lilypond/2.24.1/scm/lily/document-type-predicates.scm +85 -0
  1037. data/share/lilypond/2.24.1/scm/lily/documentation-generate.scm +259 -0
  1038. data/share/lilypond/2.24.1/scm/lily/documentation-lib.scm +207 -0
  1039. data/share/lilypond/2.24.1/scm/lily/file-cache.scm +28 -0
  1040. data/share/lilypond/2.24.1/scm/lily/flag-styles.scm +249 -0
  1041. data/share/lilypond/2.24.1/scm/lily/font-encodings.scm +1242 -0
  1042. data/share/lilypond/2.24.1/scm/lily/font.scm +303 -0
  1043. data/share/lilypond/2.24.1/scm/lily/framework-cairo.scm +26 -0
  1044. data/share/lilypond/2.24.1/scm/lily/framework-ps.scm +896 -0
  1045. data/share/lilypond/2.24.1/scm/lily/framework-svg.scm +172 -0
  1046. data/share/lilypond/2.24.1/scm/lily/fret-diagrams.scm +1261 -0
  1047. data/share/lilypond/2.24.1/scm/lily/graphviz.scm +78 -0
  1048. data/share/lilypond/2.24.1/scm/lily/guile-debugger.scm +90 -0
  1049. data/share/lilypond/2.24.1/scm/lily/harp-pedals.scm +172 -0
  1050. data/share/lilypond/2.24.1/scm/lily/hyphenate-internal-words.scm +51 -0
  1051. data/share/lilypond/2.24.1/scm/lily/layout-beam.scm +73 -0
  1052. data/share/lilypond/2.24.1/scm/lily/layout-slur.scm +45 -0
  1053. data/share/lilypond/2.24.1/scm/lily/lily-library.scm +1446 -0
  1054. data/share/lilypond/2.24.1/scm/lily/lily-sort.scm +116 -0
  1055. data/share/lilypond/2.24.1/scm/lily/lily.scm +929 -0
  1056. data/share/lilypond/2.24.1/scm/lily/ly-syntax-constructors.scm +374 -0
  1057. data/share/lilypond/2.24.1/scm/lily/markup-macros.scm +493 -0
  1058. data/share/lilypond/2.24.1/scm/lily/markup.scm +126 -0
  1059. data/share/lilypond/2.24.1/scm/lily/midi.scm +258 -0
  1060. data/share/lilypond/2.24.1/scm/lily/modal-transforms.scm +337 -0
  1061. data/share/lilypond/2.24.1/scm/lily/music-functions.scm +2878 -0
  1062. data/share/lilypond/2.24.1/scm/lily/output-lib.scm +3377 -0
  1063. data/share/lilypond/2.24.1/scm/lily/output-ps.scm +335 -0
  1064. data/share/lilypond/2.24.1/scm/lily/output-svg.scm +684 -0
  1065. data/share/lilypond/2.24.1/scm/lily/page.scm +321 -0
  1066. data/share/lilypond/2.24.1/scm/lily/paper-system.scm +271 -0
  1067. data/share/lilypond/2.24.1/scm/lily/paper.scm +376 -0
  1068. data/share/lilypond/2.24.1/scm/lily/parser-clef.scm +205 -0
  1069. data/share/lilypond/2.24.1/scm/lily/parser-ly-from-scheme.scm +170 -0
  1070. data/share/lilypond/2.24.1/scm/lily/part-combiner.scm +998 -0
  1071. data/share/lilypond/2.24.1/scm/lily/predefined-fretboards.scm +54 -0
  1072. data/share/lilypond/2.24.1/scm/lily/ps-to-png.scm +182 -0
  1073. data/share/lilypond/2.24.1/scm/lily/scheme-engravers.scm +1813 -0
  1074. data/share/lilypond/2.24.1/scm/lily/scheme-performers.scm +126 -0
  1075. data/share/lilypond/2.24.1/scm/lily/script.scm +416 -0
  1076. data/share/lilypond/2.24.1/scm/lily/skyline.scm +25 -0
  1077. data/share/lilypond/2.24.1/scm/lily/song-util.scm +191 -0
  1078. data/share/lilypond/2.24.1/scm/lily/song.scm +853 -0
  1079. data/share/lilypond/2.24.1/scm/lily/stencil.scm +998 -0
  1080. data/share/lilypond/2.24.1/scm/lily/tablature.scm +392 -0
  1081. data/share/lilypond/2.24.1/scm/lily/time-signature-settings.scm +473 -0
  1082. data/share/lilypond/2.24.1/scm/lily/time-signature.scm +35 -0
  1083. data/share/lilypond/2.24.1/scm/lily/titling.scm +99 -0
  1084. data/share/lilypond/2.24.1/scm/lily/to-xml.scm +254 -0
  1085. data/share/lilypond/2.24.1/scm/lily/translation-functions.scm +1169 -0
  1086. data/share/lilypond/2.24.1/vim/compiler/lilypond.vim +36 -0
  1087. data/share/lilypond/2.24.1/vim/ftdetect/lilypond.vim +4 -0
  1088. data/share/lilypond/2.24.1/vim/ftplugin/lilypond.vim +91 -0
  1089. data/share/lilypond/2.24.1/vim/indent/lilypond.vim +79 -0
  1090. data/share/lilypond/2.24.1/vim/syntax/lilypond-words +1408 -0
  1091. data/share/lilypond/2.24.1/vim/syntax/lilypond-words.vim +3 -0
  1092. data/share/lilypond/2.24.1/vim/syntax/lilypond.vim +104 -0
  1093. data/share/locale/ca/LC_MESSAGES/lilypond.mo +0 -0
  1094. data/share/locale/cs/LC_MESSAGES/lilypond.mo +0 -0
  1095. data/share/locale/da/LC_MESSAGES/lilypond.mo +0 -0
  1096. data/share/locale/de/LC_MESSAGES/lilypond.mo +0 -0
  1097. data/share/locale/el/LC_MESSAGES/lilypond.mo +0 -0
  1098. data/share/locale/eo/LC_MESSAGES/lilypond.mo +0 -0
  1099. data/share/locale/es/LC_MESSAGES/lilypond.mo +0 -0
  1100. data/share/locale/fi/LC_MESSAGES/lilypond.mo +0 -0
  1101. data/share/locale/fr/LC_MESSAGES/lilypond.mo +0 -0
  1102. data/share/locale/it/LC_MESSAGES/lilypond.mo +0 -0
  1103. data/share/locale/ja/LC_MESSAGES/lilypond.mo +0 -0
  1104. data/share/locale/nl/LC_MESSAGES/lilypond.mo +0 -0
  1105. data/share/locale/ru/LC_MESSAGES/lilypond.mo +0 -0
  1106. data/share/locale/sv/LC_MESSAGES/lilypond.mo +0 -0
  1107. data/share/locale/tr/LC_MESSAGES/lilypond.mo +0 -0
  1108. data/share/locale/uk/LC_MESSAGES/lilypond.mo +0 -0
  1109. data/share/locale/vi/LC_MESSAGES/lilypond.mo +0 -0
  1110. data/share/locale/zh_CN/LC_MESSAGES/lilypond.mo +0 -0
  1111. data/share/locale/zh_TW/LC_MESSAGES/lilypond.mo +0 -0
  1112. metadata +1135 -4
@@ -0,0 +1,1446 @@
1
+ ;;;; This file is part of LilyPond, the GNU music typesetter.
2
+ ;;;;
3
+ ;;;; Copyright (C) 1998--2022 Jan Nieuwenhuizen <janneke@gnu.org>
4
+ ;;;; Han-Wen Nienhuys <hanwen@xs4all.nl>
5
+ ;;;;
6
+ ;;;; LilyPond is free software: you can redistribute it and/or modify
7
+ ;;;; it under the terms of the GNU General Public License as published by
8
+ ;;;; the Free Software Foundation, either version 3 of the License, or
9
+ ;;;; (at your option) any later version.
10
+ ;;;;
11
+ ;;;; LilyPond is distributed in the hope that it will be useful,
12
+ ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ ;;;; GNU General Public License for more details.
15
+ ;;;;
16
+ ;;;; You should have received a copy of the GNU General Public License
17
+ ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ (use-modules
20
+ ;; for take, drop, take-while, list-index, and find-tail:
21
+ (srfi srfi-1)
22
+ (ice-9 pretty-print)
23
+ (ice-9 match))
24
+
25
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26
+ ;; constants.
27
+
28
+ (define-public X 0)
29
+ (define-public Y 1)
30
+ (define-public START -1)
31
+ (define-public STOP 1)
32
+ (define-public LEFT -1)
33
+ (define-public RIGHT 1)
34
+ (define-public UP 1)
35
+ (define-public DOWN -1)
36
+ (define-public CENTER 0)
37
+
38
+ (define-public DOUBLE-FLAT -1)
39
+ (define-public THREE-Q-FLAT -3/4)
40
+ (define-public FLAT -1/2)
41
+ (define-public SEMI-FLAT -1/4)
42
+ (define-public NATURAL 0)
43
+ (define-public SEMI-SHARP 1/4)
44
+ (define-public SHARP 1/2)
45
+ (define-public THREE-Q-SHARP 3/4)
46
+ (define-public DOUBLE-SHARP 1)
47
+ (define-public SEMI-TONE 1/2)
48
+ (define-public FIVE-HALF-FLAT -5/2)
49
+ (define-public SEVEN-HALF-FLAT -7/2)
50
+ (define-public FIVE-HALF-SHARP 5/2)
51
+ (define-public SEVEN-HALF-SHARP 7/2)
52
+
53
+ (define-public INFINITY-INT 1000000)
54
+
55
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
+ ;; moments
57
+
58
+ (define-public INF-MOMENT (ly:make-moment +inf.0))
59
+ (define-public ZERO-MOMENT (ly:make-moment 0 1))
60
+
61
+ (define-public (moment-min a b)
62
+ (if (ly:moment<? a b) a b))
63
+
64
+ (define-public (moment<=? a b)
65
+ (or (equal? a b)
66
+ (ly:moment<? a b)))
67
+
68
+ (define-public (fraction->moment fraction)
69
+ (if (null? fraction)
70
+ ZERO-MOMENT
71
+ (ly:make-moment (car fraction) (cdr fraction))))
72
+
73
+ (define-public (moment->fraction moment)
74
+ (cons (ly:moment-main-numerator moment)
75
+ (ly:moment-main-denominator moment)))
76
+
77
+ (define-public (seconds->moment s context)
78
+ "Return a moment equivalent to @var{s}@tie{}seconds at the current tempo."
79
+ (ly:moment-mul (ly:context-property context 'tempoWholesPerMinute)
80
+ (ly:make-moment (/ s 60))))
81
+
82
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
83
+ ;; durations
84
+
85
+ ;; Do not confuse this with (ly:make-duration 0 0), which is the
86
+ ;; duration of a whole note.
87
+ (define-public ZERO-DURATION (ly:make-duration 0 0 0))
88
+
89
+ (define-public (duration-log-factor lognum)
90
+ "Given a logarithmic duration number, return the length of the duration,
91
+ as a number of whole notes."
92
+ (or (and (exact? lognum) (integer? lognum))
93
+ (scm-error 'wrong-type-arg "duration-log-factor" "Not an integer: ~S" (list lognum) #f))
94
+ (if (<= lognum 0)
95
+ (ash 1 (- lognum))
96
+ (/ (ash 1 lognum))))
97
+
98
+ (define-public (duration-dot-factor dotcount)
99
+ "Given a count of the dots used to extend a musical duration, return
100
+ the numeric factor by which they increase the duration."
101
+ (or (and (exact? dotcount) (integer? dotcount) (>= dotcount 0))
102
+ (scm-error 'wrong-type-arg "duration-dot-factor" "Not a count: ~S" (list dotcount) #f))
103
+ (- 2 (/ (ash 1 dotcount))))
104
+
105
+ (define-public (duration-length dur)
106
+ "Return the overall length of a duration, as a number of whole
107
+ notes. (Not to be confused with @code{ly:duration-length}, which returns a
108
+ less useful @code{Moment} object.)"
109
+ (ly:moment-main (ly:duration-length dur)))
110
+
111
+ (define-public (duration-visual dur)
112
+ "Given a duration object, return the visual part of the duration (base
113
+ note length and dot count), in the form of a duration object with
114
+ non-visual scale factor 1."
115
+ (ly:make-duration (ly:duration-log dur) (ly:duration-dot-count dur) 1))
116
+
117
+ (define-public (duration-visual-length dur)
118
+ "Given a duration object, return the length of the visual part of the
119
+ duration (base note length and dot count), as a number of whole notes."
120
+ (duration-length (duration-visual dur)))
121
+
122
+ (define-public (unity-if-multimeasure context dur)
123
+ "Given a context and a duration, return @code{1} if the duration is
124
+ longer than the @code{measureLength} in that context, and @code{#f} otherwise.
125
+ This supports historic use of @code{Completion_heads_engraver} to split
126
+ @code{c1*3} into three whole notes."
127
+ (if (ly:moment<? (ly:context-property context 'measureLength)
128
+ (ly:duration-length dur))
129
+ 1
130
+ #f))
131
+
132
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
133
+ ;; arithmetic
134
+ (define-public (average x . lst)
135
+ (/ (+ x (apply + lst)) (1+ (length lst))))
136
+
137
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
138
+ ;; parser <-> output hooks.
139
+
140
+ (define-public (collect-bookpart-for-book book-part)
141
+ "Top-level book-part handler."
142
+ (define (add-bookpart book-part)
143
+ (ly:parser-define! 'toplevel-bookparts
144
+ (cons book-part (ly:parser-lookup 'toplevel-bookparts))))
145
+ ;; If top-level scores have been found before this \bookpart,
146
+ ;; add them first to a dedicated bookpart
147
+ (if (pair? (ly:parser-lookup 'toplevel-scores))
148
+ (begin
149
+ (add-bookpart (ly:make-book-part
150
+ (ly:parser-lookup 'toplevel-scores)))
151
+ (ly:parser-define! 'toplevel-scores (list))))
152
+ (add-bookpart book-part))
153
+
154
+ (define-public (collect-scores-for-book score)
155
+ (ly:parser-define! 'toplevel-scores
156
+ (cons score (ly:parser-lookup 'toplevel-scores))))
157
+
158
+ (define-public (collect-music-aux score-handler music)
159
+ "Pass @var{music} to @var{score-handler}, with preprocessing
160
+ for page layout instructions. "
161
+ (define (music-property symbol)
162
+ (ly:music-property music symbol #f))
163
+ (cond ((music-property 'page-marker)
164
+ ;; a page marker: set page break/turn permissions or label
165
+ (let ((label (music-property 'page-label)))
166
+ (if (symbol? label)
167
+ (score-handler (ly:make-page-label-marker label))))
168
+ (for-each (lambda (symbol)
169
+ (let ((permission (music-property symbol)))
170
+ (if (symbol? permission)
171
+ (score-handler
172
+ (ly:make-page-permission-marker symbol
173
+ (if (eq? 'forbid permission)
174
+ '()
175
+ permission))))))
176
+ '(line-break-permission page-break-permission
177
+ page-turn-permission)))
178
+ ((not (music-property 'void))
179
+ ;; a regular music expression: make a score with this music
180
+ ;; void music is discarded
181
+ (score-handler (scorify-music music)))))
182
+
183
+ (define-public (collect-music-for-book music)
184
+ "Top-level music handler."
185
+ (collect-music-aux (lambda (score)
186
+ (collect-scores-for-book score))
187
+ music))
188
+
189
+ (define-public (collect-book-music-for-book book music)
190
+ "Book music handler."
191
+ (collect-music-aux (lambda (score)
192
+ (ly:book-add-score! book score))
193
+ music))
194
+
195
+ (define-public (scorify-music music)
196
+ "Preprocess @var{music}."
197
+ (ly:make-score
198
+ (fold (lambda (f m) (f m))
199
+ music
200
+ toplevel-music-functions)))
201
+
202
+ (define (get-current-filename book)
203
+ "return any suffix value for output filename allowing for settings by
204
+ calls to bookOutputName function"
205
+ (or (paper-variable book 'output-filename)
206
+ (ly:parser-output-name)))
207
+
208
+ (define (get-current-suffix book)
209
+ "return any suffix value for output filename allowing for settings by calls to
210
+ bookoutput function"
211
+ (let ((book-output-suffix (paper-variable book 'output-suffix)))
212
+ (if (not (string? book-output-suffix))
213
+ (ly:parser-lookup 'output-suffix)
214
+ book-output-suffix)))
215
+
216
+ (define-public current-outfile-name #f) ; for use by regression tests
217
+
218
+ (define (get-outfile-name book)
219
+ "return current filename for generating backend output files"
220
+ ;; user can now override the base file name, so we have to use
221
+ ;; the file-name concatenated with any potential output-suffix value
222
+ ;; as the key to out internal a-list
223
+ (let* ((base-name (get-current-filename book))
224
+ (output-suffix (get-current-suffix book))
225
+ (alist-key (format #f "~a~a" base-name output-suffix))
226
+ (counter-alist (ly:parser-lookup 'counter-alist))
227
+ (output-count (assoc-get alist-key counter-alist 0))
228
+ (result base-name))
229
+ ;; Allow all ASCII alphanumerics, including accents
230
+ (if (string? output-suffix)
231
+ (set! result
232
+ (format #f "~a-~a"
233
+ result
234
+ (string-regexp-substitute
235
+ "[^-[:alnum:]]"
236
+ "_"
237
+ output-suffix))))
238
+
239
+ ;; assoc-get call will always have returned a number
240
+ (if (> output-count 0)
241
+ (set! result (format #f "~a-~a" result output-count)))
242
+
243
+ (ly:parser-define! 'counter-alist
244
+ (assoc-set! counter-alist alist-key (1+ output-count)))
245
+ (set! current-outfile-name result)
246
+ result))
247
+
248
+ (define (print-book-with book process-procedure)
249
+ (let* ((paper (ly:parser-lookup '$defaultpaper))
250
+ (layout (ly:parser-lookup '$defaultlayout))
251
+ (outfile-name (get-outfile-name book)))
252
+ (process-procedure book paper layout outfile-name)))
253
+
254
+ (define-public (print-book-with-defaults book)
255
+ (print-book-with book ly:book-process))
256
+
257
+ (define-public (print-book-with-defaults-as-systems book)
258
+ (print-book-with book ly:book-process-to-systems))
259
+
260
+ ;; Add a score to the current bookpart, book or top-level.
261
+ (define-public (add-score score)
262
+ (cond
263
+ ((ly:parser-lookup '$current-bookpart)
264
+ ((ly:parser-lookup 'bookpart-score-handler)
265
+ (ly:parser-lookup '$current-bookpart) score))
266
+ ((ly:parser-lookup '$current-book)
267
+ ((ly:parser-lookup 'book-score-handler)
268
+ (ly:parser-lookup '$current-book) score))
269
+ (else
270
+ ((ly:parser-lookup 'toplevel-score-handler) score))))
271
+
272
+ (define-public paper-variable
273
+ (let
274
+ ((get-papers
275
+ (lambda (book)
276
+ (append (if (and book (ly:output-def? (ly:book-paper book)))
277
+ (list (ly:book-paper book))
278
+ '())
279
+ (ly:parser-lookup '$papers)
280
+ (list (ly:parser-lookup '$defaultpaper))))))
281
+ (make-procedure-with-setter
282
+ (lambda (book symbol)
283
+ (any (lambda (p) (ly:output-def-lookup p symbol #f))
284
+ (get-papers book)))
285
+ (lambda (book symbol value)
286
+ (ly:output-def-set-variable!
287
+ (car (get-papers book))
288
+ symbol value)))))
289
+
290
+ (define-public (add-text text)
291
+ (add-score (list text)))
292
+
293
+ (define-public (add-music music)
294
+ (collect-music-aux (lambda (score)
295
+ (add-score score))
296
+ music))
297
+
298
+ (define-public (context-mod-from-music music)
299
+ (let ((warn #t) (mods (ly:make-context-mod)))
300
+ (let loop ((m music))
301
+ (if (music-is-of-type? m 'layout-instruction-event)
302
+ (let ((symbol (ly:music-property m 'symbol)))
303
+ (ly:add-context-mod
304
+ mods
305
+ (case (ly:music-property m 'name)
306
+ ((PropertySet)
307
+ (list 'assign
308
+ symbol
309
+ (ly:music-property m 'value)))
310
+ ((PropertyUnset)
311
+ (list 'unset symbol))
312
+ ((OverrideProperty)
313
+ (cons* 'push
314
+ symbol
315
+ (ly:music-property m 'grob-value)
316
+ (cond
317
+ ((ly:music-property m 'grob-property #f) => list)
318
+ (else
319
+ (ly:music-property m 'grob-property-path)))))
320
+ ((RevertProperty)
321
+ (cons* 'pop
322
+ symbol
323
+ (cond
324
+ ((ly:music-property m 'grob-property #f) => list)
325
+ (else
326
+ (ly:music-property m 'grob-property-path))))))))
327
+ (case (ly:music-property m 'name)
328
+ ((ApplyContext)
329
+ (ly:add-context-mod mods
330
+ (list 'apply
331
+ (ly:music-property m 'procedure))))
332
+ ((ContextSpeccedMusic)
333
+ (loop (ly:music-property m 'element)))
334
+ (else
335
+ (let ((callback (ly:music-property m 'elements-callback)))
336
+ (if (procedure? callback)
337
+ (for-each loop (callback m))
338
+ (if (and warn (ly:duration? (ly:music-property m 'duration)))
339
+ (begin
340
+ (ly:music-warning
341
+ music
342
+ (G_ "Music unsuitable for context-mod"))
343
+ (set! warn #f)))))))))
344
+ mods))
345
+
346
+ (define-public (context-defs-from-music output-def music)
347
+ (define (checkmods mods)
348
+ (or mods
349
+ (begin
350
+ (ly:music-warning music (G_ "Cannot determine contexts to modify"))
351
+ (ly:make-context-mod))))
352
+ (let ((warn #t))
353
+ (let loop ((m music) (mods #f))
354
+ ;; The parser turns all sets, overrides etc into something
355
+ ;; wrapped in ContextSpeccedMusic which is how we determine the
356
+ ;; contexts to affect. A set, override etc that is not wrapped
357
+ ;; in ContextSpeccedMusic is likely Scheme-generated and cannot
358
+ ;; really be assigned usefully. `checkmods' reports this
359
+ ;; problem when it occurs.
360
+ (if (music-is-of-type? m 'layout-instruction-event)
361
+ (ly:add-context-mod
362
+ (checkmods mods)
363
+ (case (ly:music-property m 'name)
364
+ ((PropertySet)
365
+ (list 'assign
366
+ (ly:music-property m 'symbol)
367
+ (ly:music-property m 'value)))
368
+ ((PropertyUnset)
369
+ (list 'unset
370
+ (ly:music-property m 'symbol)))
371
+ ((OverrideProperty)
372
+ (cons* 'push
373
+ (ly:music-property m 'symbol)
374
+ (ly:music-property m 'grob-value)
375
+ (cond
376
+ ((ly:music-property m 'grob-property #f) => list)
377
+ (else
378
+ (ly:music-property m 'grob-property-path)))))
379
+ ((RevertProperty)
380
+ (cons* 'pop
381
+ (ly:music-property m 'symbol)
382
+ (cond
383
+ ((ly:music-property m 'grob-property #f) => list)
384
+ (else
385
+ (ly:music-property m 'grob-property-path)))))))
386
+ (case (ly:music-property m 'name)
387
+ ((ApplyContext)
388
+ (ly:add-context-mod (checkmods mods)
389
+ (list 'apply
390
+ (ly:music-property m 'procedure))))
391
+ ((ContextSpeccedMusic)
392
+ ;; Use let* here to let defs catch up with modifications
393
+ ;; to the context defs made in the recursion
394
+ (let* ((mods (loop (ly:music-property m 'element)
395
+ (ly:make-context-mod)))
396
+ (defs (ly:output-find-context-def
397
+ output-def (ly:music-property m 'context-type))))
398
+ (if (null? defs)
399
+ (ly:music-warning
400
+ music
401
+ (format #f (G_ "Cannot find context-def \\~a")
402
+ (ly:music-property m 'context-type)))
403
+ (for-each
404
+ (lambda (entry)
405
+ (ly:output-def-set-variable!
406
+ output-def (car entry)
407
+ (ly:context-def-modify (cdr entry) mods)))
408
+ defs))))
409
+ (else
410
+ (let ((callback (ly:music-property m 'elements-callback)))
411
+ (if (procedure? callback)
412
+ (fold loop mods (callback m))
413
+ (if (and warn (ly:duration? (ly:music-property m 'duration)))
414
+ (begin
415
+ (ly:music-warning
416
+ music
417
+ (G_ "Music unsuitable for output-def"))
418
+ (set! warn #f))))))))
419
+ mods)))
420
+
421
+
422
+ ;;;;;;;;;;;;;;;;
423
+ ;; alist
424
+
425
+ (define-public assoc-get ly:assoc-get)
426
+
427
+ (define-public chain-assoc-get ly:chain-assoc-get)
428
+
429
+ (define-public (uniqued-alist alist acc)
430
+ (if (null? alist) acc
431
+ (if (assoc (caar alist) acc)
432
+ (uniqued-alist (cdr alist) acc)
433
+ (uniqued-alist (cdr alist) (cons (car alist) acc)))))
434
+
435
+ (define-public (alist<? x y)
436
+ (string<? (symbol->string (car x))
437
+ (symbol->string (car y))))
438
+
439
+ (define (map-alist-vals func list)
440
+ "map FUNC over the vals of LIST, leaving the keys."
441
+ (if (null? list)
442
+ '()
443
+ (cons (cons (caar list) (func (cdar list)))
444
+ (map-alist-vals func (cdr list)))))
445
+
446
+ (define (map-alist-keys func list)
447
+ "map FUNC over the keys of an alist LIST, leaving the vals."
448
+ (if (null? list)
449
+ '()
450
+ (cons (cons (func (caar list)) (cdar list))
451
+ (map-alist-keys func (cdr list)))))
452
+
453
+ (define-public (first-member members lst)
454
+ "Return first successful member (of member) from @var{members} in
455
+ @var{lst}."
456
+ (any (lambda (m) (member m lst)) members))
457
+
458
+ (define-public (first-assoc keys lst)
459
+ "Return first successful assoc of key from @var{keys} in @var{lst}."
460
+ (any (lambda (k) (assoc k lst)) keys))
461
+
462
+ (define-public (flatten-alist alist)
463
+ (if (null? alist)
464
+ '()
465
+ (cons (caar alist)
466
+ (cons (cdar alist)
467
+ (flatten-alist (cdr alist))))))
468
+
469
+ (define-public (map-selected-alist-keys function keys alist)
470
+ "Return @var{alist} with @var{function} applied to all of the values
471
+ in list @var{keys}. Example:
472
+
473
+ @example
474
+ (map-selected-alist-keys - '(a b) '((a . 1) (b . -2) (c . 3) (d . 4)))
475
+ @result{} ((a . -1) (b . 2) (c . 3) (d . 4))
476
+ @end example"
477
+ (define (map-selected-alist-keys-helper key alist)
478
+ (map
479
+ (lambda (pair)
480
+ (if (equal? key (car pair))
481
+ (cons key (function (cdr pair)))
482
+ pair))
483
+ alist))
484
+ (fold map-selected-alist-keys-helper alist keys))
485
+
486
+ ;;;;;;;;;;;;;;;;
487
+ ;; vector
488
+
489
+ (define-public (vector-for-each proc vec)
490
+ (do
491
+ ((i 0 (1+ i)))
492
+ ((>= i (vector-length vec)) vec)
493
+ (vector-set! vec i (proc (vector-ref vec i)))))
494
+
495
+ ;;;;;;;;;;;;;;;;
496
+ ;; hash
497
+
498
+ (define-public (hash-table->alist t)
499
+ (hash-fold acons '() t))
500
+
501
+ ;; UGH! Guile provides a module (ice-9 hash-table), containing an
502
+ ;; alist->hash-table function, but it's not the same one! Guile is consistent in
503
+ ;; its naming Scheme, providing alist->hashq-table, alist->hashv-table and
504
+ ;; alist->hash-table. This alist->hash-table is actually its
505
+ ;; alist->hashq-table. Meaning that we can't easily get rid of this definition
506
+ ;; and import (ice-9 hash-table), because this alist->hash-table is used in user
507
+ ;; scores, and hashq-ref and friends give inconsistent results on an alist
508
+ ;; created with alist->hash-table: it would be an ugly backwards compatibility
509
+ ;; leaving users with files that compile but strangely give wrong results. So
510
+ ;; we're stuck with a function that will be confusing forever. --JeanAS
511
+ (define-public (alist->hash-table lst)
512
+ "Convert alist @var{lst} to a table.
513
+
514
+ @strong{Warning:} The resulting hash table is hashed by identity.
515
+ This actually corresponds to the @code{alist->hashq-table} function
516
+ of Guile's @code{(ice-9 hash-table)} module, @strong{not}
517
+ @code{alist->hash-table}."
518
+ (let ((m (make-hash-table (length lst))))
519
+ ;; first association wins.
520
+ (for-each (lambda (k-v) (hashq-create-handle! m (car k-v) (cdr k-v))) lst)
521
+ m))
522
+
523
+ ;;;;;;;;;;;;;;;;
524
+ ;; list
525
+
526
+ (define (split-list lst n)
527
+ "Split LST in N equal sized parts"
528
+
529
+ (define (helper todo acc-vector k)
530
+ (if (null? todo)
531
+ acc-vector
532
+ (begin
533
+ (if (< k 0)
534
+ (set! k (+ n k)))
535
+
536
+ (vector-set! acc-vector k (cons (car todo) (vector-ref acc-vector k)))
537
+ (helper (cdr todo) acc-vector (1- k)))))
538
+
539
+ (helper lst (make-vector n '()) (1- n)))
540
+
541
+ (define (list-element-index lst x)
542
+ (list-index (lambda (m) (equal? m x)) lst))
543
+
544
+ (define-public (count-list lst)
545
+ "Given @var{lst} as @code{(E1 E2 .. )}, return
546
+ @code{((E1 . 1) (E2 . 2) ... )}."
547
+ (map cons lst (iota (length lst) 1)))
548
+
549
+ (define-public (list-join lst intermediate)
550
+ "Put @var{intermediate} between all elements of @var{lst}."
551
+
552
+ (fold-right
553
+ (lambda (elem prev)
554
+ (if (pair? prev)
555
+ (cons elem (cons intermediate prev))
556
+ (list elem)))
557
+ '() lst))
558
+
559
+ (define-public (flatten-list x)
560
+ "Unnest list."
561
+ (let loop ((x x) (tail '()))
562
+ (cond ((list? x) (fold-right loop tail x))
563
+ ((not (pair? x)) (cons x tail))
564
+ (else (loop (car x) (loop (cdr x) tail))))))
565
+
566
+ (define-public (uniq-list lst)
567
+ "Remove doublets from list @var{lst} (i.e., make its elements unique),
568
+ assuming that it is sorted. Uses @code{equal?} for comparisons."
569
+ (reverse!
570
+ (fold (lambda (x acc)
571
+ (if (null? acc)
572
+ (list x)
573
+ (if (equal? x (car acc))
574
+ acc
575
+ (cons x acc))))
576
+ '() lst) '()))
577
+
578
+ (define (split-at-predicate pred lst)
579
+ "Split LST into two lists at the first element that returns #f for
580
+ (PRED previous_element element). Return the two parts as a pair.
581
+ Example: (split-at-predicate < '(1 2 3 2 1)) ==> ((1 2 3) . (2 1))"
582
+ (let ((i (and (pair? lst)
583
+ (list-index (lambda (x y) (not (pred x y)))
584
+ lst
585
+ (cdr lst)))))
586
+ (if i
587
+ (call-with-values
588
+ (lambda () (split-at lst (1+ i)))
589
+ cons)
590
+ (list lst))))
591
+
592
+ (define-public (split-list-by-separator lst pred)
593
+ "Split @var{lst} at each element that satisfies @var{pred}, and return
594
+ the parts (with the separators removed) as a list of lists. Example:
595
+
596
+ @example
597
+ (split-list-by-separator '(a 0 b c 1 d) number?)
598
+ @result{} ((a) (b c) (d))
599
+ @end example"
600
+ (call-with-values (lambda () (break pred lst))
601
+ (lambda (head tail)
602
+ (cons head
603
+ (if (null? tail)
604
+ tail
605
+ (split-list-by-separator (cdr tail) pred))))))
606
+
607
+ (define-public (offset-add a b)
608
+ (cons (+ (car a) (car b))
609
+ (+ (cdr a) (cdr b))))
610
+
611
+ (define-public (offset-flip-y o)
612
+ (cons (car o) (- (cdr o))))
613
+
614
+ (define-public (offset-scale o scale)
615
+ (cons (* (car o) scale)
616
+ (* (cdr o) scale)))
617
+
618
+ (define-public (ly:list->offsets accum coords)
619
+ (if (null? coords)
620
+ accum
621
+ (cons (cons (car coords) (cadr coords))
622
+ (ly:list->offsets accum (cddr coords)))))
623
+
624
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
625
+ ;; pairs
626
+
627
+ (define (car-or-identity x)
628
+ (if (pair? x)
629
+ (car x)
630
+ x))
631
+
632
+ (define (cdr-or-identity x)
633
+ (if (pair? x)
634
+ (cdr x)
635
+ x))
636
+
637
+ (define-public (ordered-cons a b)
638
+ (cons (min a b)
639
+ (max a b)))
640
+
641
+ (define (pair-map procs arg1 . rest)
642
+ "Apply the procedures in the @code{car} and @code{cdr} of @var{procs}
643
+ to the corresponding elements of the pair @var{arg1} and return the
644
+ results in a pair. Additional pair arguments are accepted as for
645
+ @code{map}. Any argument @var{x} which is not a pair is treated as
646
+ @code{(@var{x} . @var{x})}."
647
+ (cons
648
+ (apply (car-or-identity procs) (map car-or-identity (cons arg1 rest)))
649
+ (apply (cdr-or-identity procs) (map cdr-or-identity (cons arg1 rest)))))
650
+
651
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
652
+ ;; intervals
653
+
654
+ (define-public empty-interval '(+inf.0 . -inf.0))
655
+
656
+ (define-public (symmetric-interval expr)
657
+ (cons (- expr) expr))
658
+
659
+ (define-public (interval-length x)
660
+ "Length of the number pair @var{x}, if an interval."
661
+ (max 0 (- (cdr x) (car x))))
662
+
663
+ (define-public (interval-bound interval dir)
664
+ ((if (= dir RIGHT) cdr car) interval))
665
+
666
+ (define-public (interval-index interval dir)
667
+ "Interpolate @var{interval} between between left (@var{dir}=@code{-1}) and
668
+ right (@var{dir}=@code{+1})."
669
+
670
+ (* (+ (interval-start interval) (interval-end interval)
671
+ (* dir (- (interval-end interval) (interval-start interval))))
672
+ 0.5))
673
+
674
+ (define-public (interval-center x)
675
+ "Center the number pair @var{x}, if an interval."
676
+ (if (interval-empty? x)
677
+ 0.0
678
+ (/ (+ (car x) (cdr x)) 2)))
679
+
680
+ (define-public interval-start car)
681
+
682
+ (define-public interval-end cdr)
683
+
684
+ (define-public (interval-scale iv factor)
685
+ (cons (* (car iv) factor)
686
+ (* (cdr iv) factor)))
687
+
688
+ (define-public (interval-widen iv amount)
689
+ (cons (- (car iv) amount)
690
+ (+ (cdr iv) amount)))
691
+
692
+ (define-public (interval-empty? iv)
693
+ (> (car iv) (cdr iv)))
694
+
695
+ (define-public (interval-contains? iv x)
696
+ ;; TODO: This deals with a point x. We could also deal with an interval.
697
+ (and (<= (car iv) x) (<= x (cdr iv))))
698
+
699
+ (define-public (interval-union i1 i2)
700
+ (cons
701
+ (min (car i1) (car i2))
702
+ (max (cdr i1) (cdr i2))))
703
+
704
+ (define-public (interval-intersection i1 i2)
705
+ (cons
706
+ (max (car i1) (car i2))
707
+ (min (cdr i1) (cdr i2))))
708
+
709
+ (define-public (interval-sane? i)
710
+ (not (or (nan? (car i))
711
+ (inf? (car i))
712
+ (nan? (cdr i))
713
+ (inf? (cdr i))
714
+ (> (car i) (cdr i)))))
715
+
716
+ (define-public (add-point interval p)
717
+ (cons (min (interval-start interval) p)
718
+ (max (interval-end interval) p)))
719
+
720
+ (define-public (reverse-interval iv)
721
+ (cons (cdr iv) (car iv)))
722
+
723
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
724
+ ;; coordinates
725
+
726
+ (define-public (other-axis a)
727
+ (remainder (+ a 1) 2))
728
+
729
+ (define coord-x car)
730
+ (define coord-y cdr)
731
+
732
+ (define (coord-axis coords axis)
733
+ ((if (eqv? axis X) car cdr) coords))
734
+
735
+ (define-public (coord-translate coordinate amount)
736
+ (pair-map + amount coordinate))
737
+
738
+ (define-public (coord-scale coordinate amount)
739
+ (pair-map * amount coordinate))
740
+
741
+ (define-public (coord-rotate coordinate angle-in-radians)
742
+ (coord-rotated coordinate (/ angle-in-radians PI-OVER-180)))
743
+
744
+ (define-public (coord-rotated coordinate direction)
745
+ ;; Same, in degrees or with a given direction
746
+ (let ((dir (ly:directed direction)))
747
+ (cons (- (* (car dir) (car coordinate))
748
+ (* (cdr dir) (cdr coordinate)))
749
+ (+ (* (car dir) (cdr coordinate))
750
+ (* (cdr dir) (car coordinate))))))
751
+
752
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
753
+ ;; trig
754
+
755
+ (define-public PI (* 4 (atan 1)))
756
+
757
+ (define-public TWO-PI (* 2 PI))
758
+
759
+ (define-public PI-OVER-TWO (/ PI 2))
760
+
761
+ (define-public THREE-PI-OVER-TWO (* 3 PI-OVER-TWO))
762
+
763
+ (define-public (cyclic-base-value value cycle)
764
+ "Take @var{value} (for example, an angle) and modulo-maps it between 0
765
+ and base @var{cycle}."
766
+ (cond ((< value 0)
767
+ (cyclic-base-value (+ value cycle) cycle))
768
+ ((>= value cycle)
769
+ (cyclic-base-value (- value cycle) cycle))
770
+ (else value)))
771
+
772
+ (define-public (angle-0-2pi angle)
773
+ "Take @var{angle} (in radians) and map it between 0 and 2pi."
774
+ (cyclic-base-value angle TWO-PI))
775
+
776
+ (define-public (angle-0-360 angle)
777
+ "Take @var{angle} (in degrees) and map it between 0 and 360 degrees."
778
+ (cyclic-base-value angle 360.0))
779
+
780
+ (define-public PI-OVER-180 (/ PI 180))
781
+
782
+ (define-public (degrees->radians angle-degrees)
783
+ "Convert the given angle from degrees to radians."
784
+ (* angle-degrees PI-OVER-180))
785
+
786
+ (define-public (ellipse-radius x-radius y-radius angle)
787
+ (/
788
+ (* x-radius y-radius)
789
+ (sqrt
790
+ (+ (* (expt y-radius 2)
791
+ (* (cos angle) (cos angle)))
792
+ (* (expt x-radius 2)
793
+ (* (sin angle) (sin angle)))))))
794
+
795
+ (define-public (polar->rectangular radius angle-in-degrees)
796
+ "Return polar coordinates (@var{radius}, @var{angle-in-degrees})
797
+ as rectangular coordinates @code{(x-length . y-length)}."
798
+ (ly:directed angle-in-degrees radius))
799
+
800
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
801
+ ;; string
802
+
803
+ (define-public (string-endswith s suffix)
804
+ (equal? suffix (substring/shared s
805
+ (max 0 (- (string-length s) (string-length suffix)))
806
+ (string-length s))))
807
+
808
+ (define-public (string-startswith s prefix)
809
+ (equal? prefix (substring/shared s 0 (min (string-length s) (string-length prefix)))))
810
+
811
+ (define-public (remove-whitespace strg)
812
+ "Remove characters satisfying @code{char-whitespace?} from string
813
+ @var{strg}."
814
+ (string-delete char-whitespace? strg))
815
+
816
+ (define-public (string-encode-integer i)
817
+ (cond
818
+ ((= i 0) "o")
819
+ ((< i 0) (string-append "n" (string-encode-integer (- i))))
820
+ (else (string-append
821
+ (make-string 1 (integer->char (+ 65 (modulo i 26))))
822
+ (string-encode-integer (quotient i 26))))))
823
+
824
+ (define (number->octal-string x)
825
+ (let* ((n (inexact->exact x))
826
+ (n64 (quotient n 64))
827
+ (n8 (quotient (- n (* n64 64)) 8)))
828
+ (string-append
829
+ (number->string n64)
830
+ (number->string n8)
831
+ (number->string (remainder (- n (+ (* n64 64) (* n8 8))) 8)))))
832
+
833
+ (define-public (ly:number-pair->string c)
834
+ (string-append (ly:number->string (car c)) " "
835
+ (ly:number->string (cdr c))))
836
+
837
+ (define-public (dir-basename file . rest)
838
+ "Strip suffixes in @var{rest}, but leave directory component for
839
+ @var{file}."
840
+ (define (inverse-basename x y) (basename y x))
841
+ (simple-format #f "~a/~a" (dirname file)
842
+ (fold inverse-basename file rest)))
843
+
844
+ (define-public (write-me message x)
845
+ "Return @var{x}. Display @var{message} and write @var{x}.
846
+ Handy for debugging, possibly turned off."
847
+ (display message) (write x) (newline) x)
848
+ ;; x)
849
+
850
+ (define-public (stderr string . rest)
851
+ (apply format (current-error-port) string rest)
852
+ (force-output (current-error-port)))
853
+
854
+ (define-public (debugf string . rest)
855
+ (if #f
856
+ (apply stderr string rest)))
857
+
858
+ (define (index-cell cell dir)
859
+ (if (equal? dir 1)
860
+ (cdr cell)
861
+ (car cell)))
862
+
863
+ (define-public (list-insert-separator lst between)
864
+ "Create new list, inserting @var{between} between elements of @var{lst}."
865
+ (define (conc x y )
866
+ (if (eq? y #f)
867
+ (list x)
868
+ (cons x (cons between y))))
869
+ (fold-right conc #f lst))
870
+
871
+ (define-public (string-regexp-substitute a b str)
872
+ (regexp-substitute/global #f a str 'pre b 'post))
873
+
874
+ (define (regexp-split str regex)
875
+ (define matches '())
876
+ (define end-of-prev-match 0)
877
+ (define (notice match)
878
+
879
+ (set! matches (cons (substring (match:string match)
880
+ end-of-prev-match
881
+ (match:start match))
882
+ matches))
883
+ (set! end-of-prev-match (match:end match)))
884
+
885
+ (regexp-substitute/global #f regex str notice 'post)
886
+
887
+ (if (< end-of-prev-match (string-length str))
888
+ (set!
889
+ matches
890
+ (cons (substring str end-of-prev-match (string-length str)) matches)))
891
+
892
+ (reverse matches))
893
+
894
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
895
+ ;; numbering styles
896
+
897
+ (define-public (number-format number-type num . custom-format)
898
+ "Print @var{num} according to the requested @var{number-type}.
899
+ Choices include @code{arabic}, @code{custom}, @code{roman-ij-lower},
900
+ @code{roman-ij-upper}, @code{roman-lower} (the default), and
901
+ @code{roman-upper}.
902
+
903
+ For @code{custom}, @var{custom-format} must be present; it gets
904
+ applied to @var{num}."
905
+ ;; Be foolproof: avoid an error if trying to format zero or a
906
+ ;; negative number in roman numbers; use arabic numbers in that
907
+ ;; case.
908
+ (case number-type
909
+ ((roman-lower)
910
+ (if (positive? num)
911
+ (ice9-format #f "~(~@r~)" num)
912
+ (ice9-format #f "~d" num)))
913
+ ((roman-upper)
914
+ (if (positive? num)
915
+ (ice9-format #f "~@r" num)
916
+ (ice9-format #f "~d" num)))
917
+ ((arabic)
918
+ (ice9-format #f "~d" num))
919
+ ;; Too bad that we can't make this work with out-of-range numbers and such.
920
+ ;; Guile prints information about the error before raising it. Maybe we
921
+ ;; should change from accepting 'custom plus a format string to accepting a
922
+ ;; procedure that does the work itself?
923
+ ((custom)
924
+ (ice9-format #f (car custom-format) num))
925
+ ((roman-ij-lower)
926
+ (if (positive? num)
927
+ (let* ((text (ice9-format #f "~(~@r~)" num))
928
+ (text (string-regexp-substitute "i$" "j" text))
929
+ (text (string-regexp-substitute
930
+ "ij$" (ly:wide-char->utf-8 #x0133) text))) ; ij ligature
931
+ text)
932
+ (ice9-format #f "~d" num)))
933
+ ((roman-ij-upper)
934
+ (if (positive? num)
935
+ (let* ((text (ice9-format #f "~@r" num))
936
+ (text (string-regexp-substitute "I$" "J" text))
937
+ (text (string-regexp-substitute
938
+ "IJ$" (ly:wide-char->utf-8 #x0132) text))) ; IJ ligature
939
+ text)
940
+ (ice9-format #f "~d" num)))
941
+ (else
942
+ (if (positive? num)
943
+ (ice9-format #f "~(~@r~)" num)
944
+ (ice9-format #f "~d" num)))))
945
+
946
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
947
+ ;; lilypond version
948
+
949
+ (define (lexicographic-list-compare? op a b)
950
+ "Lexicographically compare two lists @var{a} and @var{b} using
951
+ the operator @var{op}. The types of the list elements have to
952
+ be comparable with @var{op}. If the lists are of different length
953
+ the trailing elements of the longer list are ignored."
954
+ (let* ((ca (car a))
955
+ (iseql (op ca ca)))
956
+ (let loop ((ca ca) (cb (car b)) (a (cdr a)) (b (cdr b)))
957
+ (let ((axb (op ca cb)))
958
+ (if (and (pair? a) (pair? b)
959
+ (eq? axb iseql (op cb ca)))
960
+ (loop (car a) (car b) (cdr a) (cdr b))
961
+ axb)))))
962
+
963
+ (define-public (ly:version? op ver)
964
+ "Use operator @var{op} to compare the currently executed LilyPond
965
+ version with a given version @var{ver}, which is passed as a list of
966
+ numbers."
967
+ (lexicographic-list-compare? op (ly:version) ver))
968
+
969
+ (define (parse-lily-version str)
970
+ (let* ((warned #f)
971
+ (output
972
+ (match (string-split str #\.)
973
+ ((major minor patch my-patch)
974
+ (list (string->number major)
975
+ (string->number minor)
976
+ (string->number patch)
977
+ (string->symbol my-patch)))
978
+ ((major minor patch)
979
+ (list (string->number major)
980
+ (string->number minor)
981
+ (string->number patch)))
982
+ ((major minor)
983
+ ;; Accept \version "x.y" without third component, but only
984
+ ;; if y is even, i.e. it's a stable release series. Within
985
+ ;; a development release series, syntax changes with point
986
+ ;; releases so convert-ly needs the specific one.
987
+ (let ((major-int (string->number major))
988
+ (minor-int (string->number minor)))
989
+ (cond
990
+ ((not (and major-int minor-int))
991
+ #f)
992
+ ((odd? minor-int)
993
+ (ly:non-fatal-error (G_ "version with third number omitted is only allowed for stable releases \
994
+ (when the second number is even)"))
995
+ (set! warned #t)
996
+ #f)
997
+ (else
998
+ (list major-int minor-int)))))
999
+ (else #f))))
1000
+ (cond
1001
+ (warned
1002
+ #f)
1003
+ ((or (not output)
1004
+ ;; Are the number components actually numbers?
1005
+ (not (every identity output)))
1006
+ (ly:non-fatal-error (G_ "Invalid version string \"~a\"")
1007
+ str)
1008
+ #f)
1009
+ (else output))))
1010
+
1011
+ (define (parse-and-check-version str)
1012
+ "Parse the given version string and check its validity. If valid,
1013
+ return the parsed version as a list, else return @code{#f}. If the
1014
+ version is greater than the running version of LilyPond, a warning is
1015
+ emitted and the version is considered invalid."
1016
+ (let ((version (parse-lily-version str)))
1017
+ (cond
1018
+ ((not version)
1019
+ #f)
1020
+ ((ly:version? < version)
1021
+ (ly:non-fatal-error (G_ "program too old: ~a (file requires: ~a)")
1022
+ (lilypond-version)
1023
+ str)
1024
+ ;; Must consider invalid so that the lexer will emit the error
1025
+ ;; token necessary to set a nonzero exit code. The usage for
1026
+ ;; the version returned is checking if it's too old (to suggest
1027
+ ;; convert-ly), so not recording it if it's too new is no
1028
+ ;; problem.
1029
+ #f)
1030
+ (else
1031
+ version))))
1032
+
1033
+ (define convert-ly-msg
1034
+ (match (ly:version)
1035
+ ((major minor . rest)
1036
+ (format #f
1037
+ (G_ "\
1038
+
1039
+ Note: compilation failed and \\version outdated, did you
1040
+ update input syntax with convert-ly?
1041
+
1042
+ https://lilypond.org/doc/v~a.~a/Documentation/usage/updating-files-with-convert_002dly
1043
+
1044
+ ")
1045
+ major
1046
+ minor))))
1047
+
1048
+ ;; Always used with (ly:version) for lilypond-version, but it's
1049
+ ;; an argument for the sake of regression testing.
1050
+ (define-public (lilypond-version-outdated? file-version lily-version)
1051
+ "Is @var{file-version} outdated compared to @var{lily-version}?
1052
+ This is defined as a version that is from a lower release
1053
+ series (corresponding to the first two numbers of the version) or a
1054
+ version from the same @emph{unstable} release series (odd minor
1055
+ version number) with a lower patch level (third number). A stable
1056
+ version from the same series does not count as outdated because
1057
+ compatibility is preserved."
1058
+ (match
1059
+ lily-version
1060
+ ((major minor patch . _)
1061
+ (match
1062
+ file-version
1063
+ ((file-major file-minor . rest)
1064
+ (or (> major file-major)
1065
+ (and (eqv? major file-major)
1066
+ (or (> minor file-minor)
1067
+ (and (eqv? minor file-minor)
1068
+ (odd? minor)
1069
+ (match rest
1070
+ (() #f)
1071
+ ((file-patch . _) (> patch file-patch))))))))))))
1072
+
1073
+ (define-public (suggest-convert-ly-message version-seen)
1074
+ "Internally used when the file has an error, to suggest usage of
1075
+ @code{convert-ly} if the @code{\\version} statement is considered
1076
+ outdated compared to the LilyPond version that is running."
1077
+ ;; If version-seen is #t, it means that a \version statement
1078
+ ;; was found but the version could not be parsed.
1079
+ (if (and (not (eq? version-seen #t))
1080
+ (lilypond-version-outdated? version-seen (ly:version)))
1081
+ (ly:message convert-ly-msg)))
1082
+
1083
+ ;;;;;;;;;;;;;;;;
1084
+ ;; broken spanner
1085
+
1086
+ ;; TODO: maybe we should add in the following functions some sanity checks
1087
+ ;; for unbroken input spanners really being spanners that did
1088
+ ;; not need to be broken, characterized by null ly:spanner-broken-intos,
1089
+ ;; as opposed to original spanners that were broken? Or maybe not? --JeanAS
1090
+
1091
+ (define-public (unbroken-spanner? spanner)
1092
+ "Is @var{spanner} unbroken? A spanner has to be broken if it spans
1093
+ more than one system, or if one of its bounds is on the limit of the
1094
+ system. This function returns @code{#f} on the clones, but @code{#t}
1095
+ on the originals."
1096
+ (eq? spanner (ly:grob-original spanner)))
1097
+
1098
+ (define (check-broken-spanner unbroken-val siblings-condition? spanner)
1099
+ ;; Generic broken status checker: return `unbroken-val` if `spanner`
1100
+ ;; is unbroken, else call `siblings-condition?` on its siblings.
1101
+ (if (unbroken-spanner? spanner)
1102
+ unbroken-val
1103
+ (let ((siblings (ly:spanner-broken-into (ly:grob-original spanner))))
1104
+ (if (null? siblings)
1105
+ (begin
1106
+ ;; Should really not happen because at least `spanner`
1107
+ ;; will be in the siblings.
1108
+ (ly:programming-error "broken spanner ~a without siblings"
1109
+ (grob::name spanner))
1110
+ #f)
1111
+ (siblings-condition? siblings)))))
1112
+
1113
+ (define-public (first-broken-spanner? spanner)
1114
+ "Is @var{spanner} broken @emph{and} the first of its broken
1115
+ siblings? See also @code{unbroken-or-first-broken-spanner?}."
1116
+ (check-broken-spanner
1117
+ #f
1118
+ (lambda (siblings)
1119
+ (eq? spanner (first siblings)))
1120
+ spanner))
1121
+
1122
+ (define-public (middle-broken-spanner? spanner)
1123
+ "Is @var{spanner} broken and among the middle broken pieces (i.e.,
1124
+ neither the first nor the last)?"
1125
+ (check-broken-spanner
1126
+ #f
1127
+ (lambda (siblings)
1128
+ (and (not (eq? spanner (first siblings)))
1129
+ (not (eq? spanner (last siblings)))))
1130
+ spanner))
1131
+
1132
+ ;; FIXME: *end*-broken-spanner? vs. not-*last*-broken-spanner?
1133
+ (define-public (end-broken-spanner? spanner)
1134
+ "Is @var{spanner} broken @emph{and} the last of its broken siblings?
1135
+ See also @code{unbroken-or-last-broken-spanner?}."
1136
+ (check-broken-spanner
1137
+ #f
1138
+ (lambda (siblings)
1139
+ (eq? spanner (last siblings)))
1140
+ spanner))
1141
+
1142
+ (define-public (not-first-broken-spanner? spanner)
1143
+ "Is @var{spanner} broken @emph{and} not the first of its broken
1144
+ siblings? The name is read @qq{(not first) and broken}."
1145
+ (check-broken-spanner
1146
+ #f
1147
+ (lambda (siblings)
1148
+ (not (eq? spanner (first siblings))))
1149
+ spanner))
1150
+
1151
+ (define-public (not-last-broken-spanner? spanner)
1152
+ "Is @var{spanner} broken @emph{and} not the last of its broken
1153
+ siblings? The name is read @qq{(not last) and broken}."
1154
+ (check-broken-spanner
1155
+ #f
1156
+ (lambda (siblings)
1157
+ (not (eq? spanner (last siblings))))
1158
+ spanner))
1159
+
1160
+ (define-public (unbroken-or-first-broken-spanner? spanner)
1161
+ "Is @var{spanner} either unbroken or the first of its broken
1162
+ siblings?"
1163
+ (check-broken-spanner
1164
+ #t
1165
+ (lambda (siblings)
1166
+ (eq? spanner (first siblings)))
1167
+ spanner))
1168
+
1169
+ (define-public (unbroken-or-last-broken-spanner? spanner)
1170
+ "Is @var{spanner} either unbroken or the last of its broken
1171
+ siblings?"
1172
+ (check-broken-spanner
1173
+ #t
1174
+ (lambda (siblings)
1175
+ (eq? spanner (last siblings)))
1176
+ spanner))
1177
+
1178
+ ;;;;;;;;;;;;;;;;
1179
+ ;; other
1180
+
1181
+ (define-public (sign x)
1182
+ (if (= x 0)
1183
+ 0
1184
+ (if (< x 0) -1 1)))
1185
+
1186
+ (define-public (binary-search start end getter target-val)
1187
+ (_i "Find the index between @var{start} and @var{end} (an integer)
1188
+ which produces the closest match to @var{target-val} if
1189
+ applied to function @var{getter}.")
1190
+ (if (<= end start)
1191
+ start
1192
+ (let* ((compare (quotient (+ start end) 2))
1193
+ (get-val (getter compare)))
1194
+ (cond
1195
+ ((< target-val get-val)
1196
+ (set! end (1- compare)))
1197
+ ((< get-val target-val)
1198
+ (set! start (1+ compare))))
1199
+ (binary-search start end getter target-val))))
1200
+
1201
+ (define-public ((comparator-from-key key cmp) a b)
1202
+ "Return a comparator function that applies @var{key} to the two
1203
+ elements and compares the results using @var{cmp}. Especially
1204
+ useful for sorting."
1205
+ (cmp (key a)
1206
+ (key b)))
1207
+
1208
+ (define-public car<
1209
+ (comparator-from-key car <))
1210
+
1211
+ (define-public car<=
1212
+ (comparator-from-key car <=))
1213
+
1214
+ (define-public symbol<?
1215
+ (comparator-from-key symbol->string string<?))
1216
+
1217
+ (define-public symbol-key<?
1218
+ (comparator-from-key car symbol<?))
1219
+
1220
+ (define-public (eval-carefully symbol module . default)
1221
+ "Check whether all symbols in expression @var{symbol} are reachable
1222
+ in module @var{module}. In that case evaluate, otherwise
1223
+ print a warning and set an optional @var{default}."
1224
+ (let* ((unavailable? (lambda (sym)
1225
+ (not (module-defined? module sym))))
1226
+ (sym-unavailable
1227
+ (filter
1228
+ unavailable?
1229
+ (filter symbol? (flatten-list symbol)))))
1230
+ (if (null? sym-unavailable)
1231
+ (eval symbol module)
1232
+ (let* ((def (and (pair? default) (car default))))
1233
+ (ly:programming-error
1234
+ "cannot evaluate ~S in module ~S, setting to ~S"
1235
+ (object->string symbol)
1236
+ (object->string module)
1237
+ (object->string def))
1238
+ def))))
1239
+
1240
+ (define (self-evaluating? x)
1241
+ (or (number? x) (string? x) (procedure? x) (boolean? x)))
1242
+
1243
+ (define (ly-type? x)
1244
+ (any (lambda (p) ((car p) x)) lilypond-exported-predicates))
1245
+
1246
+ (define-public (pretty-printable? val)
1247
+ (and (not (self-evaluating? val))
1248
+ (not (symbol? val))
1249
+ (not (hash-table? val))
1250
+ (not (ly-type? val))))
1251
+
1252
+ (define-public (scm->string val)
1253
+ (let* ((quote-style (if (string? val)
1254
+ 'double
1255
+ (if (or (null? val) ; (ly-type? '()) => #t
1256
+ (and (not (self-evaluating? val))
1257
+ (not (vector? val))
1258
+ (not (hash-table? val))
1259
+ (not (ly-type? val))))
1260
+ 'single
1261
+ 'none)))
1262
+ ;; don't confuse users with #<procedure ...> syntax
1263
+ (str (if (and (procedure? val)
1264
+ (symbol? (procedure-name val)))
1265
+ (symbol->string (procedure-name val))
1266
+ (call-with-output-string
1267
+ (if (pretty-printable? val)
1268
+ ;; property values in PDF hit margin after 64 columns
1269
+ (lambda (port)
1270
+ (pretty-print val port #:width (case quote-style
1271
+ ((single) 63)
1272
+ (else 64))))
1273
+ (lambda (port) (display val port)))))))
1274
+ (case quote-style
1275
+ ((single) (string-append
1276
+ "'"
1277
+ (string-regexp-substitute "\n " "\n " str)))
1278
+ ((double) (string-append "\"" str "\""))
1279
+ (else str))))
1280
+
1281
+ (define-public (!= lst r)
1282
+ (not (= lst r)))
1283
+
1284
+ (define-public lily-unit->bigpoint-factor
1285
+ (cond
1286
+ ((equal? (ly:unit) "mm") (/ 72.0 25.4))
1287
+ ((equal? (ly:unit) "pt") (/ 72.0 72.27))
1288
+ (else (ly:error (G_ "unknown unit: ~S") (ly:unit)))))
1289
+
1290
+ (define-public lily-unit->mm-factor
1291
+ (* 25.4 (/ lily-unit->bigpoint-factor 72)))
1292
+
1293
+ ;;; FONT may be font smob, or pango font string...
1294
+ (define-public (font-name-style font)
1295
+ (if (string? font)
1296
+ (string-downcase font)
1297
+ (let* ((font-name (ly:font-name font))
1298
+ (full-name (if font-name font-name (ly:font-file-name font))))
1299
+ (string-downcase full-name))))
1300
+
1301
+ (define-public (modified-font-metric-font-scaling font)
1302
+ (let* ((designsize (ly:font-design-size font))
1303
+ (magnification (* (ly:font-magnification font)))
1304
+ (scaling (* magnification designsize)))
1305
+ (debugf "scaling:~S\n" scaling)
1306
+ (debugf "magnification:~S\n" magnification)
1307
+ (debugf "design:~S\n" designsize)
1308
+ scaling))
1309
+
1310
+ (define-public (version-not-seen-message input-file-name)
1311
+ (ly:warning-located
1312
+ (format #f "~a:1" input-file-name)
1313
+ (G_ "no \\version statement found, please add~afor future compatibility")
1314
+ (format #f "\n\n\\version ~s\n\n" (lilypond-version))))
1315
+
1316
+ (define-public (output-module? module)
1317
+ "Return @code{#t} if @var{module} belongs to an output module
1318
+ usually carrying context definitions (@code{\\midi} or
1319
+ @code{\\layout})."
1320
+ (let ((kind (module-ref module 'output-def-kind #f)))
1321
+ (or (eq? kind 'midi)
1322
+ (eq? kind 'layout))))
1323
+
1324
+
1325
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1326
+ ;; make-engraver helper macro
1327
+
1328
+ (define (listener->once-listener listener)
1329
+ (let ((last-ev #f)
1330
+ (mom #f))
1331
+ (lambda (translator event)
1332
+ (let ((new-mom (ly:context-current-moment
1333
+ (ly:translator-context translator))))
1334
+ (cond
1335
+ ;; First event in time step.
1336
+ ((not (equal? new-mom mom))
1337
+ (set! mom new-mom)
1338
+ (set! last-ev event)
1339
+ (listener translator event))
1340
+ ;; Event repeated; nothing to do.
1341
+ ((equal? event last-ev))
1342
+ (else
1343
+ ;; Sync with stream-event.cc.
1344
+ (let ((old-cls (car (ly:event-property last-ev 'class)))
1345
+ (new-cls (car (ly:event-property event 'class))))
1346
+ (ly:event-warning last-ev (G_ "conflict with event: `~a'") old-cls)
1347
+ (ly:event-warning event (G_ "discarding event: `~a'") new-cls))))))))
1348
+
1349
+ ;; An alist pair of @code{(is-midi . #t)} specifies possible use as a
1350
+ ;; performer, @code{(is-layout . #t)} as an engraver. If neither is
1351
+ ;; specified, engraver-only use is assumed.
1352
+ (define-syntax make-translator-component
1353
+ (syntax-rules ()
1354
+ ;; Special case of listeners.
1355
+ ((_ ((name arg ... #:once) body ...))
1356
+ (cons 'name (listener->once-listener (lambda (arg ...) body ...))))
1357
+ ;; Example: ((process-music engraver) ...) => (lambda (engraver) ...)
1358
+ ((_ ((name . args) body ...))
1359
+ (cons 'name (lambda args body ...)))
1360
+ ;; Example: (listeners ...) => (list 'listeners ...)
1361
+ ((_ (name thing ...))
1362
+ (cons 'name (make-translator-internal thing ...)))
1363
+ ;; Examples: (is-midi . #t) => (cons 'is-midi #t)
1364
+ ;; (process-music . func) => (cons 'process-music func)
1365
+ ((_ (name . value))
1366
+ (cons 'name value))))
1367
+
1368
+ (define-syntax-rule (make-translator-internal thing ...)
1369
+ (list (make-translator-component thing) ...))
1370
+
1371
+ (define-syntax-rule-public (make-engraver form ...)
1372
+ "Like @code{make-translator}, but create an engraver, i.e.,
1373
+ the resulting translator is only run in layout output and ignored
1374
+ in MIDI."
1375
+ (make-translator-internal form ... (is-layout . #t)))
1376
+
1377
+ (define-syntax-rule-public (make-performer form ...)
1378
+ "Like @code{make-translator}, but create a performer, i.e.,
1379
+ the resulting translator is only run in MIDI and ignored in
1380
+ layout output. Scheme performers do not support acknowledgers
1381
+ and @code{process-acknowledged}."
1382
+ (make-translator-internal form ... (is-midi . #t)))
1383
+
1384
+ (define-syntax-rule-public (make-translator form ...)
1385
+ "Helper macro for creating Scheme translators usable in
1386
+ both @samp{\\midi} and @samp{\\layout}.
1387
+
1388
+ The usual form for a translator is an association list (or alist)
1389
+ mapping symbols to either anonymous functions or to another such
1390
+ alist.
1391
+
1392
+ @code{make-translator} accepts forms where the first element is either
1393
+ an argument list starting with the respective symbol, followed by the
1394
+ function body (comparable to the way @code{define} is used for
1395
+ defining functions), or a single symbol followed by subordinate forms
1396
+ in the same manner. You can also just make an alist pair
1397
+ literally (the @samp{car} is quoted automatically) as long as the
1398
+ unevaluated @samp{cdr} is not a pair. This is useful if you already
1399
+ have defined your engraver functions separately.
1400
+
1401
+ Symbols mapping to a function would be @code{initialize},
1402
+ @code{start-translation-timestep}, @code{pre-process-music},
1403
+ @code{process-music}, @code{stop-translation-timestep}, and
1404
+ @code{finalize}. Symbols mapping to another alist specified in the
1405
+ same manner are @code{listeners} with the subordinate symbols being
1406
+ event classes.
1407
+
1408
+ A template for writing a translator with all methods is:
1409
+
1410
+ @example
1411
+ (lambda (context)
1412
+ (let (local-variables ...)
1413
+ (make-translator
1414
+ ((initialize translator)
1415
+ ...)
1416
+ ((start-translation-timestep translator)
1417
+ ...)
1418
+ (listeners
1419
+ ((event-class-1 translator event)
1420
+ ...)
1421
+ ((event-class-2 translator event #:once)
1422
+ ...))
1423
+ ((process-music translator)
1424
+ ...)
1425
+ (acknowledgers
1426
+ ((grob-interface-1 translator grob source-translator)
1427
+ ...)
1428
+ ((grob-interface-2 translator grob source-translator)
1429
+ ...))
1430
+ ((process-acknowledged translator)
1431
+ ...)
1432
+ ((stop-translation-timestep translator)
1433
+ ...)
1434
+ ((finalize translator)
1435
+ ...))))
1436
+ @end example
1437
+
1438
+ This can be used as the argument to @code{\\consists}.
1439
+
1440
+ For @code{listeners}, a special feature is available: the argument
1441
+ list of a listener can be terminated with the keyword @code{#:once}.
1442
+ This makes for a listener that is only ever triggered once per time
1443
+ step. If it receives several events in the same time step, it emits a
1444
+ warning, except if they are all equal (where equality is checked
1445
+ recursively, with @code{equal?})."
1446
+ (make-translator-internal form ... (is-layout . #t) (is-midi . #t)))