Recent

Author Topic: Draw Audio envelope  (Read 1969 times)

mgayo

  • New Member
  • *
  • Posts: 17
Draw Audio envelope
« on: May 11, 2020, 02:10:58 am »
I am developing an application with PasLibVLC in Windows and I need to show the audio signal envelope.
It would be enough for me to go through the content and get the level of the signal in each instant and then I would draw it.
How can I get it?
Thanks

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Draw Audio envelope
« Reply #1 on: May 12, 2020, 03:13:15 pm »
Hello.

I dont know if it is possible to do it with PasLibVLC.

With uos (https://github.com/fredvs/uos), there is the "SimplePlayer.lpi" demo with view meters, "WaveForm.lpi" demo with graphic representation of the sound-wave.

For spectrum-frequencies you may take a look at source of https://github.com/fredvs/strumpract , it uses uos.
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

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Draw Audio envelope
« Reply #2 on: May 12, 2020, 03:55:12 pm »
@FredvS
Unrelated ... but ... that is nice software !

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Draw Audio envelope
« Reply #3 on: May 12, 2020, 05:17:25 pm »
@DonAlfredo:

Quote
Unrelated

Yes, I know, sorry, but I fear that a easy solution will be difficult to find for libvlc:

https://stackoverflow.com/questions/38142267/audio-metering-with-libvlc

Quote
but ... that is nice software !

VLC?  Yes, of course, one of my favorite.



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

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Draw Audio envelope
« Reply #4 on: May 12, 2020, 05:24:21 pm »
It was my own reply that was unrelated. I had a look at your software. And it looked good.
So, just a compliment in disguise it seems ...  :D

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Draw Audio envelope
« Reply #5 on: May 12, 2020, 05:27:50 pm »
Ho,  :-[

Thanks DonAlfredo.

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

mgayo

  • New Member
  • *
  • Posts: 17
Re: Draw Audio envelope
« Reply #6 on: May 13, 2020, 12:58:13 am »
I dont know if it is possible to do it with PasLibVLC.

With uos (https://github.com/fredvs/uos), there is the "SimplePlayer.lpi" demo with view meters, "WaveForm.lpi" demo with graphic representation of the sound-wave.
Thank you very much for your answer.
I hope it's okay to use another library. I don't have much skill with Lazarus. I just put what I was using as a reference and in case it was possible without using other resources
I'll take a look at it and if I find problems I'll raise them here

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Draw Audio envelope
« Reply #7 on: May 13, 2020, 02:11:47 am »
Hello Mgayo.

To try uos, go on site https://github.com/fredvs/uos and click on the green button [Clone or Download] and on Download as ZIP.

Then unzip the file somewhere.

With Lazarus, menu Project - Open, choose /uos/examples/SimplePlayer.lpi.

Compile it and run it.

No need to install anything.

Good luck.

For any question, please use the uos forum: http://uos.2369694.n4.nabble.com

Fre;D

PS: uos deals only with audio, not with video.
« Last Edit: May 13, 2020, 02:14:22 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

 

TinyPortal © 2005-2018