 5190c6daab
			
		
	
	
		5190c6daab
		
	
	
	
	
		
			
			ES5506 has these features: - 16 bit independent volume register per left/right output (Logarithmic, 4 LSB is for envelope) - Programmable filter per each channels, 4 pole, 4 filter mode and 2 16 bit coefficient register (4 LSB is for envelope) - Hardware envelope Add more than 2 macro type support "Delta" macro type: Use delta from previous value
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /**
 | |
|  * Furnace Tracker - multi-system chiptune tracker
 | |
|  * Copyright (C) 2021-2022 tildearrow and contributors
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License as published by
 | |
|  * the Free Software Foundation; either version 2 of the License, or
 | |
|  * (at your option) any later version.
 | |
|  *
 | |
|  * This program is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  * GNU General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU General Public License along
 | |
|  * with this program; if not, write to the Free Software Foundation, Inc.,
 | |
|  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | |
|  */
 | |
| 
 | |
| #include "intConst.h"
 | |
| 
 | |
| const int _ZERO=0;
 | |
| const int _ONE=1;
 | |
| const int _THREE=3;
 | |
| const int _SEVEN=7;
 | |
| const int _TEN=10;
 | |
| const int _FIFTEEN=15;
 | |
| const int _SIXTEEN=16;
 | |
| const int _THIRTY_ONE=31;
 | |
| const int _SIXTY_FOUR=64;
 | |
| const int _ONE_HUNDRED=100;
 | |
| const int _ONE_HUNDRED_TWENTY_SEVEN=127;
 | |
| const int _TWO_HUNDRED_FIFTY_FIVE=255;
 | |
| const int _FIVE_HUNDRED_ELEVEN=511;
 | |
| const int _TWO_THOUSAND_FORTY_SEVEN=2047;
 | |
| const int _FOUR_THOUSAND_NINETY_FIVE=4095;
 | |
| const int _SIXTY_FIVE_THOUSAND_FIVE_HUNDRED_THIRTY_FIVE=65535;
 | |
| const int _MINUS_ONE_HUNDRED_TWENTY_SEVEN=-127;
 | |
| const int _MINUS_ONE_HUNDRED_TWENTY_EIGHT=-128;
 |