Signal-driven event sequencer
bang | Causes information about the seq~ object's current sequence number, mode of operation (record, overdub, play) and total number of current events to be printed in the Max window. | |
int | input [int] |
Same as | .
float | input [float] |
Same as | .
list | input [list] |
Same as | .
anything | input [list] |
The seq~ object is used to record and play back messages. All events received in the inlet are stored according to the current value of the input signal. Any message can be sequenced except for commands to the seq~ object itself. The example shows a simple way to work around this limitation. Note: seq~ can be used to sequence MIDI data if the MIDI input stream is converted into lists of MIDI events. This conversion is necessary to avoid outputting a corrupted MIDI stream which would occur if only the raw int messages of a MIDI stream were sequenced individually and the seq~ object were not doing a simple forward linear playback. |
add | sequence-name (symbol) start time (float) optional end time (float) and Max-Event (message) [list] |
The word | , followed by an int, a float and a message, inserts a Max event specified by the message at the time specified by the float for the sequence number specified by the int. (e.g., will insert the message to be played at the halfway point of sequence 2.)
clear | The word | , followed by the name of a sequence, erases the sequence. The message erases all current sequences.|
erase | Synonym for | .|
delete | sequence-number (int) time (float) and Max-Event (message) [list] |
The word : delete all the events at time 5 in mysequence. : delete all the events between time 6.5 and 8 in mysequence. : delete only the event explosion wherever it occurs. |
, followed by an symbol that specifies a sequence name, a float and a message, deletes a Max event or events specified by the message at the time specified by the float for the sequence name specified by the symbol. An additional end time may also be specified. Here are some examples:
dump | sequence-number (int) [int] |
Causes the contents of the current stored event sequence to be sent out the right outlet. The word | , followed by a number, outputs only the sequence designated by the number.
play | playback-enable-flag (0 or 1) [int] |
The word seq~ to begin Max event playback of the current sequence (set by the message) at the point of the loop specified by the current value of the signal input. turns off playback. By default, playback is off. | , followed by 1, causes
offset | number-to-offset-sequence-numbering [int] |
The word | followed by a number will offset the numbering of sequences by the specified number.
overdub | overdub-enable-flag (0 or 1) [int] |
The word seq~ to begin Max event recording of the current sequence (set by the message) in "overdub" mode. Recording begins at the current point of the loop and wraps around at the point where the input signal reaches 1, continuing to record as the signal passes its original value. The message turns off overdub mode. | , followed by 1, causes
seq | sequence (int or symbol) [int] |
Performs the same function as | .
seqnum | sequence (int or symbol) [int] |
The word | , followed by a number or symbol, sets the current Max event sequence being recorded or played back.
read | filename [symbol] |
Reads a text file containing Max event sequences created using the seq~ object's message into the memory of the. seq~ object. If no symbol argument appears after the word , a standard open file dialog is opened showing available text files. The word , followed by a symbol, reads the file whose filename corresponds to the symbol into the seq~ object's memory without opening the dialog box. |
record | playback-enable-flag (0 or 1) [int] |
The word seq~ to begin recording events into the current sequence (set by the message) at the point of the loop specified by the current value of the signal input. turns off playback. By default, recording is off. | , followed by 1, causes
signal | An input signal whose output is between 0. and 1.0 (usually the output of a phasor~) is used to drive the event sequencer. | |
symbol | input [symbol] |
Same as | .
write | filename [symbol] |
Saves the contents of all current Max event sequences into a text file. A standard file dialog is opened for naming the file. The word seq~ object. If the patch has not yet been saved, the seq~ file is saved in the same folder as the Max application. | , followed by a symbol, saves the file, using the symbol as the filename, in the same folder as the patch containing the