Note Graph

Example script (scamp_extensions): examples/Notation & engraving/Other/note_graph_example.py

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: Notation & engraving › Other

Rendered as graphic notation with height=pitch, volume=width, & color=vibrato frequency
score
Traditional Score
score
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()