Skip to content

Reference library > Sequencing > Sequence

Sequence

Sequence(sequence=std::vector<float> ( ), clock=None)

Outputs the elements in sequence, incrementing position on each clock.

Examples

#-------------------------------------------------------------------------------
# Creating a sequence using the MIDI note values of a C Major scale, starting on
# middle C.
#-------------------------------------------------------------------------------
clock = Impulse(2.0)
sequence = Sequence([ 60, 62, 64, 65, 67, 69, 71, 72 ], clock)
frequency = MidiNoteToFrequency(sequence)
oscillator = TriangleOscillator(frequency)
oscillator.play()

Last update: 2024-02-02
Created: 2023-12-03