// Oscillator with saw, square with pulse width and hard sync – band-limited (PolyBLEP). module osc "Osc" hp 6 { desc de "Oszillator: Sägezahn und Rechteck (Pulsbreite per Regler), V/Oct-Eingang und Hard-Sync – bandbegrenzt, ohne Aliasing." desc en "Oscillator: saw and square (pulse width by knob), V/Oct input and hard sync – band-limited, without aliasing." knob tune "TUNE" -2..2 = 0 unit v tip "Coarse tune (octaves)" knob pw "PW" 0.05..0.95 = 0.5 unit pct in pitch "V/OCT" pitch in sync "SYNC" gate out sw "SAW" audio out sq "SQR" audio process { f = hz(pitch + tune) r = rise(sync) sw = saw(f, r) * AUDIO sq = square(f, pw, r) * AUDIO } }