[Csnd] Approximating a train's electric motor

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Approximating a train's electric motor

Jeanette C.
Hey hey,
for a project, I would like to mode or better approximate the basic sound of
an electric motor, as found in regional trains. Here's an example on youtube:
https://www.youtube.com/watch?v=0Qf-3P4mALA
This particular motor has certain frequency jumps in its early phase, which
don't concern me. But would you have any practical ideas of
simulating/approximating this?

I thought of simple sine waves, but short experiments proved very meagre.

Best wishes and thanks,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

rorywalsh
Hi Jeanette, you might want to check out Andy Farnell's designing sound book. He has a few examples of motors that might help. Although the examples are in Pd, they shouldn't be too tricky to convert to Csound. 

On Tue 11 Sep 2018, 21:01 Jeanette C., <[hidden email]> wrote:
Hey hey,
for a project, I would like to mode or better approximate the basic sound of
an electric motor, as found in regional trains. Here's an example on youtube:
https://www.youtube.com/watch?v=0Qf-3P4mALA
This particular motor has certain frequency jumps in its early phase, which
don't concern me. But would you have any practical ideas of
simulating/approximating this?

I thought of simple sine waves, but short experiments proved very meagre.

Best wishes and thanks,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Jeanette C.
Sep 11 2018, Rory Walsh has written:

