:orphan: Note Graph ========== *Example script* (scamp_extensions): `examples/Notation & engraving/Other/note_graph_example.py `__ *Download:* :download:`note_graph_example.zip ` **Requires the** ``scamp_extensions`` **package** (``pip install scamp_extensions``). Renders a saved Performance two ways: as graphic notation via PartNoteGraph (note height = pitch, width = volume, color = vibrato frequency), and as a traditional quantized score. *Topics:* :doc:`Notation & engraving › Other ` .. raw:: html
.. raw:: html
Rendered as graphic notation with height=pitch, volume=width, & color=vibrato frequency
score
.. raw:: html
Traditional Score
score
.. code-block:: python from scamp import * from scamp_extensions.engraving import PartNoteGraph performance = Performance.load_from_json("sinesPerformance.json") # Graphic notation PartNoteGraph(performance.parts[0], width_range=(0.5, 9), color_parameter="vibFreq", color_parameter_range=(0, 15)).render_to_file("note_graph_example.svg", (7000, 800)) # Traditional score engraving_settings.max_voices_per_staff = 1 performance.to_score(max_divisor=6, simplicity_preference=3, title="Traditional Score").show()