musicflower.util

Functions

assert_valid_corpus(corpus)

assert_valid_xyz_col(x, y, z, colors)

bezier(t, p)

broadcast_func(func, **kwargs)

get_fourier_component(pcds[, fourier_component])

Compute the amplitude and phase of one or all Fourier components of a real-valued input.

get_time_traces(x, y, z, colors[, n_steps, ...])

Compute n_steps + 1 traces that run from the top of the triangular map to its bottom by interpolating along rows.

iterable_or_repeat(it[, exclude])

main()

remap_to_xyz(amplitude, phase[, ...])

Map a triangular map with amplitudes and phases to 3D space.

repeat_kwargs(kwargs)

show_bezier(p)

start_duration(n)

surface_scape_indices(n[, axis])

Return i, j, k point indices for triangles spanned between points of a triangular map.

tonal_modulo(arr[, axis])

transpose_profiles(profile[, modulo])

Returns two arrays representing the circle of fifth profiles.

trisurf(triangles[, decimals])

Convert a Nx3x3 array of N triangles in 3D space, defined via their corners, into x, y, z coordinate arrays, and i, j, k index arrays as used by Plotly's Mesh3d function.