> Hi Jeanette, you might want to check out Andy Farnell's designing sound
> book.
Would that be available in electronic form?
> He has a few examples of motors that might help. Although the
> examples are in Pd, they shouldn't be too tricky to convert to Csound.
Hm, I have found it difficult to translate PD source code into Csound,
not being able to see the graphical representation of said code. That
tells you how bad a programmer I am. :(

I have come across this book more than once and I'm interested in it. It
sounds fascinating, but I am afraid - as mentioned - that I wouldn't be
able to gain many practical knowledge from it, withouth outside
assistence.

Best wishes and thank you,

Jeanette
...

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

rorywalsh
I feel quite stupid now! I should have realised it would be a difficult task for you. 

I did try to rework one of his small electric motor examples. I'll dig it up and send it on. Probably be tomorrow before I have a chance to look for it though. 

On Tue 11 Sep 2018, 21:16 Jeanette C., <[hidden email]> wrote:
Sep 11 2018, Rory Walsh has written:

> Hi Jeanette, you might want to check out Andy Farnell's designing sound
> book.
Would that be available in electronic form?
> He has a few examples of motors that might help. Although the
> examples are in Pd, they shouldn't be too tricky to convert to Csound.
Hm, I have found it difficult to translate PD source code into Csound,
not being able to see the graphical representation of said code. That
tells you how bad a programmer I am. :(

I have come across this book more than once and I'm interested in it. It
sounds fascinating, but I am afraid - as mentioned - that I wouldn't be
able to gain many practical knowledge from it, withouth outside
assistence.

Best wishes and thank you,

Jeanette
...

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Jeanette C.
Sep 11 2018, Rory Walsh has written:

> I feel quite stupid now!
...
No need. Depending on OS and used software at least the book reading can
vary between quite easy and almost impossible. As for PD, well it does
at least have almost readable code.

Best wishes and I'm looking forward to your reworked example,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

rorywalsh
The example I've attached probably won't be much good at all as it tries to emulate a small electric drill rather than a 2000 ton metal train! I'm not sure the Farnell book is available as an e-book, but he does go through the implementations in good detail, although there's no train. Just a few helicopters and jet engine, which might change the dynamic of your piece quite a bit!   

On 11 September 2018 at 21:33, Jeanette C. <[hidden email]> wrote:
Sep 11 2018, Rory Walsh has written:

I feel quite stupid now!
...
No need. Depending on OS and used software at least the book reading can
vary between quite easy and almost impossible. As for PD, well it does
at least have almost readable code.

Best wishes and I'm looking forward to your reworked example,

Jeanette


--
 * Website: http://juliencoder.de - for summer is a state of sound
 * SoundCloud: https://soundcloud.com/jeanette_c
 * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
 * GitHub: https://github.com/jeanette-c
 * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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 [hidden email] 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

motor.csd (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

rorywalsh
Btw, I just had a listen to the sample you posted. It sounds to me like there are some tones moving in contrary motion, something which you can get with a simple AM instrument. 


giWave ftgen 1, 0, 4096, 10, 1, .5

instr 1
k1 line 500, p3, 800
aMod oscili .2, 500, giWave
a1 oscil .5+aMod, k1
outs a1, a1
endin

schedule(1, 0, 6, 100)




On 11 September 2018 at 23:13, Rory Walsh <[hidden email]> wrote:
The example I've attached probably won't be much good at all as it tries to emulate a small electric drill rather than a 2000 ton metal train! I'm not sure the Farnell book is available as an e-book, but he does go through the implementations in good detail, although there's no train. Just a few helicopters and jet engine, which might change the dynamic of your piece quite a bit!   

On 11 September 2018 at 21:33, Jeanette C. <[hidden email]> wrote:
Sep 11 2018, Rory Walsh has written:

I feel quite stupid now!
...
No need. Depending on OS and used software at least the book reading can
vary between quite easy and almost impossible. As for PD, well it does
at least have almost readable code.

Best wishes and I'm looking forward to your reworked example,

Jeanette


--
 * Website: http://juliencoder.de - for summer is a state of sound
 * SoundCloud: https://soundcloud.com/jeanette_c
 * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
 * GitHub: https://github.com/jeanette-c
 * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Jeanette C.
Hi Rory,
thank you for both your CSD and the suggestion for the AM. I already tried
that, but maybe I gave up too quickly. Thinking further about it, a little
room/delay might increase the realism...

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Steven Yi
A number of the examples from the Designing Sound book have been
translated to SuperCollider:

https://en.wikibooks.org/wiki/Designing_Sound_in_SuperCollider

which could be useful. (Not sure if you use SC3 at all Jeanette.)
On Tue, Sep 11, 2018 at 6:37 PM Jeanette C. <[hidden email]> wrote:

>
> Hi Rory,
> thank you for both your CSD and the suggestion for the AM. I already tried
> that, but maybe I gave up too quickly. Thinking further about it, a little
> room/delay might increase the realism...
>
> Best wishes,
>
> Jeanette
>
> --
>   * Website: http://juliencoder.de - for summer is a state of sound
>   * SoundCloud: https://soundcloud.com/jeanette_c
>   * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
>   * GitHub: https://github.com/jeanette-c
>   * Twitter: https://twitter.com/jeanette_c_s
>
> I'm not that innocent... <3
> (Britney Spears)
>
> Csound mailing list
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Jeanette C.
Sep 12 2018, Steven Yi has written:

> A number of the examples from the Designing Sound book have been
> translated to SuperCollider:
>
> https://en.wikibooks.org/wiki/Designing_Sound_in_SuperCollider
>
> which could be useful. (Not sure if you use SC3 at all Jeanette.)
I don't, but I dabbled in it and found it much tamer than PD. :) Thanks
for that tip!
...

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Approximating a train's electric motor

Anton Kholomiov
Thanks Rory and Steven!

It's very encouraging to see how you help to Jeanette!
And this episode brings some new thought for the mind.
As for me being Csound fan, many of my fellow musicians
just say "man can you just go and grab ableton with massive and serum
it's way easier to do the stuff".

but this episode helps us to recognize that text-based tools like SC or Csound
are not only for IT-geeks, they can really be the only way to help certain people
to express their musical ideas! Not being best for the masses doesn't mean not
being useful or even magical :)

Some new things to appreciate and be aware of using Csound!



ср, 12 сент. 2018 г. в 2:12, Jeanette C. <[hidden email]>:
Sep 12 2018, Steven Yi has written:

> A number of the examples from the Designing Sound book have been
> translated to SuperCollider:
>
> https://en.wikibooks.org/wiki/Designing_Sound_in_SuperCollider
>
> which could be useful. (Not sure if you use SC3 at all Jeanette.)
I don't, but I dabbled in it and found it much tamer than PD. :) Thanks
for that tip!
...

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * GitHub: https://github.com/jeanette-c
  * Twitter: https://twitter.com/jeanette_c_s

I'm not that innocent... <3
(Britney Spears)

Csound mailing list
[hidden email]
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 [hidden email] 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