soundscrape

A programmatic framework for modular synthesis:
Scheme in the front, C in the back!
< | ^ | > | :>

Overview

This module implements some miscellaneous useful procedures.

Usage

@ module var
[Special Form]
(@ (FOO BAR ...) VAR)

Access a binding exported by module `(FOO BAR ...)'.
@@ module var
[Special Form]

(@ (FOO BAR ...) VAR)

Access a binding private to module `(FOO BAR ...)'. Should be used only for debugging purposes.

define-class-with-docs name supers docs . slots
[Special Form]

Define a class with documentation.

define-generic-with-docs name documentation
[Special Form]

Define a generic function with documentation.

define-with-docs sym docs val
[Special Form]

Define a variable with documentation.

let-keywords REST-ARG ALLOW-OTHER-KEYS? BINDINGS . BODY
[Special Form]

[undocumented]

let-optional REST-ARG BINDINGS . BODY
[Special Form]

[undocumented]

let-positional-keywords REST-ARG BINDINGS . BODY
[Special Form]

Like let-keywords, but also allows positional arguments.

any-length l
[Function]

If l is a list, return its length. Otherwise return 1.

append-uniq l1 l2
[Function]

Appends l1 and l2, then removes duplicate items.

build-path . args
[Function]

Builds a path from elements in args, ignoring those equal to "".

class-is-a? class parent
[Function]

#t if class is descended from parent.

errorf str . args
[Function]

Throw an error as a formatted string.

file-size f
[Function]

Returns the size of a file f.

find-data-file filename
[Function]

Find a soundscrape data file.

find-help-file filename
[Function]

Find a soundscrape help file.

find-package-file installed-path uninstalled-path filename
[Function]

Find a soundscrape file filename. First look in installed-path, then uninstalled-path, otherwise throwing an error.

if-empty string default
[Function]

Return string, unless it is equal to "", in which case return default.

keyword->string keyword
[Function]

Convert keyword to a string.

list-join l infix
[Function]

Infixes infix into list l.

read-file f
[Function]

Returns the contents of a file f as a string.

string->keyword string
[Function]

Convert string to a keyword.

texinfo-escape str
[Function]

Escapes any illegal texinfo characters (currently {, }, and @).

until pred? list
[Function]

Returns the first elements of list for which pred? is false.

wrapping-ref l n
[Function]

If l is a scalar, return it directly. Otherwise if it is a list, reference the nth element, modulo the length of the list.

wrapping-zip . args
[Function]

Zips together the lists passed as args. Returns a list as long as the longest list in args. Each element N of the return value is a list of the Nth elements of each list in args. The reference is made with wrapping-ref (see soundscrape-util-wrapping-ref).

< | ^ | > | :>