Ap0C552's Profile User Rating: -----

Reputation: -7 Shunned
Active Members
Active Posts:
318 (0.22 per day)
08-December 10
Profile Views:
Last Active:
User is offline Today, 06:18 PM

Previous Fields

Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   Ap0C552 has not set their status

Posts I've Made

  1. In Topic: Thread.sleep() efficiency

    Posted 2 Oct 2014

    Thank you for the informative reply.
  2. In Topic: Java Object equivalent syntax

    Posted 8 Mar 2014

    Well I am not concerned with if there is a common superclass as much as how to acheive what I have done in the above code using comming superclasses.

    I believe what I am looking for is a void* and then using dynamic_cast.
  3. In Topic: Converting unsigned short ->float->unsigned short

    Posted 19 Feb 2014

    No but some audio formats are unsigned. So when working in java you have to maneuver around the fact java has no unsigned.
  4. In Topic: Converting unsigned short ->float->unsigned short

    Posted 19 Feb 2014

    Thanks for your help goose!! I solved the problem. The whole time I thought I should be reading in and writing out unsigned short, when it is supposed to be signed short. Ughhh. What a brain fart. At least the problem is solved though.

    Thank you again.
  5. In Topic: Converting unsigned short ->float->unsigned short

    Posted 18 Feb 2014

    After looking over the output wave file, it is clear that the pitched shifted sample has value that are substantially larger than the input sample. In an audio sense, the output sample is much louder. Those loud samples are the distortion.

    Now I did this code to print out what is happening in the linear interpolation algorithm. Basically, is is checking if there is some way that the outputed value of the linear interpolate formula is some way larger than the two input values. This code verifies that the pitch shifting is not causing the extreme values. But these extreme values only exist if the sample is pitch shifted. So the pitch shifting must be doing something to the float values, that makes them get corrupted later on...ie the conversion to short.

    						debug=debug+"sample:"+currSample[ptr]+"sample+1:"+currSample[ptr+1]+" output:"+output[outputPtr]+"\n\r";

My Information

Member Title:
D.I.C Regular
30 years old
September 14, 1984
Video games, programming, elecstronic music productions
Years Programming:
Programming Languages:
Java, C

Contact Information