previous up next
Utility functions



(random)

Returns a random number between 0 and 1.



(midi->hz m)

Converts the midi key number m to a frequency value in Hertz



(mc->hz mc)

Converts mc from midi-cents to Hertz.



(db->amp db)

Converts db from decibels to amplitude.



(new-array length)

Creates a new object array of length length.



(array-set! a e i)

Sets element i of array a to e.



(array-get a i)

Returns the i-th element of array a.



(array-length a)

Returns the length of array a.



(array e1 e2 ...)

Creates a new array with elements e1, e2, ...



(list->array l)

Converts the list l to an array.

previous up next