mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	adds fifth and fourth down voices
This commit is contained in:
		
							parent
							
								
									7b3f212500
								
							
						
					
					
						commit
						b1900c8dde
					
				| @ -84,6 +84,21 @@ float voice_envelope(float frequency) { | |||||||
|         case duty_octave_down: |         case duty_octave_down: | ||||||
|             polyphony_rate = 0; |             polyphony_rate = 0; | ||||||
|             note_timbre = (envelope_index % 2) * .125 + .375 * 2; |             note_timbre = (envelope_index % 2) * .125 + .375 * 2; | ||||||
|  |             if ((envelope_index % 4) == 0) | ||||||
|  |                 note_timbre = 0.5; | ||||||
|  |             if ((envelope_index % 8) == 0) | ||||||
|  |                 note_timbre = 0; | ||||||
|  |         break; | ||||||
|  |         case duty_fifth_down: | ||||||
|  |             note_timbre = 0.5; | ||||||
|  |             if ((envelope_index % 5) == 0) | ||||||
|  |                 note_timbre = 0.75; | ||||||
|  |         break; | ||||||
|  |         case duty_fourth_down: | ||||||
|  |             if ((envelope_index % 12) == 0) | ||||||
|  |                 note_timbre = 0.25; | ||||||
|  |             else | ||||||
|  |                 note_timbre = 0.5; | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,6 +16,8 @@ typedef enum { | |||||||
|     octave_crunch, |     octave_crunch, | ||||||
|     duty_osc, |     duty_osc, | ||||||
|     duty_octave_down, |     duty_octave_down, | ||||||
|  |     duty_fifth_down, | ||||||
|  |     duty_fourth_down, | ||||||
|     number_of_voices // important that this is last
 |     number_of_voices // important that this is last
 | ||||||
| } voice_type; | } voice_type; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jack Humbert
						Jack Humbert