audio note length fixes
This commit is contained in:
		
							parent
							
								
									bb0836c620
								
							
						
					
					
						commit
						ee2ee7f4f0
					
				
					 3 changed files with 33 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -147,30 +147,30 @@ const uint16_t PROGMEM fn_actions[] = {
 | 
			
		|||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
float tone_qw[][2] = {
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 400},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 400},
 | 
			
		||||
  {0, 800},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 1600}
 | 
			
		||||
  {440.0*pow(2.0,(59)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 8},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 16}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
float tone_cm[][2] = {
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 400},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 400},
 | 
			
		||||
  {0, 800},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 1000},
 | 
			
		||||
  {0, 200},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 1000}
 | 
			
		||||
  {440.0*pow(2.0,(59)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 8},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 16},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(71)/12.0), 16}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
float tone_dv[][2] = {
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 400},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 400},
 | 
			
		||||
  {0, 800},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 800},
 | 
			
		||||
  {0, 200},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 800},
 | 
			
		||||
  {0, 200},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 800}
 | 
			
		||||
  {440.0*pow(2.0,(59)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 8},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 16},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(69)/12.0), 16},
 | 
			
		||||
  {0, 4},
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 16}
 | 
			
		||||
};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -246,11 +246,11 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
 | 
			
		|||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
float start_up[][2] = {
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 650},
 | 
			
		||||
  {440.0*pow(2.0,(64)/12.0), 450},
 | 
			
		||||
  {440.0*pow(2.0,(55)/12.0), 450},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 450},
 | 
			
		||||
  {440.0*pow(2.0,(64)/12.0), 1000}
 | 
			
		||||
  {440.0*pow(2.0,(67)/12.0), 12},
 | 
			
		||||
  {440.0*pow(2.0,(64)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(55)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(60)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(64)/12.0), 20}
 | 
			
		||||
};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue