If my sound is S then how do I get a Nyquist transform that gives me S^2, s^3, etc.

I’m trying to do this to S:

27/16 * (s^3 + 2*s^2 + s)

Trying (mult s s) didn’t seem to give s^2.

How can I go about doing something like this?

If my sound is S then how do I get a Nyquist transform that gives me S^2, s^3, etc.

I’m trying to do this to S:

27/16 * (s^3 + 2*s^2 + s)

Trying (mult s s) didn’t seem to give s^2.

How can I go about doing something like this?

(mult s s) is correct, but note that the sample values are on a scale of +1.0 to -1.0

OK Steve, my bad.

Is there anything simpler for s^3 or am I stuck with something like (mult (mult s s) s)?

Also, I have to get energy values of “frames” (subsections) of s.

Basically summing the square of s’s amplitude of a run of samples in a subsection of s.

Does Nyquist have something for this?

mszlazak:

Is there anything simpler for s^3 or am I stuck with something like (mult (mult s s) s)?

```
(mult s s s)
```

mszlazak:

Also, I have to get energy values of “frames” (subsections) of s.

Basically summing the square of s’s amplitude of a run of samples in a subsection of s.

Does Nyquist have something for this?

I’m not sure exactly what you are after, but perhaps “snd-avg” or “rms” may be useful. ( Nyquist Functions )