Recent

Author Topic: The sound of the universe;)  (Read 12210 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #45 on: November 05, 2020, 10:43:43 pm »

Sorry but I dont understand.


The question was supposed to be: Can instead of this sound generated by UOS,  can be played the sound from a file e.g. .WAV?

Yes, of course, you may even play it from a memory stream.

And you may change the pitch or the tempo or the frequencies.

But I dont really see why it should be better than create you own sine-wave with the frequencies you want.

Quote
* The piano hammers the strings, the harpsicord picks them
Yes, that is the greatest difference.

Quote
* The number of strings per tone is doubled in piano. Thus the piano needs a metal frame. The harpsicord has a wooden one.
Hum, not all, I did play on a old Pleyel Piano Forte and the harp was in wood (and detune all the time, you have to re-tune it continually).

Imho, it is Steinway that introduced the metal harp.
« Last Edit: November 05, 2020, 10:52:19 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: The sound of the universe;)
« Reply #46 on: November 05, 2020, 11:07:26 pm »

Imho, it is Steinway that introduced the metal harp.

Steinway brought it into the form which we use it until today. And he made it famous.
Around > 1850. But there were other guys which experimented with metal frame before Steinway.

Btw: Steinway is Steinweg from Seesen near Hamburg.
Emigrated 1850 to USA.

Winni
« Last Edit: November 05, 2020, 11:09:38 pm by winni »

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #47 on: November 05, 2020, 11:31:43 pm »

Imho, it is Steinway that introduced the metal harp.

Steinway brought it into the form which we use it until today. And he made it famous.
Around > 1850. But there were other guys which experimented with metal frame before Steinway.

Btw: Steinway is Steinweg from Seesen near Hamburg.
Emigrated 1850 to USA.

Winni

Yes and all that to say that I seriously think to add your Wave-Type (that you have done in ALSA_sound) in uos.
Till now uos_AddFromSynth() generate only sine-waves (not square nor teeth).
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: The sound of the universe;)
« Reply #48 on: November 06, 2020, 12:50:26 am »

Yes and all that to say that I seriously think to add your Wave-Type (that you have done in ALSA_sound) in uos.
Till now uos_AddFromSynth() generate only sine-waves (not square nor teeth).

Hi Fred!

Wavetypes are no secret. Add my code to uos.
Even Wikipedias knows about them : https://en.wikipedia.org/wiki/Square_wave
The article is poor but the diagram of waveforms is nice.

And save time: don't try to create triangle waves.
They sound nearly like sinus waves.
As one can see already in the diagramm.

Winni

PS Steinway has still a factory in Hamburg



Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #49 on: November 06, 2020, 01:04:50 am »

Yes and all that to say that I seriously think to add your Wave-Type (that you have done in ALSA_sound) in uos.
Till now uos_AddFromSynth() generate only sine-waves (not square nor teeth).

Hi Fred!

Wavetypes are no secret. Add my code to uos.
Even Wikipedias knows about them : https://en.wikipedia.org/wiki/Square_wave
The article is poor but the diagram of waveforms is nice.

And save time: don't try to create triangle waves.
They sound nearly like sinus waves.
As one can see already in the diagramm.

Winni


Thanks!

Quote
PS Steinway has still a factory in Hamburg

Yes I know... (I may not tell you all my secrets...)

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: The sound of the universe;)
« Reply #50 on: November 06, 2020, 01:38:05 am »

But there is something that puzzle me.

Imho, sound needs a support to transmit the wave, like a gaz or a liquid or solid, so how to get noise in space where there is only nearly vacuum?

Are you shure there is only vacuum???

Until 1860 they were shure that there is Luminiferous aether.
Which transmited everything. Light. Gravitation.

Then Maxwell came with his equations and made  the physicist unshure.
And ~ 1880 Morley and Michelson made their genious experiment which ruined the aether.
And opened the way to Einstein's theories.

There are times when the physicist are shure.
And there are times when they ran into trouble. Like today.
Black matter and energy are the aether of our days.
And nearly every week they find a planet which does not obey their nice theories.

And if they don't find a way out they compute in the 23rd dimension.

Every generation has it physical theories. And believes in them.
But now we are waiting since decades that the problems are solved.

But they fiddle around with the quantum computer.
Which break a lot of physical laws.
Like highest speed = light speed.

It would be helpful if they knew  that they know nothing.

Winni

« Last Edit: November 06, 2020, 01:52:12 am by winni »

jamie

  • Hero Member
  • *****
  • Posts: 7842
