A squashed, should only change a few lines and no mucking about with submodules
This commit is contained in:
parent
0a172502fe
commit
80d6b40a7d
4 changed files with 8 additions and 8 deletions
|
@ -192,6 +192,7 @@ void UpdateOutputBins32()
|
|||
isps = isps<0? -isps : isps;
|
||||
ispc = ispc<0? -ispc : ispc;
|
||||
uint32_t rmux = isps>ispc? isps + (ispc>>1) : ispc + (isps>>1);
|
||||
rmux = rmux>>16;
|
||||
#else
|
||||
uint32_t rmux = ( (isps) * (isps)) + ((ispc) * (ispc));
|
||||
rmux = SquareRootRounded( rmux );
|
||||
|
|
|
@ -61,17 +61,17 @@ void UpdateLinearLEDs()
|
|||
{
|
||||
if( note_peak_freqs[ sorted_note_map[j] ] > nff )
|
||||
{
|
||||
break;
|
||||
break; // so j is correct place to insert
|
||||
}
|
||||
}
|
||||
for( k = sorted_map_count; k > j; k-- )
|
||||
for( k = sorted_map_count; k > j; k-- ) // make room
|
||||
{
|
||||
sorted_note_map[k] = sorted_note_map[k-1];
|
||||
}
|
||||
sorted_note_map[j] = i;
|
||||
sorted_note_map[j] = i; // insert in correct place
|
||||
#else
|
||||
sorted_note_map[sorted_map_count] = i; // insert at end
|
||||
#endif
|
||||
sorted_note_map[sorted_map_count] = i;
|
||||
sorted_map_count++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue