Hello everyone, so I was working on ClippedAudio.java, and the program is supposed to clip the signal. The read method reads in the file audio.txt, the clip method clips the signal, and the write method outputs the clipped signal to the file clipped_audio.txt. I have to add the needed code to method clip. The audio.txt contains a list of floating-point numbers 0.0 ≤ 𝑛 < 1.0 which represents an audio signal sent to a set of speakers. In order to smooth the signal, I must clip the signal on both the bottom and top ends of the signal range. I included all programs that are needed for this to work.

So, if the program is working correctly The output file clipped_audio.txt should look like
500
/**/
0.750000
0.693986
0.750000
0.750000
0.673456
0.750000
0.750000
0.250000
0.729202

Please any suggestions would be helpful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.