+ \r
+ /* Update the oldest note entry with the new note data and reset its age */\r
+ LRUNoteStruct->Pitch = ReceivedMIDIEvent.Data2;\r
+ LRUNoteStruct->TableIncrement = (uint32_t)(BASE_INCREMENT * SCALE_FACTOR) +\r
+ ((uint32_t)(BASE_INCREMENT * NOTE_OCTIVE_RATIO * SCALE_FACTOR) *\r
+ (ReceivedMIDIEvent.Data2 - BASE_PITCH_INDEX));\r
+ LRUNoteStruct->TablePosition = 0;\r
+ LRUNoteStruct->LRUAge = 0;\r