Max Sender (polyphonic)

Example directory (scamp): examples/Playback/MIDI CC & arbitrary parameters/scamp_to_max_polyphonic

Download: scamp_to_max_polyphonic.zip

Sends overlapping glissando notes over OSC to Max. See the accompanying Max patch, which receives and routes those messages using a poly object.

Topics: Playback › MIDI CC & arbitrary parameters

from scamp import *
import random
s = Session()

maxinst = s.new_osc_part("maxinst", 9000)

while True:
    maxinst.play_note(
        [random.uniform(60, 80), random.uniform(60, 80)],
        [0.2, 1.0],
        5.0,
        "param_overdrive:[0, 0.8, 0]",
        blocking=False
    )
    wait(random.uniform(0, 5))