Csound Csound-dev Csound-tekno Search About

[Csnd] superformula to sound

Date2018-07-16 21:57
FromRichard
Subject[Csnd] superformula to sound
I just came across this concept of the superformula, to create all sorts 
of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only 
thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how 
would one convert the many possible shapes of the superformula to a time 
domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-07-16 22:26
FromHans and Laurel Mikelson
SubjectRe: [Csnd] superformula to sound
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2018-07-16 23:08
FromRichard
SubjectRe: [Csnd] superformula to sound

Thanks, that is interesting to explore as well.

Richard


On 16/07/18 23:26, Hans and Laurel Mikelson wrote:
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2018-07-16 23:14
FromHans and Laurel Mikelson
SubjectRe: [Csnd] superformula to sound
Hi Richard,

I mean you can translate the polar coordinates something like:

x = r*cos(t)
y = r* sin(t)
  outs x, y

Hans Mikelson

On Jul 16, 2018, at 5:08 PM, Richard <zappfinger@GMAIL.COM> wrote:

Thanks, that is interesting to explore as well.

Richard


On 16/07/18 23:26, Hans and Laurel Mikelson wrote:
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2018-07-16 23:44
FromRichard
SubjectRe: [Csnd] superformula to sound

Yes, I know.
But the superfunction r() is defined as this:

float r(float theta, float a, float b, float m, float n1, float n2, float n3) {
  return (pow(pow(abs(cos(m*theta/4.0)/a), n2) +
    pow(abs(sin(m*theta/4.0)/b), n3), -1.0/n1));
}

as function of theta and the other parameters.
Theta would be similar to t as in sin(t), but r is always positive, so how can I make a time domain signal of this?

Richard



On 17/07/18 00:14, Hans and Laurel Mikelson wrote:
Hi Richard,

I mean you can translate the polar coordinates something like:

x = r*cos(t)
y = r* sin(t)
  outs x, y

Hans Mikelson

On Jul 16, 2018, at 5:08 PM, Richard <zappfinger@GMAIL.COM> wrote:

Thanks, that is interesting to explore as well.

Richard


On 16/07/18 23:26, Hans and Laurel Mikelson wrote:
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2018-07-16 23:47
FromHans and Laurel Mikelson
SubjectRe: [Csnd] superformula to sound
Hi Richard,

In the past I have converted the r value into an x y stereo pair using the standard method to go from polar to cartesian coordinates.  X = r*cos(theta) and Y = r*sin(theta).

Hans Mikelson

On Jul 16, 2018, at 5:44 PM, Richard <zappfinger@GMAIL.COM> wrote:

Yes, I know.
But the superfunction r() is defined as this:

float r(float theta, float a, float b, float m, float n1, float n2, float n3) {
  return (pow(pow(abs(cos(m*theta/4.0)/a), n2) +
    pow(abs(sin(m*theta/4.0)/b), n3), -1.0/n1));
}

as function of theta and the other parameters.
Theta would be similar to t as in sin(t), but r is always positive, so how can I make a time domain signal of this?

Richard



On 17/07/18 00:14, Hans and Laurel Mikelson wrote:
Hi Richard,

I mean you can translate the polar coordinates something like:

x = r*cos(t)
y = r* sin(t)
  outs x, y

Hans Mikelson

On Jul 16, 2018, at 5:08 PM, Richard <zappfinger@GMAIL.COM> wrote:

Thanks, that is interesting to explore as well.

Richard


On 16/07/18 23:26, Hans and Laurel Mikelson wrote:
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2018-07-17 00:05
FromRichard
SubjectRe: [Csnd] superformula to sound

Yes, this seems to work. This opens a can of possibilities....

Richard


On 17/07/18 00:47, Hans and Laurel Mikelson wrote:
Hi Richard,

In the past I have converted the r value into an x y stereo pair using the standard method to go from polar to cartesian coordinates.  X = r*cos(theta) and Y = r*sin(theta).

Hans Mikelson

On Jul 16, 2018, at 5:44 PM, Richard <zappfinger@GMAIL.COM> wrote:

Yes, I know.
But the superfunction r() is defined as this:

float r(float theta, float a, float b, float m, float n1, float n2, float n3) {
  return (pow(pow(abs(cos(m*theta/4.0)/a), n2) +
    pow(abs(sin(m*theta/4.0)/b), n3), -1.0/n1));
}

as function of theta and the other parameters.
Theta would be similar to t as in sin(t), but r is always positive, so how can I make a time domain signal of this?

Richard



On 17/07/18 00:14, Hans and Laurel Mikelson wrote:
Hi Richard,

I mean you can translate the polar coordinates something like:

x = r*cos(t)
y = r* sin(t)
  outs x, y

Hans Mikelson

On Jul 16, 2018, at 5:08 PM, Richard <zappfinger@GMAIL.COM> wrote:

Thanks, that is interesting to explore as well.

Richard


On 16/07/18 23:26, Hans and Laurel Mikelson wrote:
Hi,
You could try something like this:
Hans Mikelson

On Jul 16, 2018, at 3:57 PM, Richard <zappfinger@gmail.com> wrote:

I just came across this concept of the superformula, to create all sorts of graphical figures with 6 parameter only.
It should be possible to apply this to sound as well, I think. The only thing is, the superformula works in polar coordinates.
We know that in polar coordinates a circle represents a sine, so how would one convert the many possible shapes of the superformula to a time domain function?

https://www.youtube.com/watch?v=u6arTXBDYhQ

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here