Sunday, November 13, 2016

29. Phasor

A Phasor UGen creates a ramp from 0 to 1. In many ways it is similar to SawOsc.


# chuck29.py - phasor

Phasor phasor

# phasor connected to dac
dac = phasor 

# phasor frequency of 100 Hz
phasor.freq = 100

# Play for 20 ms = 0.02 second (2 periods of 100-Hz)
time(20::ms)

After running from the command line, python createWav.py chuck29, we get this audio file:


No comments:

Post a Comment