Recent

Author Topic: Bitmap wavefore from .wav file  (Read 22442 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Bitmap wavefore from .wav file
« Reply #30 on: April 10, 2014, 05:31:12 pm »
Quote
Welll... have you read this:
;)

@  user5, if you want to try uos, here how to do :

1) Go on uos Github site => https://github.com/fredvs/uos
2) Click on button "Download ZIP".
3) Unzip-it.
4) Run Lazarus.
5) In "Project" => "Open Project" choose /uos/examples/waveform.lpi
6) Compile and Run it...
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

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: Bitmap wavefore from .wav file
« Reply #31 on: April 10, 2014, 06:19:49 pm »
Like I said, I tried to compile waveform.lpi before, but it uses uos_flat and uos_flat uses uos.pas and uos.pas won’t compile because of an illegal qualifier or because I don’t have fpc 2.7 or for some other reason. My compiler says that its because of an illegal qualifier. At your suggestion I once again copied uos.pas and directly pasted it into Lazarus instead of using Notepad.

It still won’t compile! The other units compile fine. Not only that, but now I realize that Audorra shows an .exe pop up window, just like waveform.exe. If I have to suffer with a dummy doslike window like that then I’ll go with waveform.exe since it does it all and even allows me to lengthen the waveform spikes. I checked and unchecked the the project-options-linking-win32 gui box but to no avail. I used to know a compiler directive header that gets rid of that window but I can’t remember or find it. Even then I experienced some unexpected results.

Replacing Lazarus1.0.10\fpc\2.6.2 with fpc 2.7 is real tricky and I’m just too busy right now.

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: Bitmap wavefore from .wav file
« Reply #32 on: April 10, 2014, 06:34:25 pm »
Fred vs, something you had in your footnotes got my attention, the fact that you use Lazarus 1.1. When I tried to make a package using my new copy of Lazarus 1.2, it crashed but I never did try to run waveform.lpi on it. I’m going to install it again and try to compile waveform once more. Thanks

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: Bitmap wavefore from .wav file
« Reply #33 on: April 10, 2014, 07:09:09 pm »
Unfortunately, uos won’t compile for me with Lazarus 1.0.10 or 1.2, bacause of an “illegal qualifier” error. That’s the way it goes sometimes.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Bitmap wavefore from .wav file
« Reply #34 on: April 10, 2014, 08:48:15 pm »
1) make sure you used the proper download procedure. Don't copy paste from your browser.
2) make sure all needed files are present and can be found.
3) if the package provides a test suit use it to make sure that everything works as expected before installing.
4) please post all the relevant information for the error eg line number and that line too.

Saying I get an “illegal qualifier” error its the same as telling a doctor that you have a pain.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Bitmap wavefore from .wav file
« Reply #35 on: April 10, 2014, 08:55:36 pm »
@ user5 => Please, download the NEW release of uos (version : 130140410).
=> in uos.pas =>
Code: [Select]
const
  uos_version : LongInt = 130140410 ;

Do not use old release =>

1) Go on uos Github site => https://github.com/fredvs/uos
2) Click on button "Download ZIP". => on right side, in the middle of page
3) Unzip uos-master.zip.
4) Run Lazarus.
5) In "Project" => "Open Project" choose ../uos-master/examples/waveform.lpi
6) Compile and Run it (without Debugger => too much calculation for him)...

With that new release, you may use fpc 2.6.2.
« Last Edit: April 10, 2014, 09:05:06 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

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: Bitmap wavefore from .wav file
« Reply #36 on: April 11, 2014, 09:24:36 am »
taazz, if you had checked some earlier posts of mine first, you would have seen one that indeed listed the relevant line of code, along with the error message. I think it’s only about 20 posts back in this thread. It’s true that I didn’t list its line number but all you needed to do was to copy and paste it and then do a search through the units. There are only 3 of ‘em. I would list the ‘offending’ code here again but I got a pain, Doc.

Fred vs, you are super duper. I downloaded the zip and Waveform works fine now. I didn’t see the zip option before and thought my only option was to copy and paste. The zip option was tucked way out of view and there was no mention of such a file anywhere else on the page. Waveform looks like a good deal but it’s got some quirks and it seems tailored to the higher frequencies rather than speech, though I might be able to use it. Thanks again for your patience and understanding. You’re a steely-eyed missile man.

Does anyone know if Audacity can save a wave file into a .png or not? I could have sworn that I exported a wave file into a .png using Audacity but now there are no file types AT ALL in the “Save as file type” drop down menu. There should be 1 or 2 there, right? I’m using one of the first versions of Audacity (.95) ‘cause I wanted a small program. It’s driving me crazy.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Bitmap wavefore from .wav file
« Reply #37 on: April 11, 2014, 08:51:45 pm »
taazz, if you had checked some earlier posts of mine first, you would have seen one that indeed listed the relevant line of code, along with the error message. I think it’s only about 20 posts back in this thread. It’s true that I didn’t list its line number but all you needed to do was to copy and paste it and then do a search through the units. There are only 3 of ‘em. I would list the ‘offending’ code here again but I got a pain, Doc.


If you had payed attention you would have known that the specific problem was solved already with the help of Martin_FR in this forums and a new version was uploaded before fred asked you to try again, the problem is that you leave out important information and I guess at this point you left out the step to download the new version too.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: Bitmap wavefore from .wav file
« Reply #38 on: April 12, 2014, 12:45:56 am »
Nonsense. Is this a test or something? I can easily refute ya and a careful reading of your previous note speaks for itself but I’ll do you the favor of letting you have the last word if you’ll do me the favor of not posting on any now doubtful future posts of mine. It’s not my purpose to get caught up in any proprietary contests. My purpose is to forge ahead with my program and to thank this forum for its great help and to make sure that I give proper credits and acknowledgements to uos and others. I did some more sound testing of the uos makeform code and I have to say that it just might be perfect for me. I will never forget this help to me or you. Reach for the stars!

 

TinyPortal © 2005-2018