Re: The sound of the universe;)
« Reply #51 on: November 07, 2020, 05:36:48 pm »
after monitoring this thread I've looked into making a little toy app using the ACS audio controls and scan images to generate noise, tones etc

I'll posted it here for public hackery and belligerent commentary.
The only true wisdom is knowing you know nothing

avk

  • Hero Member
  • *****
  • Posts: 833
Re: The sound of the universe;)
« Reply #52 on: November 07, 2020, 06:23:52 pm »
The best version of "Toccata and Fugue in d minor" I heard and saw at the last tour of The Nice from Keith Emerson (later: Emerson, Lake & Palmer).
As for me - https://www.youtube.com/watch?v=wqgQ7IYhvRg.
But, IIRC, toccata and fugue D-moll is a piece for one instrument and one performer. 
So how many cops does it take to screw in a light bulb?

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: The sound of the universe;)
« Reply #53 on: November 08, 2020, 12:44:29 am »
Hi!

Back to the Sound of the Universe.
I've read the Nasa paper carefully.
And started a project.

The sound machine I have "stolen" from blaazen's portaudio demo:
https://forum.lazarus.freepascal.org/index.php/topic,19705.msg112478.html#msg112478

Thanx blaazen!

I reduced blaazen's demo only the necessary Trackbars remaining: volume and stereo balance.

The conversion of the image to sound I did with the help of BGRAbitmap because using Image.Canvas.pixels is awful slow.

You are warned: strange noise. I am not a sound designer.
I just wanted to know how it works.

Project & screenshot in attachment

Winni



Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #54 on: November 08, 2020, 01:06:39 am »

Project & screenshot in attachment

Winni

And the winner is...

WINNI WOW.

This one, I admit, your are the King (but Blaazen is already Emperor).
And please, put it to your GitHub site, If you dont have one, I will help to do it, it is fast and easy and free.

Fre;D

[EDIT]

@ Blaazen:
Quote
Also there's a simple stereo effect based on 1% difference in frequency of left and right channel.

Excellent, I forgot this one, very good effect, and a so little difference of 1% changes everything.

« Last Edit: November 08, 2020, 02:36:20 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #55 on: November 08, 2020, 01:25:03 am »
@Winni.

I did test your demo: impressive.
Also not only for the universe but for each kind of image it is interesting too.

Maybe find other algorithm than those from the NASA, ...
I think Google has plan to do image recognition, but yes, you understand the trick.

Well done.

Fre;d
« Last Edit: November 08, 2020, 01:26:38 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mpknap

  • Full Member
  • ***
  • Posts: 155
Re: The sound of the universe;)
« Reply #56 on: November 08, 2020, 12:40:36 pm »
Hi!

Back to the Sound of the Universe.
I've read the Nasa paper carefully.
And started a project.

The sound machine I have "stolen" from blaazen's portaudio demo:
https://forum.lazarus.freepascal.org/index.php/topic,19705.msg112478.html#msg112478

Thanx blaazen!

I reduced blaazen's demo only the necessary Trackbars remaining: volume and stereo balance.

The conversion of the image to sound I did with the help of BGRAbitmap because using Image.Canvas.pixels is awful slow.

You are warned: strange noise. I am not a sound designer.
I just wanted to know how it works.

Project & screenshot in attachment

Winni
I can't run on Windows 10.
The error is shown as in the attachment.

And the generated EXE project says that Portaudio.dll is missing
« Last Edit: November 08, 2020, 01:01:41 pm by mpknap »

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: The sound of the universe;)
« Reply #57 on: November 08, 2020, 01:06:31 pm »

I can't run in Windows 10. The program reports missing Portaudio.dll


Hi!

Sorry  - the portaudio system has to be installed on your system.
I forgot it because on my Linux system it is installed by default.

You can download it from here:
http://portaudio.com/download.html

Winni

Fred vS

  • Hero Member
  • *****
  • Posts: 3952
    • StrumPract is the musicians best friend
Re: The sound of the universe;)
« Reply #58 on: November 08, 2020, 01:07:38 pm »
Quote
And the generated EXE project says that Portaudio.dll is missing

Hello.

Included in attacxhment Portaudio.dll 32 and 64 bit.

Just paste it in your system directory.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mpknap

  • Full Member
  • ***
  • Posts: 155
Re: The sound of the universe;)
« Reply #59 on: November 08, 2020, 01:47:37 pm »
Quote
And the generated EXE project says that Portaudio.dll is missing

Hello.

Included in attacxhment Portaudio.dll 32 and 64 bit.

Just paste it in your system directory.
Work perfect! Thanks.
:)

 

TinyPortal © 2005-2018