LEFT | RIGHT |
(no file at all) | |
1 ;;;; This file is part of LilyPond, the GNU music typesetter. | 1 ;;;; This file is part of LilyPond, the GNU music typesetter. |
2 ;;;; | 2 ;;;; |
3 ;;;; Copyright (C) 1998--2012 Jan Nieuwenhuizen <janneke@gnu.org> | 3 ;;;; Copyright (C) 1998--2012 Jan Nieuwenhuizen <janneke@gnu.org> |
4 ;;;; Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 ;;;; Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 ;;;; | 5 ;;;; |
6 ;;;; LilyPond is free software: you can redistribute it and/or modify | 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 | 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 | 8 ;;;; the Free Software Foundation, either version 3 of the License, or |
9 ;;;; (at your option) any later version. | 9 ;;;; (at your option) any later version. |
10 ;;;; | 10 ;;;; |
(...skipping 14 matching lines...) Expand all Loading... |
25 (and (pair? x) | 25 (and (pair? x) |
26 (number? (car x)) (number? (cdr x)))) | 26 (number? (car x)) (number? (cdr x)))) |
27 | 27 |
28 (define-public (number-pair-list? x) | 28 (define-public (number-pair-list? x) |
29 (and (list? x) | 29 (and (list? x) |
30 (every number-pair? x))) | 30 (every number-pair? x))) |
31 | 31 |
32 (define-public (fraction? x) | 32 (define-public (fraction? x) |
33 (and (pair? x) | 33 (and (pair? x) |
34 (index? (car x)) (index? (cdr x)))) | 34 (index? (car x)) (index? (cdr x)))) |
| 35 |
| 36 (define-public (rational-or-procedure? x) |
| 37 (or |
| 38 (and (rational? x) (exact? x)) |
| 39 (procedure? x))) |
35 | 40 |
36 (define-public (number-or-grob? x) | 41 (define-public (number-or-grob? x) |
37 (or (ly:grob? x) (number? x))) | 42 (or (ly:grob? x) (number? x))) |
38 | 43 |
39 (define-public (grob-list? x) | 44 (define-public (grob-list? x) |
40 (list? x)) | 45 (list? x)) |
41 | 46 |
42 (define-public (number-list? x) | 47 (define-public (number-list? x) |
43 (and (list? x) (every number? x))) | 48 (and (list? x) (every number? x))) |
44 | 49 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 115 |
111 (define-public (object-type-name obj) | 116 (define-public (object-type-name obj) |
112 (type-name (match-predicate obj type-p-name-alist))) | 117 (type-name (match-predicate obj type-p-name-alist))) |
113 | 118 |
114 (define-public (type-name predicate) | 119 (define-public (type-name predicate) |
115 (let ((entry (assoc predicate type-p-name-alist))) | 120 (let ((entry (assoc predicate type-p-name-alist))) |
116 (if (pair? entry) (cdr entry) | 121 (if (pair? entry) (cdr entry) |
117 (string-trim-right | 122 (string-trim-right |
118 (symbol->string (procedure-name predicate)) | 123 (symbol->string (procedure-name predicate)) |
119 #\?)))) | 124 #\?)))) |
LEFT | RIGHT |