scamp_extensions.process package

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

Modules:

scamp_extensions.process.generators

Module containing useful generator functions that represent musical processes.

scamp_extensions.process.l_systems

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

scamp_extensions.process.markov

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

Public-Facing API (result of import *):

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.