Max 5 and connecting expr / polynomial to scope tia sal2
Greetings all
I'm trying to combine an expression with scope to view and play the waveform
an equation example I'm using is y(t) = A*sin(b*(x-c))+d I used the expr command expr $f1 * sin ($f2*($f3-$f4))+$f5 and connected it to the scope but nothing came back. I've looked at the examples for scope and expr but MAX 5 doesn't have any examples showing how to to connect a expr to a scope. Can someone point to an example.
PS: What I'm trying to do:
I have several equations using sin, cos and some in polynomial form that I would like to play using max and also see the waveform in realtime.
tia sal2
If you really want to see the Polynomial I'm using here it is but I'm just looking for someone to point me to an example.
0.00154991- 4.01371 x + 1.81197 x^2 + 8.00183 x^3 - 9.3462 x^4 +
4.73714 x^5 - 1.42736 x^6 + 0.283528 x^7 - 0.0385303 x^8 +
0.00357308 x^9 - 0.00021464 x^10 + 6.8596*10^-6 x^11 +
1.35671*10^-8 x^12 - 8.92722*10^-9 x^13 + 1.2415*10^-10 x^14 +
1.0335*10^-11 x^15 - 1.98629*10^-13 x^16 - 1.36176*10^-14 x^17 +
2.29136*10^-16 x^18 + 1.93731*10^-17 x^19 - 2.46711*10^-19 x^20 -
2.79836*10^-20 x^21 + 4.31189*10^-22 x^22 + 3.85075*10^-23 x^23 -
1.69775*10^-24 x^24 + 2.74*10^-26 x^25 - 1.65153*10^-28 x^26
If really want to see an example of the sin / cos equation I'm using here it is but I'm just looking for someone to point me to an example.
0.61887- 0.680232 Cos[0.232711 x] + 2.96293 Cos[0.465421 x] -
0.532024 Cos[0.698132 x] - 0.87105 Cos[0.930842 x] -
0.708467 Cos[1.16355 x] - 0.510603 Cos[1.39626 x] -
0.236222 Cos[1.62897 x] - 0.112403 Cos[1.86168 x] -
0.0682778 Cos[2.0944 x] - 0.0317201 Cos[2.32711 x] -
0.00399665 Cos[2.55982 x] + 0.0110171 Cos[2.79253 x] +
0.0150056 Cos[3.02524 x] + 0.0156793 Cos[3.25795 x] +
0.0122262 Cos[3.49066 x] + 0.00657111 Cos[3.72337 x] +
0.00432201 Cos[3.95608 x] + 0.00341808 Cos[4.18879 x] +
0.00370543 Cos[4.4215 x] + 0.00333083 Cos[4.65421 x] +
0.00210063 Cos[4.88692 x] + 0.00505182 Cos[5.11963 x] +
0.00866377 Cos[5.35234 x] + 0.0110508 Cos[5.58505 x] +
0.0103873 Cos[5.81776 x] + 0.00850073 Cos[6.05047 x] +
0.00811838 Cos[6.28319 x] + 0.00689916 Cos[6.5159 x] +
0.0069005 Cos[6.74861 x] + 0.00596679 Cos[6.98132 x] +
0.00358397 Cos[7.21403 x] + 2.25013 Sin[0.232711 x] -
4.51511 Sin[0.465421 x] + 0.380184 Sin[0.698132 x] +
0.461366 Sin[0.930842 x] + 0.0632479 Sin[1.16355 x] -
0.135095 Sin[1.39626 x] - 0.160692 Sin[1.62897 x] -
0.131694 Sin[1.86168 x] - 0.118779 Sin[2.0944 x] -
0.0966167 Sin[2.32711 x] - 0.0797548 Sin[2.55982 x] -
0.0599806 Sin[2.79253 x] - 0.0380326 Sin[3.02524 x] -
0.0247422 Sin[3.25795 x] - 0.0141664 Sin[3.49066 x] -
0.0078713 Sin[3.72337 x] - 0.0060369 Sin[3.95608 x] -
0.0062354 Sin[4.18879 x] - 0.00650479 Sin[4.4215 x] -
0.00560183 Sin[4.65421 x] - 0.00806245 Sin[4.88692 x] -
0.00982397 Sin[5.11963 x] - 0.00853789 Sin[5.35234 x] -
0.00582364 Sin[5.58505 x] - 0.00249366 Sin[5.81776 x] -
0.00125506 Sin[6.05047 x] - 0.0000310571 Sin[6.28319 x] +
0.000971067 Sin[6.5159 x] + 0.00160663 Sin[6.74861 x] +
0.00321022 Sin[6.98132 x] + 0.00388205 Sin[7.21403 x]
tia
sal2
On 25 avr. 08, at 04:15, sal wrote:
>
> Greetings all
>
> I'm trying to combine an expression with scope to view and play the
> waveform
[scope~] needs a signal. You must compute your function with MSP
objects (note there is no [expr~]), and use a [phasor~] to send 0-1
values to your function.
Hope it helps,
_____________________________
Patrick Delges
Centre de Recherches et de Formation Musicales de Wallonie asbl
http://www.crfmw.be/max
I looked up phasor~ and it doesn't look like it would work
Description
phasor~ is a non-bandlimited sawtooth-waveform signal generator which can be used as an audio signal or a sample-accurate timing/control signal. For 'smoother' sounding sawtooth oscillator, but one which isn't as suitable for timing/control, use the saw~ object.
I'm just looking for a simple example where an equation using expr~ is sent to the scope~ and can be played out of a speaker. Is this not possible? If it's not thats ok I'm just trying to get clarification and if it is just trying to find an example.
tia sal2