Functions

/Users/garethloy/Musimathics/Musimat1.2/include/Row.h File Reference

Functions for manipulating Lists as musical rows. More...

#include "Musimat.h"

Go to the source code of this file.

Functions

template<class Type >
Type Reference Rotate (Type Reference f, Integer n)
 Rotate the elements of a List.
template<class Type1 , class Type2 >
Type1 Transpose (Type1 L, Type2 t, Type2 lim)
 Transpose the elements of a List.
PitchList Transpose (PitchList L, Integer t)
 Transpose the elements of a PitchList.
template<class Type1 , class Type2 >
Type1 Invert (Type1 L, Type2 lim)
 Invert a List.
PitchList Invert (PitchList L, Integer lim=12)
 Invert a PitchList.
template<class Type >
Type Reference Retrograde (Type Reference L)
 Retrograde a List.
template<class MatrixType , class ListType >
MatrixType SetComplex (ListType prime)
 Create a set class (matrix) from a List.
template<class ElementType , class ListType >
ElementType cycle (ListType L, Integer Reference pos, Integer inc)
 Traverse cyclicly through a List.
template<class ElementType , class ListType >
ElementType palindrome (ListType L, Integer Reference pos, Integer Reference inc)
 Traverse a List palindromically.
template<class ElementType , class ListType >
ElementType permute (ListType L, Integer Reference pos, Integer Reference count, Integer inc)
 Permute a List.
Integer InterpTendency (Real f, IntegerList L1, Integer Reference pos1, IntegerList L2, Integer Reference pos2, Integer inc)
 Interpolation tendency.
Pitch LinearInterpolate (Pitch x, Pitch xMin, Pitch xMax, Pitch yMin, Pitch yMax)
 Linear interpolation in Pitch space.
template<class ElementType , class ListType >
ListType stretch (ListType L, ElementType xMin, ElementType xMax, ElementType yMin, ElementType yMax)
 Use linear interpolation to map an entire function to a different range.
template<class ListType >
ListType RandomRow (Integer N)
 RandomRow.
template<class ElementType , class ListType >
Void swap (ListType Reference L, Integer from, Integer to)
 Swap two elements in a List.
template<class ElementType , class ListType >
ListType shuffle (ListType L)
 Perform swap() operation on every element of List, thereby shuffling it.
template<class ElementType , class ListType >
ElementType randTendency (ListType L1, Integer Reference pos1, ListType L2, Integer Reference pos2, Integer inc)
 Use a row to specify an upper boundary and another row to specify a lower boundary, and then pick a pitch in this range.

Detailed Description

Functions for manipulating Lists as musical rows.

Definition in file Row.h.