Save Wave duplicate sample

Discuss suspected defects before submitting a bug report

Moderator: electrogear

Save Wave duplicate sample

Postby DigitalWhiteByte on Thu Jun 16, 2011 2:15 am

I ran into this strange thing,
I created a wav file with the sequence of samples ranging in value from 00 to FF
(in hexadecimal values​​, those written in binary file)
I loaded this file wav and I just resaved from synthmaker, after the value 7F,
the samples are repeated in pairs 81 81 83 83. should be 80 81 82 83 ect.
There is a problem of approximation in the primitive SAVE WAVE?
It also seems that the 8-bit WAV files are not loaded correctly.
If someone tells me this thing send a bug report.
User avatar
DigitalWhiteByte
smanatic
 
Posts: 697
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: Save Wave duplicate sample

Postby DigitalWhiteByte on Fri Jun 17, 2011 11:34 am

After some tests are now more puzzled than before ....
Surely there is a problem of approximation of float numbers,
but I could not tell if it is in the primitive "WaveFile" or primitive "SaveWave".
This perplexes me.
User avatar
DigitalWhiteByte
smanatic
 
Posts: 697
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: Save Wave duplicate sample

Postby trogluddite on Fri Jun 17, 2011 4:57 pm

Wonder if t related to the use of banker's rounding?
i.e. rndint (x-0.5); would be expected to 'always round 'x' downwards, except that alternate integer values of 'x' will then round to the same output value.
Though that doesn't explain why values <7F should still be correct.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3033
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests