put ask demod and mandemod back until i have time to test it
} else {
GraphBuffer[0] = c;
}
} else {
GraphBuffer[0] = c;
}
- //20% fuzz [marshmellow]
- high=(int)(.8*high);
- low=(int)(.8*low);
+ ////13% fuzz [marshmellow]
+ //high=(int)(0.87*high);
+ //low=(int)(0.87*low);
for (i = 1; i < GraphTraceLen; ++i) {
/* Transitions are detected at each peak
* Transitions are either:
for (i = 1; i < GraphTraceLen; ++i) {
/* Transitions are detected at each peak
* Transitions are either:
* low for long periods, others just reach the peak and go
* down)
*/
* low for long periods, others just reach the peak and go
* down)
*/
- //[marhsmellow] changed == to >= for high and <= for low
- if ((GraphBuffer[i] >= high) && (GraphBuffer[i - 1] == c)) {
+ //[marhsmellow] change == to >= for high and <= for low for fuzz
+ if ((GraphBuffer[i] == high) && (GraphBuffer[i - 1] == c)) {
- } else if ((GraphBuffer[i] <= low) && (GraphBuffer[i - 1] == (1 - c))){
+ } else if ((GraphBuffer[i] == low) && (GraphBuffer[i - 1] == (1 - c))){
GraphBuffer[i] = c;
} else {
/* No transition */
GraphBuffer[i] = c;
} else {
/* No transition */