|
-
Aug 9th, 2014, 03:07 AM
#1
Amplification of sound in VB6
Hi,
How would I increase the amplification of an audio file and will that amplification change if say the original sound file was a wave and then the file was converted to a format such as mp3?
Thanks,
Nightwalker
Last edited by Nightwalker83; Aug 9th, 2014 at 05:21 AM.
Reason: Fixed Title!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Aug 9th, 2014, 11:42 AM
#2
Re: Amplification of sound in VB6
Are you asking how to change it permanently to be stored within the file?
-
Aug 9th, 2014, 06:23 PM
#3
Re: Amplification of sound in VB6
 Originally Posted by LaVolpe
Are you asking how to change it permanently to be stored within the file?
Yes, that is correct!
Edit:
I guess I need to added the types and code that CVMichael uses in post #12 here, although minus the generating sub. The code that I have at the moment contains the code from post #33 here.
Last edited by Nightwalker83; Aug 9th, 2014 at 06:48 PM.
Reason: Adding more!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Aug 9th, 2014, 08:36 PM
#4
Re: Amplification of sound in VB6
Amplification is multiplication.
Multiply too much and you'll get clipping as the loudest parts exceed the maximum/minimum value that can be stored.
-
Aug 9th, 2014, 09:38 PM
#5
Re: Amplification of sound in VB6
 Originally Posted by passel
Amplification is multiplication.
Multiply too much and you'll get clipping as the loudest parts exceed the maximum/minimum value that can be stored.
Yes, I know that but what do I need to multiply?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Aug 9th, 2014, 10:22 PM
#6
Re: Amplification of sound in VB6
 Originally Posted by Nightwalker83
Yes, I know that but what do I need to multiply?
Find the highest amplitude within both channels of your sound (song, whatever).
e.g. when you found within 16Bit PCM-Stereo (looping over both, the left and right
channel), the max. Amplitude (Abs(signed 16bit integer)) of 19500, then your formula
would become:
19500 * ScaleFactor = 32767
So, in this case you would not cause any clipping, when you multiply with a
ScaleFactor smaller or equal to 1.68
Olaf
-
Aug 28th, 2014, 04:17 AM
#7
Re: Amplification of sound in VB6
I found WaveIn Recorder which, does what I need except it is for WaveIn. Does Wave-in work the same way as loading a sound file and permanently changing the amplification of the file? The reason I ask if because I found some code that allows for the amplification of Wave-In which then allow the user to save the result to a file and I was wondering if I could use that code?
I think the only different between Wave-In amplification and load file amplification is that the Wave-In method saves the after amplify the sound whereas loads the in to the program then amplifies the sound?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Dec 9th, 2014, 08:50 AM
#8
Re: Amplification of sound in VB6
 Originally Posted by Nightwalker83
...
I think the only different between Wave-In amplification and load file amplification is that the Wave-In method saves the after amplify the sound whereas loads the in to the program then amplifies the sound?
That form of english I have a hard time understanding.
 Originally Posted by Nightwalker83
... The reason I ask if because I found some code that allows for the amplification of Wave-In which then allow the user to save the result to a file and I was wondering if I could use that code?
I think the intuitive answer is if you have to ask then the answer is probably no.
If you don't know what the code is doing, or what your code is doing well enough to answer the question, then probably you will have problems trying to adapt and use it in your project.
-
Dec 9th, 2014, 08:45 PM
#9
Re: Amplification of sound in VB6
 Originally Posted by passel
If you don't know what the code is doing, or what your code is doing well enough to answer the question, then probably you will have problems trying to adapt and use it in your project. 
I am trying to find code that will allow me to change the amplification of the file itself rather than via the sound card.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Dec 9th, 2014, 09:12 PM
#10
Re: Amplification of sound in VB6
Then why not use one of the (OpenSource) commandline-tools for that (which should also exist in different windows-versions).
IIRC, these will allow to read one format (e.g. *.wav) - and write it out in either the same format -
or as *.ogg or *.mp3 ... then often supporting quite some extra-params - as e.g. "reduce to Mono",
or "enhance to Pseudo-Stereo" or "change BitDepth" or "change amplitude using a ScaleFactor",
or "normalize amplitude".
Just google for them (I don't remember them from the top pf my head) - but:
[Sound conversion commandline utilities] or something like that should raise some results.
Olaf
-
Dec 9th, 2014, 09:43 PM
#11
Re: Amplification of sound in VB6
 Originally Posted by Schmidt
Just google for them (I don't remember them from the top pf my head) - but:
[Sound conversion commandline utilities] or something like that should raise some results.
Are they part of Windows?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|