Generate sound waves

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Generate sound waves

Post by serge_girard »

Anybody knows if it is possible to generate soundwaves with Harbour/HMG?

A bit like https://www.youtube.com/watch?v=voiwM7SZ6pI

Input some MP3 file and output some ACTIVEX ?

Serge
There's nothing you can do that can't be done...
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Generate sound waves

Post by andyglezl »

Hola Serge
Yo lo simulo con un Gif, te refieres a esto ?
*----------------------------------------------------------
Hi Serge
I simulate it with a Gif, you mean this?

Code: Select all

#include "hmg.ch"

FUNCTION MAIN()
	DEFINE WINDOW Form_Gif1 AT 0 , 0 WIDTH 580 HEIGHT 580 MAIN BACKCOLOR { 000, 023, 052 } 
		_DefineActivex('PagGif', "Form_Gif1", 0, 20, 530, 530, "shell.explorer" )
		oGif := GetProperty( "Form_Gif1", 'PagGif', 'Object')
		oGif:Navigate( HB_CurDrive()+':\'+CurDir()+'\'+"Bocina.gif" )
	END WINDOW
	CENTER WINDOW Form_Gif1
    ACTIVATE WINDOW Form_Gif1
RETURN NIL

Sound.zip
(304.22 KiB) Downloaded 87 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Generate sound waves

Post by AUGE_OHR »

hi,

you can use WinAMP or WMP , over ActiveX, which have some "visualization" like your "Sound Wave"
have fun
Jimmy
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Generate sound waves

Post by franco »

Could we add music to this video ?, like play from a folder with music files in it.
All The Best,
Franco
Canada
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Generate sound waves

Post by andyglezl »

Puedes probar con esto...
*-------------------------------------
You can try this ...


https://www.hmgforum.com/viewtopic.php? ... afa#p46263
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Generate sound waves

Post by AUGE_OHR »

hi,
franco wrote: Fri Jan 01, 2021 9:35 pm Could we add music to this video ?, like play from a folder with music files in it.
YES ... but you need right CODEC to play Video

i use FFshow https://sourceforge.net/projects/ffdshow-tryout/

as we have DWM since Windows 7 you need to "override" WMP DRM setting to use "Directshow" (no Copy Protection)
have fun
Jimmy
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Generate sound waves

Post by franco »

Thanks Guys,
I will try
All The Best,
Franco
Canada
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Generate sound waves

Post by serge_girard »

What I mean is this: I make/create some sounds/music and save it as MP3. Then on top of it I would like as animation a SoundWave (like WinAMP or WMP) but saving the images as MP4 or MOV. Afterwards mix the MP3+4 into one file movie film for YouTube or something..

See my youtube channel: https://www.youtube.com/watch?v=5FWEOqd1V_U

The sounds a collage and the images come from HMF program, recorderd with screenrecorder, clumsy but it works but far from perfect.
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Generate sound waves

Post by AUGE_OHR »

hi,

how "exact" must Sound and Animation work :?:

i have look at your Sample and it seems you like Color :)
have a look at my "Delaunay-Triangulation" for harbour. it can create a lot of "mathematic Color Graphics"

---

i do use Windows 10 "Game-Bar" to "record" TV from Internet with Full-HD ... ;)
you also can "record" Desktop so run your "Animation" in Full-Screen to "record"

later i use my WMPlayer / Cutter (both Xbase++) and AVIsynth as "Frame-Server"
https://sourceforge.net/projects/avisynth2/

it work with Script and have a lot of "Filter & Effect".
you can "mix" Audio / Video with different Bit-Rate / Format

many Video Player, using Directshow, can play *.AVS
also most Encoder accept *.AVS to generate "full" Video
have fun
Jimmy
User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Generate sound waves

Post by serge_girard »

Thanks Jimmy !
There's nothing you can do that can't be done...
Post Reply