add noise and industrial
This commit is contained in:
		
							parent
							
								
									cef4f78b3c
								
							
						
					
					
						commit
						96ca6fbfc0
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -81,6 +81,7 @@ int sendKarplusStrongSound(uint16_t f /*Hz*/, uint8_t T /* 1/DIVIDER sec*/) {
 | 
			
		|||
   
 | 
			
		||||
   for (uint32_t i=(uint32_t) sr*T/DIVIDER; i>0; i--) {
 | 
			
		||||
        // current amplitude to play is the highest byte of buf[bh]	
 | 
			
		||||
        #define NOISEINDUSTRIAL 1
 | 
			
		||||
        #if NOISEINDUSTRIAL
 | 
			
		||||
	OCR2A = buf[bh];
 | 
			
		||||
        #else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue