# Welcome to the Music21 Interactive REPL!
#
# This is a fully interactive Python environment with music21 preloaded.
# You can write any Python code here and execute it with Shift+Enter or the Run button.
#
# Try some basic music21 examples:
from music21 import note, chord, scale, stream
# Create a simple note
n = note.Note("C4")
print(f"Note: {n.name} (octave {n.octave})")
# Create a chord
c = chord.Chord(["C4", "E4", "G4"])
print(f"Chord: {c.commonName}")
# Create a scale
s = scale.MajorScale("C")
print(f"C Major scale: {[n.name for n in s.pitches]}")