scamp_extensions.process package

Subpackage containing tools for modeling a compositional process, such as Markov chains and L-Systems.

Modules:

fibonacci([seed_values])

A simple fibonacci generator function

generators

Module containing useful generator functions that represent musical processes.

l_systems

Module containing the LSystem class, a simple implementation of a Lindenmayer system.

markov

Module containing the MarkovModel and MarkovIterator classes for analyzing and resynthesizing a sequence based on Markov analysis.

Public-Facing API (result of import *):

all_fibonacci_cycles(modulo[, return_pairs])

For a given modulo, get a list of all possible cycles using the fibonacci recurrence relation.

fibonacci([seed_values])

A simple fibonacci generator function

fibonacci_cycle(modulo[, seed, num_cycles, ...])

Gets the cycle of fibonacci (or related) numbers with the given modulo and pair of seed values.

non_repeating_shuffle(input_list[, ...])

Returns a generator that randomly selects items from the input list, avoiding repeat selections.

random_walk(start_value[, step, ...])

Returns a generator starting on start_value that randomly walks between clamp_min and clamp_max, using a step size of step, and turning around with probability turn_around_chance

LSystem(seed_string, production_rules[, ...])

Simple implementation of an LSystem.

MarkovIterator(markov_model, order[, ...])

Iterator that returns generated values from the given MarkovModel.

MarkovModel([data, max_order, cyclic])

A Markov analysis-synthesis tool that analyzes the given data, and can generate new data based on the same statistical patterns.