mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	fixed single note play copy/paste bug
This commit is contained in:
		
							parent
							
								
									29e495be2a
								
							
						
					
					
						commit
						c940e87235
					
				@ -257,7 +257,7 @@ ISR(TIMER3_COMPA_vect) {
 | 
				
			|||||||
                    place = 0.0;
 | 
					                    place = 0.0;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                ICR3 = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)); // Set max to the period
 | 
					                ICR3 = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)); // Set max to the period
 | 
				
			||||||
                OCR3A = (int)((((double)F_CPU) / (note_frequency * CPU_PRESCALER)) * note_timbre); // Set compare to half the period
 | 
					                OCR3A = (int)((((double)F_CPU) /(frequencies[voice_place] * CPU_PRESCALER)) * note_timbre); // Set compare to half the period
 | 
				
			||||||
                //OCR3A = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)) >> 1 * duty_place; // Set compare to half the period
 | 
					                //OCR3A = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)) >> 1 * duty_place; // Set compare to half the period
 | 
				
			||||||
                place++;
 | 
					                place++;
 | 
				
			||||||
                // if (duty_counter > (frequencies[voice_place] / 500)) {
 | 
					                // if (duty_counter > (frequencies[voice_place] / 500)) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user