Skip to content

For more information about the examples, such as how the Python and Mojo files interact with each other, see the Examples Overview

ParallelGraphs2

MMMAudio can run multiple graphs in parallel, each in its own process and very likely on a different CPU core.

Python Code

from mmm_python import *

mmm_audio = MMMAudio(128, graph_name="ManyOscillators", package_name="examples")
mmm_audio.start_audio()

mmm_audio2 = MMMAudio(128, graph_name="MoogPops", package_name="examples")
mmm_audio2.start_audio() 

mmm_audio3 = MMMAudio(2048, graph_name="PaulStretch", package_name="examples")
mmm_audio3.start_audio()

mmm_audio.send_int("num_pairs", 30)

mmm_audio3.send_float("dur_mult", 200)

Mojo Code