PORTRAIT DETECTED

Please rotate your device to landscape for the Cinematic Academy.

COSMIC SYMPHONY

Free Performance

PYTHONIC MUSIC API

Write code, not sheet music. The engine's built-in theory module handles the math.

API REFERENCE

Functions

  • play_note(note, duration)
    Plays a single specific note.
  • play_chord(root, type, duration, octave)
    Plays a full chord simultaneously.
  • arpeggiate(root, type, duration, times, octave)
    Plays the chord notes sequentially.
  • random_gen(root, type, duration, count, octave)
    Plays random notes from the scale.
  • rest(duration)
    Adds silence to the timeline.
  • # Use # for comments to ignore a line.

Parameters

  • note: 'E5', 'C#4', etc.
  • root: 'C', 'C#', 'D', 'Eb', 'E', etc.
  • type: 'major', 'minor', 'minor7', 'major7', 'diminished', 'pentatonic', 'blues'
  • duration: '1n' (whole), '2n' (half), '4n' (quarter), '8n', '16n'
  • octave: 2 (bass), 3, 4 (mid), 5 (treble). Default is 4.
𝄞
---
System Ready