Page 1 of 1

SoundEditor : an MDI application

Posted: Thu Jun 03, 2004 1:15 am
by zapman*
Here is the beta 18 of SoundEditor for testing of doing wathever you want with it. I'm not english native, so if something is not correct with the comments, please repport. If some german people see this, there is also a lot of job to do to complete the translation. Thank for your help.
Any comment or bug repport is welcome.

http://www.freesoundeditor.com/download ... editor.zip

(this adress always links to the LAST version)

Have fun !

Posted: Thu Jun 03, 2004 3:15 am
by J. Baker
WOW! Very interesting, keep up the good work. Can't wait to see more. :D

Posted: Thu Jun 03, 2004 3:47 am
by Dare2
This looks pretty cool!

Posted: Thu Jun 03, 2004 7:48 am
by dige
Zapman* ... welcome to the PB community!
The SoundEditor is realy cool ... good work.

cya dige

Posted: Thu Jun 03, 2004 11:53 am
by einander
Welcome Zapman: your code is very helpul to music programming.
Very good work!

Posted: Thu Jun 03, 2004 3:05 pm
by Rings
plz capsulate the WinApi-Call SetLayeredWindowAttributes_(..) with OpenLibrary etc, coz that funtion did not exists under Win-NT.
I commented this function and your Programm works :)

Posted: Thu Jun 03, 2004 10:53 pm
by zapman*
Thanks ! I have not any NT machine to test the prog under this environment and your help is great !!

Is anybody courageous enough to read my comments and repport all what is not clear or in a good english ?

Posted: Fri Jun 04, 2004 8:38 am
by Rings
okay, let me explain:
the Api-Call from the User32.dll, SetLayeredWindowAttributes
id not available under all Windows-OS's
from Microsoft orignal documentation:
Minimum operating systems Windows 2000
if the Programm starts under Win-NT (Win95 also) ,
a error-message popups that the export function SetLayeredWindowAttributes is not found in user32.dll.
so you should use this short wrapper to eliminate early binding (by using late binding :) ) .

Code: Select all

Procedure SetWinTransparency (WinHandle.l, Transparency_Level.l)
  ; PROCEDURE FROM DANILO
  SetWindowLong_(WinHandle,#GWL_EXSTYLE,#WS_EX_LAYERED)
  lib=Openlibrary(1,"user32.dll")
  if lib
    ;SetLayeredWindowAttributes_(WinHandle,0,Transparency_Level,2)
    CallFunction(1,"SetLayeredWindowAttributes",WinHandle,0,Transparency_Level,2) 
  endif
Closelibrary(1)
EndProcedure 

Posted: Fri Jun 04, 2004 11:23 pm
by Blade
The real-time effect with the small graph is wonderful!
I'm happy that BP can do such nice progs. 8)

Andrea
Universal Videogame List

Posted: Sat Jun 05, 2004 7:36 am
by zapman*
Thanks a lot Rings !!

Posted: Wed Jul 14, 2004 9:27 pm
by Xombie
Howdy!

I'd really like to use this in an app I'm developing but I'm just getting started with PureBasic and have a question or two.

1. Is there a chance to see this updated for 3.91?
2. How about any chance at turning into a "gadget" ? Like having all the functions available and then passing an image gadget or something similar to plot the data & respond to selections?
3. Is there any way to hook fmod into this to read more than just uncompressed wav files? For example, .mp3 or .ogg or compressed wavs, etc...

And does this hold a copy of the whole wav in memory while the wav is opened? I tried with a 250mb wav file and watched the memory jump up around there. And then give me "too many windows open" errors. So I guess it didn't like that at all. Is there a way to change this to read off of a temp file on disk versus storing the whole thing in memory?

I'm actually looking for a stripped down version of this program. Just loading, selecting, zooming, scrolling, scaling and perhaps saving a selection to disk. I don't need to edit the wav or transform it in any way.

Lots of questions but if I got this to work I'd be very, very, very happy ^_^

Thanks already for the wonderful code example. Just wish I could read it easier.

Posted: Sat Jul 24, 2004 1:20 am
by zapman*
Xombie, I'm sorry to have taken so many time to answer to you. I'd a lot to do in the real word (outside my pb screen) and I leave my programming activities since 2 months.
About your questions :
1- Yes, sure. I hav'nt yet try SoundEditor with PB 3.91, but I'm confident that there is not a lot to do to adapt it. Let me 1 or 2 weeks for that.
2- I have a lot to do with the actual orientation of the project and I'm not going in that way today
3- I'm working on that since 15 days and... going deeply mad !! I would like to use ACM or Audiere instead of FMod, because it would allow me (or you) to make a commercial product with SoundEditor. I made a decoder using Codecs with ACM but when I try to use it for decoding MP3, I have always the message "NO DRIVER". So I tried to do the job with Audiere but I can't get a pointer to a sound in memory (the datas) to show it graphically as SoundEditor is designed for.

For the following : SoundEditor is definitly done to EDIT sounds. So, I made the choice to hold the entire sound in memory to be able to go from one point to another in a snap. But if you make a different version from it, I would be very, very interrested to see it (just to get some different ideas and because I would be very proud to see a son of my prog !)

Thanks for your feedback

Posted: Mon Jul 26, 2004 6:56 pm
by GeoTrail
Wow, very impressive.
I wouldn't believe this was made in PB if you didn't say so.
I know PB was good, but hell, this takes it to a new level where I'm concerned ;)

Posted: Mon Jul 26, 2004 11:53 pm
by zapman*
:wink: