Greetings All
I'm trying to create a function generator that uses equations (small equations on this one.) and have the audio played and plotted. An example of an equation would be the sine wave equation y=a*sin(f*t+p)+v
a=amplitude, f=frequency, t=time, p=phase, v=vertical offset.
I looked up in the example and found cycle~ which said "table-lookup oscillator or function generator" but not sure where to put the expr~ I would think it would go like this. but of course the syntax must be wrong.
expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 | cycle~
a=$f1=amplitude, f=$f2=frequency, t=$f3=time, p=$f4=phase, v=$f5=vertical offset.
Please note the equations will not just be a simple sinewaves they will have cos, tan, atan, etc but be no more than 4 lines long. I also plan on connecting the $f1,$f2,$f4,$f5 variables to a usb midi controller to vary the values as the audio signal is played in realtime.
aloha Rick --
On Tue, 6 Sep 2011, Rick T wrote:
I looked up in the example and found cycle~ which said "table-lookup oscillator or function generator"
cycle~ is just a Max/MSP-compatible version of osc~.
I would think it would go like this. but of course the syntax must be wrong.
expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 | cycle~
look into tabsend~ and tabwrite~ instead.
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
Thanks I can get tabwrite~ to work but I'm still unsure as of how to wire in the equation to create a custom waveform using expr~ http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.pd pd http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.pd
http://dl.dropbox.com/u/6576402/questions/pd/rtsiggenpic.jpg
expr~ $f1+sin*(($f2*$f3)+$f4)+$f5
a=$f1=amplitude, f=$f2=frequency, t=$f3=time, p=$f4=phase, v=$f5=vertical offset.
Please note the equations will not just be a simple sinewaves they will have cos, tan, atan, I also plan on connecting the $f1,$f2,$f4,$f5 variables to a usb midi controller to vary the values as the audio signal is played in realtime.
Thanks
On Tue, Sep 6, 2011 at 5:46 AM, Mathieu Bouchard matju@artengine.ca wrote:
On Tue, 6 Sep 2011, Rick T wrote:
I looked up in the example and found cycle~ which said "table-lookup
oscillator or function generator"
cycle~ is just a Max/MSP-compatible version of osc~.
I would think it would go like this. but of course the syntax must be
wrong.
expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 | cycle~
look into tabsend~ and tabwrite~ instead.
______________________________**______________________________** ___________ | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC