Hello World =========== *Example script* (scamp): `examples/Tutorial/01_hello_world.py `__ *Download:* :download:`01_hello_world.py ` Plays a C major arpeggio. .. raw:: html
.. code-block:: python # import the scamp namespace from scamp import * # construct a session object s = Session() # add a new violin part to the session violin = s.new_part("Violin") # looping through the MIDI pitches of a C major arpeggio... for pitch in [60, 64, 67, 72]: # play each pitch sequentially, with volume 1 (full volume), and duration of half a beat violin.play_note(pitch, 1, 0.5)