Page 1 of 1
Generate sound waves
Posted: Fri Jan 01, 2021 11:57 am
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
Re: Generate sound waves
Posted: Fri Jan 01, 2021 7:13 pm
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
Re: Generate sound waves
Posted: Fri Jan 01, 2021 9:09 pm
by AUGE_OHR
hi,
you can use WinAMP or WMP , over ActiveX, which have some "visualization" like your "Sound Wave"
Re: Generate sound waves
Posted: Fri Jan 01, 2021 9:35 pm
by franco
Could we add music to this video ?, like play from a folder with music files in it.
Re: Generate sound waves
Posted: Sat Jan 02, 2021 1:37 am
by andyglezl
Puedes probar con esto...
*-------------------------------------
You can try this ...
https://www.hmgforum.com/viewtopic.php? ... afa#p46263
Re: Generate sound waves
Posted: Sat Jan 02, 2021 2:39 am
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)
Re: Generate sound waves
Posted: Sat Jan 02, 2021 6:31 pm
by franco
Thanks Guys,
I will try
Re: Generate sound waves
Posted: Sun Jan 03, 2021 12:47 pm
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.
Re: Generate sound waves
Posted: Sun Jan 03, 2021 3:25 pm
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
Re: Generate sound waves
Posted: Tue Jan 05, 2021 1:20 pm
by serge_girard
Thanks Jimmy !