Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why is the spectrum diferent when it's captured with Java Sound and the Adobe Software?

3133116Dec 4 2015 — edited Dec 4 2015

Hi,

i'm capturing guitar audio notes (same format and conditions in both cases), with Java Sound API and the Adobe Audition Software, same parameters in both. As a result, they (the recording) should be also the same in both ones, but, i'm getting a difference in the spectrum form,

The audio format values are:

sample rate = 8000

sample size in bits = 16

channel = 1

This is basically the code i have used with the API: (replacing the corresponding AudioFormat values)

https://gist.github.com/fedor-rusak/2294168

and this is the initial parameters with the Adobe Software:

nuevo_Adobe_audition.png

Then, when i applied the fourier transform, i'm obtaining next values, this is the array generated with the Adobe Software:

| s1 | s2 | s3 | s4 | s5 | s6 | s7 | ... | s229 | s330 |
| 1400 | 2953.34487922467 | 1629.04486511525 | 305.38179014932 | 1882.46158915323 | 4317.89181180715 | 6768.48755796891 | | 82247.6367846533 | 166054.303854477 |

graphics are also different:

1. With the Adobe Audition:

Mi_adobe_audition.png

2. With the Java Sound API:

Mi_Java_Sound.png

Why is this happening?

I'll appreciate your help,

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2016
Added on Dec 4 2015
0 comments
901 views