Monday, November 14, 2016

34. Gen9

A Gen9 UGen uses Fourier composition of sines and cosines to add inharmonically related frequencies.


For each component, we need the relative frequency, relative amplitude and relative phase.


Here, we have 3 components: first at fundamental with ratio of 1 and phase 0, second at twice fundamental, half amplitude, with 0 phase, and third at three times fundamental, ratio of 1/3, and phase of 90.


We have 2 periods of Gen9 as the phasor, driving it, varies from 0 to 1, for 2 periods.


# chuck34.py - Gen9

Phasor phasor
Gen9 g9

dac = g9
g9 = phasor

g9.coefs = [1.,1.,0., 2.,1./2.,0., 3.,1./3.,90.]

phasor.freq = 100

time(20::ms)

This is the wave, after running python createWav.py chuck34, on command line:


1 comment:

  1. Ukraine is one of the most popular destinations for outsourcing software development. Thus, I would highly recommend checking out this article if you’re looking to assemble your software developers in Ukraine.

    ReplyDelete