:orphan: Max Sender (monophonic) ======================= *Example directory* (scamp): `examples/Playback/MIDI CC & arbitrary parameters/scamp_to_max_monophonic `__ *Download:* :download:`scamp_to_max_monophonic.zip ` Sends monophonic notes with an extra playback parameter over OSC to Max. See the accompanying Max patch, which shows how to receive and route those messages. *Topics:* :doc:`Playback › MIDI CC & arbitrary parameters ` .. code-block:: python from scamp import * from random import random s = Session() maxinst = s.new_osc_part("maxinst", 9000) while True: for p in range(65, 80): maxinst.play_note(p, [0.2, 1.0], 1.0, "param_overdrive:[0, 0.8, 0]") if random() < 0.5: wait(random())