mirror of
				https://git.unlock-music.dev/um/web.git
				synced 2025-11-04 11:53:30 +08:00 
			
		
		
		
	Fix Mgg Mask Detect Bug
This commit is contained in:
		
							parent
							
								
									58d9039960
								
							
						
					
					
						commit
						f99e885d9f
					
				@ -158,14 +158,14 @@ export function QmcMaskCreate58(matrix, superA, superB) {
 | 
			
		||||
 */
 | 
			
		||||
function getMaskConfidenceResult(confidence) {
 | 
			
		||||
    if (confidence.length === 0) throw "can not match at least one key";
 | 
			
		||||
    let result = 0, conf = 0;
 | 
			
		||||
    let result, conf = 0;
 | 
			
		||||
    for (let idx in confidence) {
 | 
			
		||||
        if (confidence[idx] > conf) {
 | 
			
		||||
            result = idx;
 | 
			
		||||
            conf = confidence[idx];
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return result
 | 
			
		||||
    return parseInt(result)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user