Module xPhraseMgr
This class will assist in managing phrases, phrase mappings .
Functions
get_available_slot (insert_idx) | retrieve the next available phrase mapping, based on current criteria |
Fields
self.default_range | int, default key-range size when creating new phrases |
self.instr_idx | int, our instrument |
Functions
- get_available_slot (insert_idx)
-
retrieve the next available phrase mapping, based on current criteria
Parameters:
- insert_idx (int), start search from this phrase index (first, if nil)
Returns:
- table{} or nil (if not able to find room)
- int, the index where we can insert