re-enable audio and extrakeys
This commit is contained in:
		
							parent
							
								
									0213acbdbe
								
							
						
					
					
						commit
						0edfe55bfe
					
				
					 4 changed files with 27 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -18,7 +18,7 @@ void voice_iterate() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void voice_deiterate() {
 | 
			
		||||
    voice = (voice - 1) % number_of_voices;
 | 
			
		||||
    voice = (voice - 1 + number_of_voices) % number_of_voices;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
float voice_envelope(float frequency) {
 | 
			
		||||
| 
						 | 
				
			
			@ -31,6 +31,27 @@ float voice_envelope(float frequency) {
 | 
			
		|||
            polyphony_rate = 0;
 | 
			
		||||
	        break;
 | 
			
		||||
 | 
			
		||||
        case something:
 | 
			
		||||
            polyphony_rate = 0;
 | 
			
		||||
            switch (compensated_index) {
 | 
			
		||||
                case 0 ... 9:
 | 
			
		||||
                    note_timbre = TIMBRE_12;
 | 
			
		||||
                    break;
 | 
			
		||||
 | 
			
		||||
                case 10 ... 19:
 | 
			
		||||
                    note_timbre = TIMBRE_25;
 | 
			
		||||
                    break;
 | 
			
		||||
 | 
			
		||||
                case 20 ... 200:
 | 
			
		||||
                    note_timbre = .25 + .125 + pow(((float)compensated_index - 20) / (200 - 20), 2)*.125;
 | 
			
		||||
                    break;
 | 
			
		||||
 | 
			
		||||
                default:
 | 
			
		||||
                    note_timbre = .25;
 | 
			
		||||
                    break;
 | 
			
		||||
            }
 | 
			
		||||
            break;
 | 
			
		||||
 | 
			
		||||
        case butts_fader:
 | 
			
		||||
            polyphony_rate = 0;
 | 
			
		||||
            switch (compensated_index) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue