├── .chglog ├── CHANGELOG.tpl.md └── config.yml ├── .gitignore ├── CHANGELOG.md ├── HISTORY ├── LICENSE ├── SID.cpp ├── SID.h ├── StereoSID.h ├── doc ├── ADSR-half-moon-lake-patches-v1.txt ├── sid-jump-start.html ├── sid-jump-start.txt └── sid-registers.png ├── examples ├── Noise │ └── Noise.ino ├── RandomPitch │ └── RandomPitch.ino ├── SID_I2C_commander │ └── SID_I2C_commander.ino ├── SID_I2C_receiver │ └── SID_I2C_receiver.ino ├── StereoSIDSimpleDemo │ └── StereoSIDSimpleDemo.ino └── sid_player │ ├── Alternative_Fuel_dmp.h │ ├── Castlevania_64_Mixes_dmp.h │ ├── Commando_dmp.h │ ├── Open_Groove_dmp.h │ ├── Vibralux_dmp.h │ ├── Visitors_dmp.h │ ├── Zelda_1_Dungeon_dmp.h │ ├── marche_hiver_dmp.h │ ├── sid_player.fzz │ ├── sid_player.ino │ ├── sid_player_v2.fzz │ ├── sid_player_v2_bb.pdf │ ├── sid_player_v3.fzz │ └── sid_player_v4.fzz ├── keywords.txt ├── library.properties ├── midi_support.h └── readme.txt /.chglog/CHANGELOG.tpl.md: -------------------------------------------------------------------------------- 1 | {{ if .Versions -}} 2 | {{ if .Unreleased.CommitGroups -}} 3 | 4 | ## [Unreleased] 5 | 6 | 7 | {{ range .Unreleased.CommitGroups -}} 8 | ### {{ .Title }} 9 | {{ range .Commits -}} 10 | - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} 11 | {{ end }} 12 | {{ end -}} 13 | {{ end -}} 14 | {{ end -}} 15 | 16 | {{ range .Versions }} 17 | 18 | ## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }}) 19 | 20 | {{ range .CommitGroups -}} 21 | ### {{ .Title }} 22 | 23 | {{ range .Commits -}} 24 | * {{ .Subject }} 25 | {{ end }} 26 | {{ end -}} 27 | 28 | {{- if .MergeCommits -}} 29 | ### Pull Requests 30 | 31 | {{ range .MergeCommits -}} 32 | * {{ .Header }} 33 | {{ end }} 34 | {{ end -}} 35 | 36 | {{- if .NoteGroups -}} 37 | {{ range .NoteGroups -}} 38 | ### {{ .Title }} 39 | 40 | {{ range .Notes }} 41 | {{ .Body }} 42 | {{ end }} 43 | {{ end -}} 44 | {{ end -}} 45 | {{ end -}} -------------------------------------------------------------------------------- /.chglog/config.yml: -------------------------------------------------------------------------------- 1 | style: github 2 | template: CHANGELOG.tpl.md 3 | info: 4 | title: CHANGELOG 5 | repository_url: https://github.com/daitangio/sid-arduino-lib 6 | options: 7 | # merges: 8 | # pattern: "^Merge branch '(\\w+)'$" 9 | # pattern_maps: 10 | # - Source 11 | commits: 12 | filters: 13 | Type: 14 | - Fix 15 | - Updated 16 | - Included 17 | - Typo 18 | - Merge 19 | # - feat 20 | # - perf 21 | # - refactor 22 | commit_groups: 23 | # title_maps: 24 | # feat: Features 25 | # fix: Bug Fixes 26 | # perf: Performance Improvements 27 | # refactor: Code Refactoring 28 | header: 29 | pattern: "^((\\w+):*\\s.*)$" 30 | pattern_maps: 31 | - Subject 32 | - Type 33 | notes: 34 | keywords: 35 | - BREAKING CHANGE -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/arduino-lint 2 | .DS_Store 3 | 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## [StereoSID-2.0.7](https://github.com/daitangio/sid-arduino-lib/compare/StereoSID-2.0.6...StereoSID-2.0.7) (2023-11-12) 4 | 5 | ### Fix 6 | 7 | * Fix: library now pass arduino lint checks 8 | 9 | ### Included 10 | 11 | * Included original project license 12 | 13 | ### Merge 14 | 15 | * Merge remote-tracking branch 'upstream/master' 16 | 17 | ### Updated 18 | 19 | * Updated library.properties after proper testing with Arduino IDE 2.2.1 20 | 21 | ### Pull Requests 22 | 23 | * Merge pull request [#3](https://github.com/daitangio/sid-arduino-lib/issues/3) from per1234/keywords_txt-multiple-tabs 24 | * Merge pull request [#2](https://github.com/daitangio/sid-arduino-lib/issues/2) from per1234/keywords_txt-multiple-tabs 25 | 26 | 27 | 28 | ## [StereoSID-2.0.6](https://github.com/daitangio/sid-arduino-lib/compare/StereoSID-2.0.5...StereoSID-2.0.6) (2018-04-30) 29 | 30 | ### Typo 31 | 32 | * Typo fixes 33 | 34 | 35 | 36 | ## [StereoSID-2.0.5](https://github.com/daitangio/sid-arduino-lib/compare/StereoSID-2.0.3...StereoSID-2.0.5) (2017-11-18) 37 | 38 | ### Updated 39 | 40 | * Updated with a small introduction 41 | 42 | ### Pull Requests 43 | 44 | * Merge pull request [#1](https://github.com/daitangio/sid-arduino-lib/issues/1) from per1234/add-category 45 | 46 | 47 | 48 | ## [StereoSID-2.0.3](https://github.com/daitangio/sid-arduino-lib/compare/StereoSID-2.0.2...StereoSID-2.0.3) (2015-04-09) 49 | 50 | ### Updated 51 | 52 | * Updated library properties (missed url) 53 | 54 | 55 | 56 | ## [StereoSID-2.0.2](https://github.com/daitangio/sid-arduino-lib/compare/SID-2.0.1...StereoSID-2.0.2) (2015-04-01) 57 | 58 | 59 | 60 | ## [SID-2.0.1](https://github.com/daitangio/sid-arduino-lib/compare/SID-2.0.0...SID-2.0.1) (2013-04-13) 61 | 62 | 63 | 64 | ## SID-2.0.0 (2012-12-26) 65 | 66 | -------------------------------------------------------------------------------- /HISTORY: -------------------------------------------------------------------------------- 1 | StereoSID-2.0.4 upcoming 2 | * Better midi2Sid conversion function 3 | StereoSID-2.0.3 4 | * Fixed library.properties for correct arduino ide loading 5 | StereoSID-2.0.2 6 | * First implementation of stereo SID (VOICE2 on new 'LEFT' CHANNEL) 7 | 8 | SID-2.0.1 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /SID.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SID.cpp - Atmega8 MOS6581 SID Emulator 3 | Copyright (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 4 | Arduino Library Conversion by Mario Patino, cybernesto(at)gmail.com 5 | 2015-2023 Stereo capability added by Giovanni Giorgi, jj(at)gioorgi.com 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License 9 | as published by the Free Software Foundation; either version 2 10 | of the License, or (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 | */ 21 | 22 | /************************************************************************ 23 | 24 | Atmega8 MOS6581 SID Emulator 25 | 26 | SID = Sound Interface Device 27 | 28 | This program tries to emulate the sound chip SID of the famous 29 | historical C64 Commodore computer. 30 | The SID emulator includes all registers of the original SID, but 31 | some functions may not be implemented yet. 32 | If you want to program the SID registers to generate your own sound, 33 | please refer to the MOS6581 datasheet. The emulator tries to be as 34 | compatible as possible. 35 | 36 | In the main program there is an interrupt routine which sets the 37 | ouptut values for the PWM-Output at 62.5kHz. Therefore the high 38 | frequency noise of the PWM should not be audible to normal people. 39 | The output is calculated with a 16kHz sample frequency to save 40 | processing cycles. 41 | 42 | The envelope generators are updated every 1ms. 43 | 44 | The amplitude value is output as an 8Bit PWM value. 45 | The PWM-Output may be directly connected to an audio amplifier. 46 | 47 | Giovanni Giorgi Stereo Add on 48 | 49 | Simply put, the SID Voice2 is redirected to the PWM pin 10 (on ArduinoUno). 50 | No additional load is expected/required 51 | Is up to the client to know how to use this stereo capability. 52 | 53 | 54 | 55 | 56 | ************************************************************************ 57 | 58 | Hardware 59 | 60 | processor: ATMEGA8, ATMEGA168 61 | clock: 16MHz Crystal 62 | 63 | PIN15 PB1/OC1A 8Bit PWM sound output 64 | PIN19 PB0 test LED 65 | 66 | ***************************************************************************/ 67 | 68 | #include 69 | #include 70 | 71 | #include "SID.h" 72 | 73 | // attack, decay, release envelope timings 74 | const static uint16_t AttackRate[16]={2,4,16,24,38,58,68,80,100,250,500,800,1000,3000,5000,8000}; 75 | const static uint16_t DecayReleaseRate[16]={6,24,48,72,114,168,204,240,300,750,1500,2400,3000,9000,15000,24000}; 76 | 77 | static uint8_t rightOutput; // pin9 78 | static uint8_t leftOutput; // pin 10 GG Addon for StereoSID 79 | static Sid_t Sid; 80 | static Oscillator_t osc[OSCILLATORS]; 81 | /** 82 | * Initialize Arduino Register. Take control of Timer 1 and Timer 2. 83 | * Timer 1 will be used for PWM output (aka Analog-approximation) 84 | * Timer 2 will be used to compute output based on status of SID registers 85 | * 86 | * OCR1A is an output compare register. It is constantly compared with a timer, which generates a PWM pulse. 87 | * The duty cycle of the PWM pulse is determined by the value of OCR1A. The PWM waveform is outputted to the OC1A pin. 88 | * 89 | * timer1A is pin 9 (11 on Mega) 90 | * timer1B is pin 10 (12 on Mega) 91 | * Reference http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM 92 | * for explanation of usage of _BV(COM1B1) 93 | * Additional information on 94 | + http://www.avrfreaks.net/forum/tut-c-pwm-complete-idiots 95 | + http://sphinx.mythic-beasts.com/~markt/ATmega-timers.html 96 | + http://www.avrfreaks.net/forum/tut-c-newbies-guide-avr-pwm-incomplete?name=PNphpBB2&file=viewtopic&t=68302 97 | */ 98 | void initialize() 99 | { 100 | // TIMER1 used to generate sound output 101 | // TIMER1: Fast PWM 8-bit 102 | TCCR1A = (1 << WGM10) | (1 << COM1A1) /** GG ADDED the following to enable pin 10 --> */ | _BV(COM1B1); 103 | // TIMER1: no prescaling 104 | TCCR1B = (1 << WGM12) | (1 << CS10); 105 | // ? TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20); 106 | 107 | 108 | #if defined(__AVR_ATmega8__)|| defined(__AVR_ATmega128__) 109 | // TIMER2 used to generate sample and ms interrupts 110 | // TIMER2: Normal Mode 111 | TCCR2 = 0; 112 | // TIMER2: clock/8 prescaling 113 | TCCR2 |= (1 << CS21); 114 | // TIMER2: set compare value to generate a 16kHz sample rate 115 | OCR2 = SAMPLERATECOUNT; 116 | // interrupt mask register: enable timer2 OCR2A interrupt 117 | TIMSK = (1 << OCIE2); 118 | 119 | // interrupt mask register: enable timer1 overflow 120 | TIMSK |= (1 << TOIE1); 121 | #else 122 | // TIMER2 used to generate sample and ms interrupts 123 | // TIMER2: Normal Mode 124 | TCCR2A = 0 ; 125 | // TIMER2: clock/8 prescaling 126 | TCCR2B = (1 << CS21); 127 | // TIMER2: set compare value to generate a 16kHz sample rate 128 | OCR2A = SAMPLERATECOUNT; 129 | // interrupt mask register: enable timer2 OCR2A interrupt 130 | TIMSK2 = (1 << OCIE2A); 131 | 132 | // interrupt mask register: enable timer1 overflow 133 | TIMSK1 = (1 << TOIE1); 134 | #endif 135 | } 136 | 137 | static int8_t wave(Voice_t *voice, uint16_t phase) 138 | { 139 | int8_t out; 140 | uint8_t n = phase >> 8; 141 | uint8_t wavetype = voice->ControlReg; 142 | 143 | if(wavetype & SAWTOOTH) 144 | { 145 | out = n - 128; 146 | } 147 | 148 | if(wavetype & TRIANGLE) 149 | { 150 | if(n&0x80) 151 | out = ((n^0xFF)<<1)-128; 152 | else 153 | out = (n<<1)-128; 154 | } 155 | 156 | if(wavetype & RECTANGLE) 157 | { 158 | if(n > (voice->PW >> 4)) // SID has 12Bit pwm, here we use only 8Bit 159 | out = 127; 160 | else 161 | out = -127; 162 | } 163 | 164 | return out; 165 | } 166 | 167 | static uint8_t remapDirectFilter(uint16_t temp, uint16_t temp1); 168 | 169 | static void waveforms() 170 | { 171 | static uint16_t phase[OSCILLATORS], sig[OSCILLATORS]; 172 | static int16_t temp,temp1; 173 | static uint8_t i,j,k; 174 | static uint16_t noise = 0xACE1; 175 | static uint8_t noise8; 176 | static uint16_t tempphase; 177 | 178 | // noise generator based on Galois LFSR 179 | noise = (noise >> 1) ^ (-(noise & 1) & 0xB400u); 180 | noise8 = noise>>8; 181 | 182 | for(i = 0; i< OSCILLATORS; i++) 183 | { 184 | j = (i == 0 ? 2 : i - 1); 185 | tempphase=phase[i]+osc[i].freq_coefficient; //0.88us 186 | if(Sid.block.voice[i].ControlReg&NOISE) 187 | { 188 | if((tempphase^phase[i])&0x4000) sig[i]=noise8*osc[i].envelope; 189 | } 190 | else 191 | { 192 | if(Sid.block.voice[i].ControlReg&RINGMOD) 193 | { 194 | if(phase[j]&0x8000) 195 | sig[i]=osc[i].envelope*-wave(&Sid.block.voice[i],phase[i]); 196 | else 197 | sig[i]=osc[i].envelope*wave(&Sid.block.voice[i],phase[i]); 198 | } 199 | else 200 | { 201 | if(Sid.block.voice[i].ControlReg&SYNC) 202 | { 203 | if(tempphase < phase[j]) 204 | phase[i] = 0; 205 | } 206 | else 207 | sig[i]=osc[i].envelope*wave(&Sid.block.voice[i],phase[i]); //2.07us 208 | } 209 | } 210 | phase[i]=tempphase; 211 | } 212 | 213 | // voice filter selection 214 | temp=0; // direct output variable 215 | temp1=0; // filter output variable 216 | if(Sid.block.RES_Filt&FILT1) temp1+=sig[0]; 217 | else temp+=sig[0]; 218 | 219 | { 220 | uint16_t directVoice2=0, filterVoice2=0; 221 | if(Sid.block.RES_Filt&FILT2) filterVoice2+=sig[1]; 222 | else directVoice2+=sig[1]; 223 | // VOICE2 Only 224 | leftOutput= remapDirectFilter( directVoice2, filterVoice2); 225 | } 226 | 227 | if(Sid.block.RES_Filt&FILT3) temp1+=sig[2]; 228 | else if(!(Sid.block.Mode_Vol&VOICE3OFF))temp+=sig[2]; // voice 3 with special turn off bit 229 | 230 | //filterOutput = IIR2((struct IIR_filter*)&filter04_06, filterInput); 231 | //IIR2(filter04_06, temp1); 232 | 233 | k=remapDirectFilter(temp,temp1); 234 | 235 | 236 | // Output to PWM: 237 | rightOutput = k; 238 | 239 | } 240 | /** GG: This class merges direct and filter-ed output, anyway 241 | * no real filter is implemented. 242 | */ 243 | static uint8_t remapDirectFilter(uint16_t temp, uint16_t temp1){ 244 | uint8_t k=(temp>>8)+128; 245 | k+=temp1>>10; // no real filter implemeted yet 246 | return k; 247 | } 248 | 249 | static void envelopes() 250 | { 251 | uint8_t n; 252 | uint8_t controll_regadr[OSCILLATORS]={4,11,18}; 253 | // if gate is ONE then the attack,decay,sustain cycle begins 254 | // if gate switches to zero the sound decays 255 | for(n=0;nMAXLEVEL) 263 | { 264 | osc[n].amp=MAXLEVEL; 265 | osc[n].attackdecay_flag=false; // if level reached, then switch to decay 266 | } 267 | } 268 | else // decay cycle 269 | { 270 | if(osc[n].amp>osc[n].level_sustain) 271 | { 272 | osc[n].amp-=osc[n].m_decay; 273 | if(osc[n].amp0) 282 | { 283 | osc[n].amp-=osc[n].m_release; 284 | if(osc[n].amp<0) osc[n].amp=0; 285 | } 286 | } 287 | osc[n].envelope=osc[n].amp>>8; 288 | } 289 | } 290 | 291 | /************************************************************************ 292 | 293 | interrupt routine timer 1 overflow 294 | - set PWM output 295 | 296 | 297 | ************************************************************************/ 298 | ISR(TIMER1_OVF_vect) 299 | { 300 | OCR1A = rightOutput; // Output to PWM 301 | OCR1B = leftOutput; 302 | } 303 | 304 | 305 | /************************************************************************ 306 | 307 | interrupt routine timer 2 16kHz 308 | - calculate waverform phases 309 | - calculate waveforms 310 | - calculate attack decay release (1kHz) 311 | 312 | ************************************************************************/ 313 | #if defined(__AVR_ATmega8__)|| defined(__AVR_ATmega128__) 314 | ISR(TIMER2_COMP_vect) 315 | { 316 | static uint8_t mscounter = 0; 317 | OCR2 += SAMPLERATECOUNT; // Output to PWM 318 | waveforms(); //~22us 319 | 320 | if(mscounter++ >= MSCOUNT) 321 | { 322 | envelopes(); //~16us 323 | mscounter = 0; 324 | } 325 | } 326 | #else 327 | 328 | ISR(TIMER2_COMPA_vect) 329 | { 330 | static uint8_t mscounter = 0; 331 | OCR2A += SAMPLERATECOUNT; // Output to PWM 332 | waveforms(); //~36us 333 | 334 | if(mscounter++ >= MSCOUNT) 335 | { 336 | envelopes(); //~16us 337 | mscounter = 0; 338 | } 339 | } 340 | #endif 341 | 342 | // Constructor ///////////////////////////////////////////////////////////////// 343 | // Function that handles the creation and setup of instances 344 | 345 | void SID::begin() 346 | { 347 | pinMode(9, OUTPUT); 348 | pinMode(10, OUTPUT); 349 | initialize(); 350 | 351 | //initialize SID-registers 352 | Sid.sidregister[6]=0xF0; 353 | Sid.sidregister[13]=0xF0; 354 | Sid.sidregister[20]=0xF0; 355 | 356 | 357 | // set all amplitudes to zero 358 | for(int n=0;nNUMREGISTERS-1) 387 | return 0; 388 | 389 | Sid.sidregister[regnum]=value; 390 | 391 | switch(regnum) 392 | { 393 | //voice1 394 | case 1: 395 | osc[0].freq_coefficient=((uint16_t)Sid.sidregister[0]+((uint16_t)Sid.sidregister[1]<<8))>>2; 396 | break; 397 | case 5: setenvelope(&Sid.block.voice[0]);break; 398 | case 6: setenvelope(&Sid.block.voice[0]);break; 399 | 400 | //voice2 401 | case 8: 402 | osc[1].freq_coefficient=((uint16_t)Sid.sidregister[7]+((uint16_t)Sid.sidregister[8]<<8))>>2; 403 | break; 404 | case 12: setenvelope(&Sid.block.voice[1]);break; 405 | case 13: setenvelope(&Sid.block.voice[1]);break; 406 | 407 | //voice3 408 | case 15: 409 | osc[2].freq_coefficient=((uint16_t)Sid.sidregister[14]+((uint16_t)Sid.sidregister[15]<<8))>>2; 410 | break; 411 | case 19: setenvelope(&Sid.block.voice[2]);break; 412 | case 20: setenvelope(&Sid.block.voice[2]);break; 413 | } 414 | return 1; 415 | } 416 | 417 | /************************************************************************ 418 | 419 | uint8_t get_sidregister(uint8_t regnum) 420 | 421 | The registers of the virtual SID are read by this routine. 422 | If an invalid register is requested it returns zero. 423 | 424 | ************************************************************************/ 425 | uint8_t SID::get_register(uint8_t regnum) 426 | { 427 | if(regnum>NUMREGISTERS-1) 428 | return 0; 429 | return Sid.sidregister[regnum]; 430 | } 431 | 432 | // Private Methods ///////////////////////////////////////////////////////////// 433 | // Functions only available to other functions in this library 434 | 435 | uint8_t SID::get_wavenum(Voice_t *voice) 436 | { 437 | uint8_t n; 438 | 439 | if(voice==&Sid.block.voice[0]) n=0; 440 | if(voice==&Sid.block.voice[1]) n=1; 441 | if(voice==&Sid.block.voice[2]) n=2; 442 | 443 | return n; 444 | } 445 | 446 | void SID::setfreq(Voice_t *voice,uint16_t freq) 447 | { 448 | uint32_t templong; 449 | uint8_t n; 450 | 451 | n=get_wavenum(voice); 452 | 453 | templong=freq; 454 | osc[n].freq_coefficient=templong*4000/SAMPLEFREQ; 455 | } 456 | 457 | 458 | void SID::setenvelope(Voice_t *voice) 459 | { 460 | uint8_t n; 461 | 462 | n=get_wavenum(voice); 463 | osc[n].attackdecay_flag=true; 464 | 465 | osc[n].level_sustain=(voice->SustainRelease>>4)*SUSTAINFACTOR; 466 | osc[n].m_attack=MAXLEVEL/AttackRate[voice->AttackDecay>>4]; 467 | osc[n].m_decay=(MAXLEVEL-osc[n].level_sustain*SUSTAINFACTOR)/DecayReleaseRate[voice->AttackDecay&0x0F]; 468 | osc[n].m_release=(osc[n].level_sustain)/DecayReleaseRate[voice->SustainRelease&0x0F]; 469 | } 470 | 471 | 472 | // Include a set of midi constant like 473 | // const uint8_t A4=81; 440Hz 474 | #include "midi_support.h" 475 | 476 | 477 | uint16_t SID::midi2Sid(uint8_t midin){ 478 | return midin <=127 ? MIDI::midi2sidMapper[ midin ]:0; 479 | } 480 | 481 | void SID::play(uint8_t voice, uint16_t freq){ 482 | byte low = freq & 0x00FF; 483 | byte high= freq >>8; 484 | set_register(voice+0,low); 485 | set_register(voice+1,high); 486 | } 487 | 488 | /** 489 | ---------------- 490 | A Midnight Piano 491 | ---------------- 492 | 493 | A nice piano sound. Works well if a second voice plays the same notes when detuned 10 to 20. 494 | 495 | Waveform: Pulse 496 | Pulse Width: 2700 497 | Attack: 2 498 | Decay: 11 499 | Sustain: 5 500 | Release: 0 501 | Release Point: 3 502 | 503 | 504 | 505 | */ 506 | void SID::loadPiano(uint8_t voice){ 507 | configVoice(voice,RECTANGLE /*also pulse */,3700,0x2B,0x50,3); 508 | //configVoice(voice,RECTANGLE /*also pulse */,2700,0x2B,0x50,3); 509 | 510 | } 511 | 512 | 513 | 514 | /** Fast way of configuring a voice, ADSR included. 515 | ReleasePoint is unimplemented. 516 | It seems how much 1/60 of seconds the note will last. 517 | */ 518 | void SID::configVoice(uint8_t voice, uint8_t waveform, uint16_t pulsewidth /*12bit*/, uint8_t attackDecay, uint8_t sustainRelease, uint8_t releasePoint) 519 | { 520 | 521 | uint8_t pwlow = pulsewidth & 0x00FF; 522 | uint8_t pwhigh= pulsewidth >>8; 523 | set_register(voice+2 /*PW LOW*/,pwlow); set_register(voice+3,pwhigh); 524 | set_register(voice+5,attackDecay); 525 | set_register(voice+6,sustainRelease); 526 | // 33=%100001 527 | // ^ Gate on (ADSR on) 528 | // ^ Sawtooth Wave (Bit 5) 529 | set_register(voice+4, waveform | GATE); 530 | 531 | 532 | } 533 | /* GG Follow complex functions */ 534 | void SID::playTestIntro() { 535 | loadPiano(VOICE1_Right); 536 | loadPiano(VOICE2_Left); 537 | loadPiano(VOICE3); 538 | set_register(24,15); // MAX VOLUME 539 | 540 | uint8_t i; 541 | for(i=MIDI::nC3; i<=MIDI::nC6; i+=2){ 542 | 543 | play(VOICE1,midi2Sid(i)); 544 | play(VOICE2,midi2Sid(MIDI::nA4)); 545 | delay(90); 546 | play(VOICE2,midi2Sid(MIDI::nG4)); 547 | play(VOICE1,midi2Sid(i+1)); 548 | delay(90); 549 | //play(VOICE3,midi2Sid(MIDI::nD5)); 550 | //delay(50); 551 | } 552 | 553 | // // play a tadalike 554 | // play(VOICE1,midi2Sid(60 /*DO*/)); 555 | // delay(200); 556 | // play(VOICE2,midi2Sid(62 /*RE*/)); 557 | // delay(200); 558 | // play(VOICE1,0); 559 | // play(VOICE2,0); 560 | // // Hmmm Too voice seems distort on piezo...time to aplify better? 561 | // play(VOICE1, midi2Sid(64 /*MI*/)); 562 | // delay(250); 563 | // play(VOICE1,0); 564 | // play(VOICE2, midi2Sid(60 /*DO*/)); 565 | // delay(250); 566 | play(VOICE3,0); 567 | play(VOICE2,0); 568 | play(VOICE1,0); 569 | } 570 | -------------------------------------------------------------------------------- /SID.h: -------------------------------------------------------------------------------- 1 | /* 2 | SID.h - Atmega8 MOS6581 SID Emulator 3 | Copyright (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 4 | Arduino Library Conversion by Mario Patino, cybernesto(at)gmail.com 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | // ensure this library description is only included once 22 | #ifndef SID_h 23 | #define SID_h 24 | 25 | #include 26 | 27 | #define NUMREGISTERS 29 28 | #define OSCILLATORS 3 29 | #define MAXLEVEL ( 0xFFFF / OSCILLATORS ) 30 | #define SUSTAINFACTOR ( MAXLEVEL / 15 ) 31 | 32 | #define SAMPLEFREQ 16000L 33 | #define SAMPLERATECOUNT (F_CPU/(8*SAMPLEFREQ)-1) 34 | 35 | #define ENVELOPE_FREQ 1000L 36 | #define MSCOUNT (SAMPLEFREQ/ENVELOPE_FREQ-1) 37 | 38 | 39 | // SID Registers 40 | #define VOICE1 0 41 | #define VOICE2 7 42 | #define VOICE3 14 43 | #define CONTROLREG 4 44 | #define ATTACKDECAY 5 45 | #define SUSTAINRELEASE 6 46 | 47 | // Stereo SID Addons 48 | #define VOICE1_Right 0 49 | #define VOICE3_Right 14 50 | #define VOICE2_Left 7 51 | 52 | 53 | // SID voice control register bits 54 | #define GATE (1<<0) 55 | #define SYNC (1<<1) 56 | #define RINGMOD (1<<2) 57 | #define TEST (1<<3) // not implemented 58 | #define TRIANGLE (1<<4) 59 | #define SAWTOOTH (1<<5) 60 | #define RECTANGLE (1<<6) 61 | #define NOISE (1<<7) 62 | 63 | // SID RES/FILT ( reg.23 ) 64 | #define FILT1 (1<<0) 65 | #define FILT2 (1<<1) 66 | #define FILT3 (1<<2) 67 | // SID MODE/VOL ( reg.24 ) 68 | #define VOICE3OFF (1<<7) 69 | 70 | typedef struct 71 | { 72 | uint16_t Freq; // Frequency: FreqLo/FreqHi 73 | uint16_t PW; // PulseWidth: PW LO/HI only 12 bits used in SID 74 | uint8_t ControlReg; // NOISE,RECTANGLE,SAWTOOTH,TRIANGLE,TEST,RINGMOD,SYNC,GATE 75 | uint8_t AttackDecay; // bit0-3 decay, bit4-7 attack 76 | uint8_t SustainRelease; // bit0-3 release, bit4-7 sustain 77 | } Voice_t; 78 | 79 | typedef struct 80 | { 81 | Voice_t voice[3]; 82 | uint16_t FC; // not implemented 83 | uint8_t RES_Filt; // partly implemented 84 | uint8_t Mode_Vol; // partly implemented 85 | uint8_t POTX; // not implemented 86 | uint8_t POTY; // not implemented 87 | uint8_t OSC3_Random;// not implemented 88 | uint8_t ENV3; // not implemented 89 | } Blocks_t; 90 | 91 | typedef union 92 | { 93 | Blocks_t block; 94 | uint8_t sidregister[NUMREGISTERS]; 95 | } Sid_t; 96 | 97 | typedef struct 98 | { 99 | uint16_t freq_coefficient; 100 | uint8_t envelope; 101 | uint16_t m_attack; 102 | uint16_t m_decay; 103 | uint16_t m_release; 104 | uint8_t attackdecay_flag; 105 | int16_t level_sustain; 106 | int16_t amp; 107 | } Oscillator_t; 108 | 109 | // library interface description 110 | class SID 111 | { 112 | // user-accessible "public" interface 113 | public: 114 | void begin(); 115 | uint8_t set_register(uint8_t regnum, uint8_t value); 116 | uint8_t get_register(uint8_t regnum); 117 | void playTestIntro(); 118 | // GG: Addon facilities 119 | void loadPiano(uint8_t voice); 120 | void configVoice(uint8_t voice, uint8_t waveform, uint16_t pulsewidth /*12bit*/, uint8_t attackDecay, uint8_t sustainRelease, uint8_t releasePoint); 121 | 122 | uint16_t midi2Sid(uint8_t midin); 123 | void play(uint8_t voice, uint16_t freq); 124 | 125 | // library-accessible "private" interface 126 | private: 127 | uint8_t get_wavenum(Voice_t *voice); 128 | void setfreq(Voice_t *voice,uint16_t freq); 129 | void init_waveform(Voice_t *voice); 130 | void setenvelope(Voice_t *voice); 131 | }; 132 | 133 | #endif 134 | 135 | -------------------------------------------------------------------------------- /StereoSID.h: -------------------------------------------------------------------------------- 1 | /* 2 | SID.h - Atmega8 MOS6581 SID Emulator 3 | Copyright (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 4 | Arduino Library Conversion by Mario Patino, cybernesto(at)gmail.com 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | // ensure this library description is only included once 22 | #ifndef SID_h 23 | #define SID_h 24 | 25 | #include 26 | 27 | #define NUMREGISTERS 29 28 | #define OSCILLATORS 3 29 | #define MAXLEVEL ( 0xFFFF / OSCILLATORS ) 30 | #define SUSTAINFACTOR ( MAXLEVEL / 15 ) 31 | 32 | #define SAMPLEFREQ 16000L 33 | #define SAMPLERATECOUNT (F_CPU/(8*SAMPLEFREQ)-1) 34 | 35 | #define ENVELOPE_FREQ 1000L 36 | #define MSCOUNT (SAMPLEFREQ/ENVELOPE_FREQ-1) 37 | 38 | 39 | // SID Registers 40 | #define VOICE1 0 41 | #define VOICE2 7 42 | #define VOICE3 14 43 | #define CONTROLREG 4 44 | #define ATTACKDECAY 5 45 | #define SUSTAINRELEASE 6 46 | 47 | // Stereo SID Addons 48 | #define VOICE1_Right 0 49 | #define VOICE3_Right 14 50 | #define VOICE2_Left 7 51 | 52 | 53 | // SID voice control register bits 54 | #define GATE (1<<0) 55 | #define SYNC (1<<1) 56 | #define RINGMOD (1<<2) 57 | #define TEST (1<<3) // not implemented 58 | #define TRIANGLE (1<<4) 59 | #define SAWTOOTH (1<<5) 60 | #define RECTANGLE (1<<6) 61 | #define NOISE (1<<7) 62 | 63 | // SID RES/FILT ( reg.23 ) 64 | #define FILT1 (1<<0) 65 | #define FILT2 (1<<1) 66 | #define FILT3 (1<<2) 67 | // SID MODE/VOL ( reg.24 ) 68 | #define VOICE3OFF (1<<7) 69 | 70 | typedef struct 71 | { 72 | uint16_t Freq; // Frequency: FreqLo/FreqHi 73 | uint16_t PW; // PulseWidth: PW LO/HI only 12 bits used in SID 74 | uint8_t ControlReg; // NOISE,RECTANGLE,SAWTOOTH,TRIANGLE,TEST,RINGMOD,SYNC,GATE 75 | uint8_t AttackDecay; // bit0-3 decay, bit4-7 attack 76 | uint8_t SustainRelease; // bit0-3 release, bit4-7 sustain 77 | } Voice_t; 78 | 79 | typedef struct 80 | { 81 | Voice_t voice[3]; 82 | uint16_t FC; // not implemented 83 | uint8_t RES_Filt; // partly implemented 84 | uint8_t Mode_Vol; // partly implemented 85 | uint8_t POTX; // not implemented 86 | uint8_t POTY; // not implemented 87 | uint8_t OSC3_Random;// not implemented 88 | uint8_t ENV3; // not implemented 89 | } Blocks_t; 90 | 91 | typedef union 92 | { 93 | Blocks_t block; 94 | uint8_t sidregister[NUMREGISTERS]; 95 | } Sid_t; 96 | 97 | typedef struct 98 | { 99 | uint16_t freq_coefficient; 100 | uint8_t envelope; 101 | uint16_t m_attack; 102 | uint16_t m_decay; 103 | uint16_t m_release; 104 | uint8_t attackdecay_flag; 105 | int16_t level_sustain; 106 | int16_t amp; 107 | } Oscillator_t; 108 | 109 | // library interface description 110 | class SID 111 | { 112 | // user-accessible "public" interface 113 | public: 114 | void begin(); 115 | uint8_t set_register(uint8_t regnum, uint8_t value); 116 | uint8_t get_register(uint8_t regnum); 117 | void playTestIntro(); 118 | // GG: Addon facilities 119 | void loadPiano(uint8_t voice); 120 | void configVoice(uint8_t voice, uint8_t waveform, uint16_t pulsewidth /*12bit*/, uint8_t attackDecay, uint8_t sustainRelease, uint8_t releasePoint); 121 | 122 | uint16_t midi2Sid(uint8_t midin); 123 | void play(uint8_t voice, uint16_t freq); 124 | 125 | // library-accessible "private" interface 126 | private: 127 | uint8_t get_wavenum(Voice_t *voice); 128 | void setfreq(Voice_t *voice,uint16_t freq); 129 | void init_waveform(Voice_t *voice); 130 | void setenvelope(Voice_t *voice); 131 | }; 132 | 133 | #endif 134 | 135 | -------------------------------------------------------------------------------- /doc/ADSR-half-moon-lake-patches-v1.txt: -------------------------------------------------------------------------------- 1 | The Half Moon Lake SID Patch Collection 2 | --------------------------------------- 3 | 4 | For many people, the hardest part of transcribing a SID song is finding the right Attack, Decay, Sustain, and Release (ADSR) envelope patch for their SID. As a public service, the SID community of HALF MOON LAKE BBS has joined together in an effort to prepare an introduction to ADSR patches for SID songs. 5 | 6 | Before I continue, I would like to thank Paul Labeaud, The Trooper, Paul Trauth, Jeff Olsen, and Joe Grau for contributing patches, comments, and advice to this collection. And a "special" thank you to Jabba Hutt and his partner in crime, Bobbye, for making a promise that I ended up keeping for them. . 7 | 8 | Now for the disclaimer. Quite frankly, it's near impossible to exactly duplicate a particular sound on the SID chip. You can try and get a reasonable approximation of most instruments, sometimes. And what might sound good on one SID chip may not sound quite the same on another due to the loose manufacturing specs of the SID chip. This is especially true when using the filters. 9 | 10 | The SID patches that follow are not etched in stone, but are examples for you to experiment with. Tinker with the patches until they sound right to you on your SID chip. Add to or subtract from the various values in the ADSR patch to produce different patches. Several of the examples in this collection illustrate how modest changes can result in different sounds. 11 | 12 | Be aware that the sound produced by particular patches can be affected very strongly by the tempo of the song and the note durations. What sounds great with eighth notes at 100 could be a disaster with 16ths at 150. No single patch is going to work for every song. Which is why a collection of patches is needed. 13 | 14 | Some envelopes are very sensitive to pitch. For some reason, patches using the Pulse Wave in octaves 0, 1, and some of 2 can sound out of tune. The Triangle Wave can become too shrill in the octaves 6 and 7. Be careful and forewarned. One solution is to Transpose the offending notes into a different octave. Another is to temporarily modify the patch while the notes are in that range. There is no rule that a single ADSR patch must last the entire song for each voice. 15 | 16 | Many SIDarrangers will not use the filter commands due to the differences from machine to machine. However, always set F-X "on" as this command filters out some of the background noise the SID chip picks up from the computer circuitry. It can make a big difference on some 64s and does not effect the quality of the patch. Also, the SID chip is designed to filter only one voice at a time. Unless you are trying to achieve some special effect, do not filter two voices at once. 17 | 18 | Be careful to never let two voices using the same waveform play notes of the exact same pitch at the very same time. Detune one of the voices for a more harmonic effect. You can also make a slight change (like add or subtract 1) to the Sustain and Release values of one voice to make a richer, fuller sound. 19 | 20 | It's been recommended previously not to use Attack = 0 for all 3 voices at the same time. Some SID chips cannot quite handle it and you get one voice sounding slightly off-beat. Setting Attack = 1 seems to resolve this problem. 21 | 22 | To quote Craig Chamberlain directly, "Don't overlook the subtle but significant effects that different envelope settings can have on a song. Envelopes seem to be one of the most ignored aspects of songs." And yet it is one of the least documented areas of SIDwriting. Don't always be satisfied with the first patch that sounds alright for your SID. Try some different waveforms and experiment. 23 | 24 | Now for the Introductory ADSR patch collection, Volume 1... 25 | 26 | 27 | ------------------------ 28 | Paul's Funky Bass Guitar 29 | ------------------------ 30 | 31 | If you don't like fooling around with filters, you can eliminate it and it still sounds funky. 32 | 33 | Waveform: Pulse 34 | Pulse Width: 1800 35 | Attack: 0 36 | Decay: 10 37 | Sustain: 0 38 | Release: 10 39 | Release Point: 2 40 | Filter: Yes 41 | Filter Mode: L 42 | Resonance: 10 43 | Autofilter: 10 44 | 45 | 46 | ------------------ 47 | Whispering Harmony 48 | ------------------ 49 | 50 | You can use this envelope when you want a voice to be heard, but not as overpowering as the rest. 51 | 52 | Waveform: Sawtooth 53 | Attack: 2 54 | Decay: 10 55 | Sustain: 8 56 | Release: 10 57 | Release Point: 2 58 | 59 | 60 | ------------------ 61 | Harry Bratt's Drum 62 | ------------------ 63 | 64 | This drum sounds good in the first and second octave. You need to insert the ABSolute Set Pitch command before every note to be played by the drum, but in an octave higher. Refer to your manual for precise instructions on using ABS. 65 | 66 | Waveform: Pulse 67 | Pulse Width: 2048 68 | Pulse Sweep: 20 69 | Attack: 0 70 | Decay: 8 71 | Sustain: 0 72 | Release: 8 73 | Release Point: 1 74 | Vib. Depth: 3 75 | Vib. Rate: 2 76 | Portamento: 85-90 77 | 78 | 79 | --------------------- 80 | Castle Music Envelope 81 | --------------------- 82 | 83 | This envelope sounds like it should go with any medieval or castle music you may have lying around. 84 | 85 | Waveform: Triangle/Pulse 86 | Pulse Width: 2048 87 | Attack: 0 88 | Decay: 10 89 | Sustain: 8 90 | Release: 10 91 | Release Point: 2 92 | 93 | 94 | ----- 95 | Organ 96 | ----- 97 | 98 | For an organ sound, try this one. Vary the Pulse Width to range the sound from a full Church organ to more of a hurdy-gurdy sound. It is sensitive to note duration. 99 | 100 | Waveform: Pulse 101 | Pulse Width: 1000 102 | Attack: 5 103 | Decay: 15 104 | Sustain: 0 105 | Release: 12 106 | Release Point: 2 107 | 108 | 109 | --------------------------- 110 | John Roache's Ragtime Piano 111 | --------------------------- 112 | 113 | For a good ragtime piano sound, try this tested and true envelope. 114 | 115 | Waveform: Pulse 116 | Pulse Width: 1500 117 | Attack: 2 118 | Decay: 9 119 | Sustain: 1 120 | Release: 1 121 | Release Point: 1 122 | 123 | 124 | ---------- 125 | Soft Bells 126 | ---------- 127 | 128 | Two voices playing the same notes sound good with this one. Works well with classical music. 129 | 130 | Voice 1 Voice 2 131 | Waveform: Triangle Triangle 132 | Attack: 0 1 133 | Decay: 10 10 134 | Sustain: 0 0 135 | Release: 10 10 136 | Filter: Yes No 137 | Filter Mode: L - 138 | Resonance: 10 - 139 | Autofilter -10 - 140 | Detune 0 10 141 | 142 | 143 | ----------------------------- 144 | The Trooper's Metallic Guitar 145 | ----------------------------- 146 | 147 | Looking for that right sound for your heavy metal composition? 148 | 149 | Waveform: Sawtooth 150 | Attack: 0 151 | Decay: 7 152 | Sustain: 9 153 | Release: 7 154 | Release Point: 1 155 | Pulse Sweep: 10 - 15 156 | 157 | 158 | ------------- 159 | A Classic Duo 160 | ------------- 161 | 162 | For some classical songs, this pair of voices works quite well. They work best when used with Voice 1 and 2 both playing Treble notes. For songs that repeat measures, switch the envelopes to play the other's notes for a different sound, then back again when new measures start, to add a litle contrast to the song. 163 | 164 | Voice 1 Voice 2 165 | Waveform: Triangle Triangle 166 | Attack: 5 9 167 | Decay: 10 13 168 | Sustain: 12 0 169 | Release: 13 15 170 | Release Point: 1 1 171 | 172 | 173 | ---------------- 174 | A Nice Bass Line 175 | ---------------- 176 | 177 | One of the hardest things to do with some songs is finding a good envelope for the bass line. Here's one that has proven successful in the past. You'll probably have to adjust the Sustain and Release values to make it work for your note duration and tempo. 178 | 179 | Waveform: Pulse 180 | Pulse Width: 1800 181 | Attack: 1 182 | Decay: 10 183 | Sustain: 1 184 | Release: 10 185 | Release Point: 1 186 | Filter: Yes 187 | Filter Mode: L 188 | Resonance: 11 189 | Autofilter: -10 190 | 191 | 192 | -------------- 193 | Bass Drum Line 194 | -------------- 195 | 196 | Again, this drum requires setting the ABSolute Set Pitch command prior to each note in the bass line. This one is recommended to be set two octaves higher than the actual note. 197 | 198 | Waveform: Pulse 199 | Pulse Width: 2042 200 | Attack: 1 201 | Decay: 8 202 | Sustain: 11 203 | Release: 0 204 | Release Point: 1 205 | Portamento: 250 206 | 207 | 208 | --------- 209 | Flute-oid 210 | --------- 211 | 212 | For a different lilting sound, try this one. 213 | 214 | Waveform: Sawtooth 215 | Attack: 1 216 | Decay: 4 217 | Sustain: 14 218 | Release: 5 219 | Release Point: 1 220 | Vib. Depth: 30 221 | Vib. Rate: 1 222 | 223 | 224 | ---------------- 225 | A Midnight Piano 226 | ---------------- 227 | 228 | A nice piano sound. Works well if a second voice plays the same notes when detuned 10 to 20. 229 | 230 | Waveform: Pulse 231 | Pulse Width: 2700 232 | Attack: 2 233 | Decay: 11 234 | Sustain: 5 235 | Release: 0 236 | Release Point: 3 237 | 238 | 239 | ----------------- 240 | DC Star's Snapper 241 | ----------------- 242 | 243 | This one is a little hard to describe. It makes for a great bass counterpoint when the tempo and note durations are just right. Adds just a little something extra to a song. 244 | 245 | Waveform: Noise 246 | Attack: 0 247 | Decay: 8 248 | Sustain: 0 249 | Release: 6 250 | Release Point: 4 251 | 252 | 253 | ---------------------- 254 | Joe Grau's Harpsichord 255 | ---------------------- 256 | 257 | This set of voices will emulate a harpsichord. Be sure to detune Voice 2. Tinker with the Pulse Widths for different sounds. Values from 100 to 750 seems to work best. 258 | 259 | Voice 1 & 2 Voice 3 260 | Waveform: T/P T/P 261 | Pulse Width: 500 650 262 | Pulse Sweep: 8 8 263 | Attack: 0 0 264 | Decay: 12 11 265 | Sustain: 0 0 266 | Release: 10 9 267 | Release Point: 1 1 268 | Filter: - Yes 269 | Filter Mode: - L 270 | Filter Cutoff: - 1800 271 | Resonance: - 15 272 | 273 | 274 | --------------------- 275 | Madrigals and Chorals 276 | --------------------- 277 | 278 | This one has been used successfully on a number of madrigals and choral music. Be sure on voice 1 to TranSPose 12. 279 | 280 | Voice 1 & 2 Voice 3 281 | Waveform: Triangle Pulse 282 | Pulse Width: - 700 283 | Attack: 3 7 284 | Decay: 0 8 285 | Sustain: 14 14 286 | Release: 4 4 287 | Release Point: 1 1 288 | Transpose: 12/0 -12 289 | Filter: - Yes 290 | Filter Mode: - B 291 | Resonance - 0 292 | Autofilter: - -20 293 | 294 | 295 | ------------- 296 | Viola/Strings 297 | ------------- 298 | 299 | This one is touchy, very sensitive to both note duration and tempo. It can work when everything is right, especially as a counterpoint harmony. 300 | 301 | Waveform: Sawtooth 302 | Attack: 9 303 | Decay: 0 304 | Sustain: 12 305 | Release: 8 306 | Release Point: 0 307 | 308 | 309 | --------------- 310 | Downhome Fiddle 311 | --------------- 312 | 313 | If the tempo is quick and the notes are short, this fiddle envelope will bring any jaded listener to their feet. 314 | 315 | Waveform: Pulse 316 | Pulse Width: 3600 317 | Attack: 5 318 | Decay: 3 319 | Sustain: 7 320 | Release: 0 321 | Release Point: 3 322 | 323 | 324 | ---------- 325 | Pipe Organ 326 | ---------- 327 | 328 | This one is a haunting pipe organ, invoking images of European cathedrals. 329 | 330 | Waveform: Pulse 331 | Pulse Width: 2000 332 | Attack: 3 333 | Decay: 6 334 | Sustain: 6 335 | Release: 3 336 | Release Point 3 337 | 338 | 339 | ------------ 340 | Jazz Trumpet 341 | ------------ 342 | 343 | Depending on the song's tempo, this ranges from a lively jazz trumpet to a soulful blues dirge. 344 | 345 | Waveform: Sawtooth 346 | Attack: 5 347 | Decay: 14 348 | Sustain: 0 349 | Release: 9 350 | Release Point: 1 351 | 352 | ---------------- 353 | 354 | 355 | Good luck with this introduction. 356 | 357 | Utah Blaine & 358 | the People of 359 | 360 | Half Moon Lake 361 | <504> 392-1146 362 | 363 | -------------------------------------------------------------------------------- /doc/sid-jump-start.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 180 | 191 | 192 | 193 |
194 |

195 |
196 |

1 The super minimal SID manual

197 |
198 |

199 | This manual has taken information on wikipedia and from this html page 200 | which reproduce the original datasheet1. 201 |

202 | 203 |

204 | For better performance, it is suggested to use an arduino uno as a 205 | I2C-connected SID emulator. 206 |

207 |
208 | 209 |
210 |

1.1 Let's Start

211 |
212 |

213 | The 6581 Sound Interface Device (SID) is a single-chip, 3-voice electronic music synthesizer/sound effects generator compatible with the 65XX and similar microprocessor families 214 |

215 | 216 |

217 | The SID has been part of the C/64 success. 218 |

219 | 220 |

221 | This arduino emulation library divert Voice2 to another pin, to enable a 222 | "Stero" effect somewhat. 223 | Connect pin9 and pin 10 to two piezo speaker, and the other side to 224 | the ground. 225 |

226 | 227 |

228 | The 6581 consists of three synthesizer “voices” which can be used 229 | independently or in conjunction to create complex sounds. 230 | Each voice consists of a Tone Oscillator/Waveform Generator, an 231 | Envelope Generator and an Amplitude Modulator. 232 | The Envelope Generator is controlled via an ADSR (Attack Decay Sustain 233 | Release) configuration. 234 |

235 | 236 |

237 | When a mechanical musical instrument produces sound, the Loudness of 238 | the sound produced changes over time in a way that varies from 239 | instrument to instrument. When a pipe organ's key is pressed, for 240 | example, it plays a note at constant volume; the sound dies quickly 241 | when the key is released. 242 | By contrast, the sound of a guitar is 243 | loudest immediately after a string is plucked, and quickly fades. 244 |

245 | 246 |

247 | A synthesizer's ADSR envelope is a way to tailor the timbre for the 248 | synth, sometimes to make it sound more like a mechanical instrument. 249 | A quick attack with little decay helps it sound more like an organ; a 250 | longer decay and zero sustain makes it sound more like a guitar. While 251 | envelopes are most often applied to volume, they are also commonly 252 | used to control other sound elements, such as filter frequencies or 253 | oscillator pitches. 254 |

255 | 256 |

257 | Today modern synthesizers use samples to reproduce sound with a strong 258 | accuracy. 259 | But in 1982, ADSR was a state-of-the-art for a music chip. 260 |

261 | 262 |

263 | For more information look at http://en.wikiaudio.org/ADSR_envelope 264 |

265 | 266 |

267 | The suggested setup is to have an arduino as a SID, driven via I2C (see examples) 268 | The I2C protocol in the example is very easy: send two bytes, one for 269 | the register and the second for the value to store inside. 270 |

271 | 272 | 273 |
274 |

sid-registers.png 275 |

276 |
277 |
278 |
279 |
280 | 281 |
282 |

2 How to convert midi files and play them on Stereo Sid

283 |
284 |

285 | MIDI file are a very old standard which fit more or less in the Sid. 286 | MIDI specification is 127 note wide, whereas SID has 94 possibilites. 287 | MIDI support a bit more notes. 288 | Stereo Sid provide you a midi2Sid function to remap a 8bit Midi note 289 | to a 16bit SID register spec. 290 | The function will emit a silence for all notes the SID cannot play. 291 | SID playable MIDI range is 25-118. 292 | To convert it we used the 440hz (A4) center (midi 81, 0x1CD6 on SID). 293 |

294 |
295 |
296 |

2.1 Setup

297 |
298 |

299 | Because SID can generate only 3 voices at a time, you should edit 300 | your midi with some program like AriaMaestosa 301 | (http://ariamaestosa.sourceforge.net/) to be sure it fits nicely in 302 | your SID, i.e. does not use more then three instruments. 303 | If you do this step before dumping and exporting, the resulting file 304 | fill be easier to play. 305 |

306 |
307 |
308 |
309 |

2.2 Compile midicsv

310 |
311 |

312 | Download and compile midicsv from 313 | http://www.fourmilab.ch/webtools/midicsv/ 314 | Midicsv is a very good tool and will save your day 315 |

316 |
317 |
318 |
319 |

2.3 Simple approach

320 |
321 |

322 | A simple approach is to extract 3 tracks from a midi and generate three 323 | simple C source arrays to push in a player sketch. 324 | Midicsv dump the single note like 325 | Track, Time, Note_on_c, Channel, Note, Velocity 326 | Read midicsv manual for more information. 327 |

328 | 329 |

330 | With this command 331 |

332 |
333 | 334 |
./midicsv  doremifasolasido.mid  | egrep ^2 | egrep Note_on_c |cut -d , -f 5,2
335 | 
336 |
337 |

338 | you can extract a list of { duration, note } for track 2. 339 | We track down only the note start for every track (it is a 340 | over-simplification). 341 | The key idea is to have three "queue" with a pointer to the current 342 | note and a global time counter. 343 | after pushing 3 notes, we increment the clock and play the next note 344 | when is the right time. 345 |

346 | 347 |

348 | The empire_player.ino demo will show you this in practice. 349 |

350 |
351 |
352 |
353 | 354 | 355 | 356 |
357 |

3 Drums: SID Configuration

358 |
359 |

360 | Take a look at 361 | http://www.lyonlabs.org/commodore/stereo-sid/qlink/half-moon-lake-patches-v1.txt 362 | for more ADSR patterns 363 |

364 |
365 | 366 |
367 |

3.1 Viola/Strings

368 |
369 |
370 |

371 | Waveform: Sawtooth 372 | Attack: 9 373 | Decay: 0 374 | Sustain: 12 375 | Release: 8 376 | Release Point: 0 377 |

378 |
379 |
380 | 381 |
382 |

3.2 Pipe Organ

383 |
384 |

385 | Waveform: Pulse 386 | Pulse Width: 2000 Reg 2/3 (12 bit però) 387 | PWout = (PWnReg/40.95) % 388 | Attack: 3 389 | Decay: 6 390 | Sustain: 6 391 | Release: 3 392 | Release Point 3 393 |

394 |
395 |
396 |
397 |
398 |

4 Reference

399 |
400 |
401 |

Footnotes:

402 | 410 |
435 |
436 |
437 |

Created: 2018-04-26 gio 21:56

438 |

Emacs 24.5.1 (Org-mode 9.0.5)

439 |
440 |
441 | 442 | 443 | -------------------------------------------------------------------------------- /doc/sid-jump-start.txt: -------------------------------------------------------------------------------- 1 | # This is an emacs-org-mode files. To edit it please use emacs org-mode 2 | 3 | * The super minimal SID manual 4 | This manual has taken information on wikipedia and from this html page 5 | which reproduce the original datasheet[fn:1]. 6 | 7 | For better performance, it is suggested to use an arduino uno as a 8 | I2C-connected SID emulator. 9 | 10 | ** Let's Start 11 | /The 6581 Sound Interface Device (SID) is a single-chip, 3-voice electronic music synthesizer/sound effects generator compatible with the 65XX and similar microprocessor families/ 12 | 13 | The [[https://en.wikipedia.org/wiki/MOS_Technology_SID][SID]] has been part of the C/64 success. 14 | 15 | This arduino emulation library divert Voice2 to another pin, to enable a 16 | "Stero" effect somewhat. 17 | Connect pin9 and pin 10 to two piezo speaker, and the other side to 18 | the ground. 19 | 20 | The 6581 consists of three synthesizer “voices” which can be used 21 | independently or in conjunction to create complex sounds. 22 | Each voice consists of a Tone Oscillator/Waveform Generator, an 23 | Envelope Generator and an Amplitude Modulator. 24 | The Envelope Generator is controlled via an ADSR (Attack Decay Sustain 25 | Release) configuration. 26 | 27 | When a mechanical musical instrument produces sound, the Loudness of 28 | the sound produced changes over time in a way that varies from 29 | instrument to instrument. When a pipe organ's key is pressed, for 30 | example, it plays a note at constant volume; the sound dies quickly 31 | when the key is released. 32 | By contrast, the sound of a guitar is 33 | loudest immediately after a string is plucked, and quickly fades. 34 | 35 | A synthesizer's ADSR envelope is a way to tailor the timbre for the 36 | synth, sometimes to make it sound more like a mechanical instrument. 37 | A quick attack with little decay helps it sound more like an organ; a 38 | longer decay and zero sustain makes it sound more like a guitar. While 39 | envelopes are most often applied to volume, they are also commonly 40 | used to control other sound elements, such as filter frequencies or 41 | oscillator pitches. 42 | 43 | Today modern synthesizers use samples to reproduce sound with a strong 44 | accuracy. 45 | But in 1982, ADSR was a state-of-the-art for a music chip. 46 | 47 | For more information look at [[http://en.wikiaudio.org/ADSR_envelope]] 48 | 49 | /The suggested setup is to have an arduino as a SID, driven via I2C (see examples)/ 50 | The I2C protocol in the example is very easy: send two bytes, one for 51 | the register and the second for the value to store inside. 52 | 53 | [[./sid-registers.png]] 54 | 55 | * How to convert midi files and play them on Stereo Sid 56 | MIDI file are a very old standard which fit more or less in the Sid. 57 | MIDI specification is 127 note wide, whereas SID has 94 possibilites. 58 | MIDI support a bit more notes. 59 | Stereo Sid provide you a midi2Sid function to remap a 8bit Midi note 60 | to a 16bit SID register spec. 61 | The function will emit a silence for all notes the SID cannot play. 62 | /SID playable MIDI range is 25-118./ 63 | To convert it we used the 440hz (A4) center (midi 81, 0x1CD6 on SID). 64 | ** Setup 65 | Because SID can generate only 3 voices at a time, you should edit 66 | your midi with some program like AriaMaestosa 67 | (http://ariamaestosa.sourceforge.net/) to be sure it fits nicely in 68 | your SID, i.e. does not use more then three instruments. 69 | If you do this step before dumping and exporting, the resulting file 70 | fill be easier to play. 71 | ** Compile midicsv 72 | Download and compile midicsv from 73 | http://www.fourmilab.ch/webtools/midicsv/ 74 | Midicsv is a very good tool and will save your day 75 | ** Simple approach 76 | A simple approach is to extract 3 tracks from a midi and generate three 77 | simple C source arrays to push in a player sketch. 78 | Midicsv dump the single note like 79 | =Track, Time, Note_on_c, Channel, Note, Velocity= 80 | Read midicsv manual for more information. 81 | 82 | With this command 83 | #+BEGIN_SRC sh 84 | ./midicsv doremifasolasido.mid | egrep ^2 | egrep Note_on_c |cut -d , -f 5,2 85 | #+END_SRC 86 | you can extract a list of { duration, note } for track 2. 87 | We track down /only/ the note start for every track (it is a 88 | over-simplification). 89 | The key idea is to have three "queue" with a pointer to the current 90 | note and a global time counter. 91 | after pushing 3 notes, we increment the clock and play the next note 92 | when is the right time. 93 | 94 | The empire_player.ino demo will show you this in practice. 95 | 96 | 97 | 98 | * Drums: SID Configuration 99 | Take a look at 100 | http://www.lyonlabs.org/commodore/stereo-sid/qlink/half-moon-lake-patches-v1.txt 101 | for more ADSR patterns 102 | 103 | ** Viola/Strings 104 | ------------- 105 | Waveform: Sawtooth 106 | Attack: 9 107 | Decay: 0 108 | Sustain: 12 109 | Release: 8 110 | Release Point: 0 111 | 112 | ** Pipe Organ 113 | 114 | Waveform: Pulse 115 | Pulse Width: 2000 Reg 2/3 (12 bit però) 116 | PWout = (PWnReg/40.95) % 117 | Attack: 3 118 | Decay: 6 119 | Sustain: 6 120 | Release: 3 121 | Release Point 3 122 | * Reference 123 | 124 | 125 | 126 | * Footnotes 127 | 128 | [fn:1] http://www.waitingforfriday.com/index.php/Commodore_SID_6581_Datasheet 129 | * Config :noexport: 130 | 131 | #+OPTIONS: num:5 whn:5 toc:5 H:6 132 | #+OPTIONS: ^:nil 133 | #+STARTUP: indent showstars 134 | 135 | # Local variables: 136 | # mode: org 137 | # mode: visual-line 138 | # after-save-hook: org-twbs-export-to-html 139 | # End: 140 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /doc/sid-registers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/doc/sid-registers.png -------------------------------------------------------------------------------- /examples/Noise/Noise.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /************************************************************************ 4 | 5 | Arduino controls an 6 | Atmega8 MOS6581 SID Emulator 7 | 8 | ( SID = Sound Interface Device ) 9 | 10 | This example sets a noise sound in the SID and changes the frequency 11 | from low to high. 12 | 13 | This creates a kind of space sound as used in the 1980 games. 14 | 15 | **************************************************************************** 16 | 17 | date authors version comment 18 | ====== ====================== ======= ============================== 19 | 2007 (ch) Christoph Haberer V1.0 First implemetation 20 | 2012 Mario Patino V1.1 Ported to SID Library 21 | Versions: 22 | 23 | V1.0 24 | - noise with variable frequency 25 | 26 | V1.1 27 | - The SID chip is implemented as a library thus making the serial 28 | communication unnecessary 29 | 30 | ***************************************************************************/ 31 | /*************************************************************************** 32 | * 33 | * (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 34 | * 35 | *************************************************************************** 36 | * This program is free software; you can redistribute it and/or modify * 37 | * it under the terms of the GNU General Public License as published by * 38 | * the Free Software Foundation version 2 of the License, * 39 | * If you extend the program please maintain the list of authors. * 40 | * If you want to use this software for commercial purposes and you * 41 | * don't want to make it open source, please contact the authors for * 42 | * licensing. * 43 | ***************************************************************************/ 44 | 45 | #define C4_1 1,0x11,0,0x25, // C4 tone pitch 46 | #define OFF 0 47 | #define CONTROLREG 4 // SID control register address 48 | #define GATE (1<<0) 49 | 50 | // waveforms 51 | #define SETNOISE_1 4,0x81,5,0xBB,6,0xAD, // SID register setup to create noise 52 | 53 | 54 | 55 | SID mySid; 56 | 57 | void setup() { 58 | digitalWrite(13, HIGH); //turn on debugging LED 59 | mySid.begin(); 60 | } 61 | 62 | 63 | /************************************************************************ 64 | 65 | void setwaveform_noise(uint8_t channel) 66 | 67 | Set sid registers to create a noise waveform. 68 | The SID has 3 channels, which should be accesed according to this 69 | definition: 70 | 71 | #define CHANNEL1 0 72 | #define CHANNEL2 7 73 | #define CHANNEL3 14 74 | 75 | For noise sounds it makes sense to use only one channel, because 76 | using multiple channels gives almost no audible difference. 77 | 78 | ************************************************************************/ 79 | void setwaveform_noise(uint8_t channel) 80 | { 81 | uint8_t dataset[]={SETNOISE_1 C4_1 0xFF}; 82 | uint8_t n=0; 83 | 84 | while(dataset[n]!=0xFF) 85 | { 86 | mySid.set_register(channel+dataset[n], dataset[n+1]); 87 | // register address, register content 88 | n+=2; 89 | } 90 | } 91 | 92 | 93 | /************************************************************************ 94 | 95 | void set_frequency(uint16_t pitch,uint8_t channel) 96 | 97 | Set sid frequncy registers. 98 | 99 | The pitch has to be: 100 | 101 | pitch=16.77*frequency 102 | 103 | The SID has 3 channels, which should be accesed according to this 104 | definition: 105 | 106 | #define CHANNEL1 0 107 | #define CHANNEL2 7 108 | #define CHANNEL3 14 109 | 110 | ************************************************************************/ 111 | // pitch=16.77*frequency 112 | void set_frequency(uint16_t pitch,uint8_t channel) 113 | { 114 | mySid.set_register(channel, pitch&0xFF); // low register adress 115 | mySid.set_register(channel+1, pitch>>8); // high register adress 116 | } 117 | 118 | #define CHANNEL1 0 119 | 120 | /************************************************************************ 121 | 122 | main loop 123 | 124 | create space ship noise 125 | 126 | ************************************************************************/ 127 | void loop() 128 | { 129 | uint16_t n; 130 | uint8_t flag,k; 131 | uint16_t soundindex=0; 132 | 133 | setwaveform_noise(CHANNEL1); 134 | 135 | for(k=0;k<10;k++) // ten times space ship noise 136 | { 137 | for(n=100;n<1000;n+=50) 138 | { 139 | set_frequency(n*17,CHANNEL1); // change noise generator frequency 140 | delay(50);// every 50ms 141 | } 142 | } 143 | mySid.set_register(CONTROLREG+CHANNEL1, OFF); // be quite SID! 144 | 145 | while(1); // do nothing and loop forever 146 | } 147 | -------------------------------------------------------------------------------- /examples/RandomPitch/RandomPitch.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /************************************************************************ 4 | 5 | Arduino controls an 6 | Atmega8 MOS6581 SID Emulator 7 | by softare serial line 8 | 9 | ( SID = Sound Interface Device ) 10 | 11 | random sound pitch example 12 | 13 | 14 | 15 | **************************************************************************** 16 | 17 | date authors version comment 18 | ====== ====================== ======= ============================== 19 | 2007 (ch) Christoph Haberer V1.0 First implementation 20 | 2012 Mario Patino V1.1 Adapted for Arduino SID Library 21 | 22 | Versions: 23 | 24 | V1.0 25 | - 2 channel random pitch 26 | 27 | V1.1 28 | - Adapted to work with the Arduino SID Library 29 | 30 | ***************************************************************************/ 31 | /*************************************************************************** 32 | * 33 | * (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 34 | * 35 | *************************************************************************** 36 | * This program is free software; you can redistribute it and/or modify * 37 | * it under the terms of the GNU General Public License as published by * 38 | * the Free Software Foundation version 2 of the License, * 39 | * If you extend the program please maintain the list of authors. * 40 | * If you want to use this software for commercial purposes and you * 41 | * don't want to make it open source, please contact the authors for * 42 | * licensing. * 43 | ***************************************************************************/ 44 | #define OFF 0 45 | #define SETTRIANGLE_1 4,0x11,5,0xBB,6,0xAA, 46 | #define C4_1 1,0x11,0,0x25, 47 | #define CONTROLREG 4 // SID control register address 48 | 49 | // waveforms 50 | #define SETNOISE_1 4,0x81,5,0xBB,6,0xAD, // SID register setup to create noise 51 | 52 | SID mySid; 53 | 54 | void setup() { 55 | digitalWrite(13, HIGH); //turn on debugging LED 56 | mySid.begin(); 57 | } 58 | 59 | /************************************************************************ 60 | 61 | void setwaveform_noise(uint8_t channel) 62 | 63 | Set sid registers to create a noise waveform. 64 | The SID has 3 channels, which should be accesed according to this 65 | definition: 66 | 67 | #define CHANNEL1 0 68 | #define CHANNEL2 7 69 | #define CHANNEL3 14 70 | 71 | For noise sounds it makes sense to use only one channel, because 72 | using multiple channels gives almost no audible difference. 73 | 74 | ************************************************************************/ 75 | void setwaveform_triangle(uint8_t channel) 76 | { 77 | uint8_t dataset[]={ SETTRIANGLE_1 C4_1 0xFF }; 78 | // uint8_t dataset[]={SETNOISE_1 C4_1 0xFF}; 79 | uint8_t n=0; 80 | 81 | while(dataset[n]!=0xFF) 82 | { 83 | mySid.set_register(channel+dataset[n], dataset[n+1]); 84 | // register address, register content 85 | n+=2; 86 | } 87 | } 88 | 89 | /************************************************************************ 90 | 91 | void set_frequency(uint16_t pitch,uint8_t channel) 92 | 93 | Set sid frequncy registers. 94 | 95 | The pitch has to be: 96 | 97 | pitch=16.77*frequency 98 | 99 | The SID has 3 channels, which should be accesed according to this 100 | definition: 101 | 102 | #define CHANNEL1 0 103 | #define CHANNEL2 7 104 | #define CHANNEL3 14 105 | 106 | ************************************************************************/ 107 | // pitch=16.77*frequency 108 | void set_frequency(uint16_t pitch,uint8_t channel) 109 | { 110 | mySid.set_register(channel, pitch&0xFF); // low register adress 111 | mySid.set_register(channel+1, pitch>>8); // high register adress 112 | } 113 | 114 | uint8_t zufall() 115 | { 116 | static uint16_t startwert=0x0AA; 117 | 118 | uint16_t temp; 119 | uint8_t n; 120 | 121 | for(n=1;n<8;n++) 122 | { 123 | temp = startwert; 124 | startwert=startwert << 1; 125 | 126 | temp ^= startwert; 127 | if ( ( temp & 0x4000 ) == 0x4000 ) 128 | { 129 | startwert |= 1; 130 | } 131 | } 132 | 133 | return (startwert); 134 | } 135 | #define CHANNEL1 0 136 | #define CHANNEL2 7 137 | #define CHANNEL3 14 138 | 139 | /************************************************************************ 140 | 141 | main loop 142 | 143 | create space ship noise 144 | 145 | ************************************************************************/ 146 | void loop() 147 | { 148 | uint16_t n; 149 | uint8_t flag,k; 150 | uint16_t soundindex=0; 151 | 152 | 153 | 154 | setwaveform_triangle(CHANNEL1); 155 | setwaveform_triangle(CHANNEL2); 156 | 157 | while(1) 158 | { 159 | n=zufall()*8; 160 | set_frequency(n*17,CHANNEL1); // change noise generator frequency 161 | n=zufall()*2; 162 | set_frequency(n*17,CHANNEL2); // change noise generator frequency 163 | 164 | delay(100); 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /examples/SID_I2C_commander/SID_I2C_commander.ino: -------------------------------------------------------------------------------- 1 | // Example of SID Commander: pushes data to SID 2 | // ATMega2560 suggested because can hold more data 3 | // Wire UNOA4 -->Mega20, UONA5-->Mega21 4 | // Uno: TWI: A4 (SDA) pin and A5 (SCL) pin 5 | // MEGA TWI: 20 (SDA) and 21 (SCL) 6 | // then link grounds. 7 | // The Commander did not depends on StereoSID library 8 | // Created 16 April 2015 9 | // This example code is in the public domain. 10 | 11 | #include 12 | 13 | #define VOICE1 0 14 | #define VOICE2 7 15 | #define VOICE3 14 16 | 17 | 18 | /** Enhance SID 19 | *http://www.cplusplus.com/forum/beginner/18737/ 20 | */ 21 | class RSID { 22 | public: 23 | void initI2CAsMaster(int device); 24 | uint8_t set_register(uint8_t regnum, uint8_t value); 25 | void playTestIntro(); 26 | void loadPiano(uint8_t voice); 27 | void configVoice(uint8_t voice, uint8_t waveform, uint16_t pulsewidth /*12bit*/, uint8_t attackDecay, uint8_t sustainRelease, uint8_t releasePoint); 28 | uint16_t midi2Sid(int midin); 29 | void play(uint8_t voice, uint16_t freq); 30 | protected: 31 | int device; 32 | }; 33 | 34 | void RSID::initI2CAsMaster(int deviceI){ 35 | Wire.begin(); // join i2c bus (address optional for master) 36 | device=deviceI; 37 | } 38 | 39 | uint8_t RSID::set_register(uint8_t regnum, uint8_t value){ 40 | Wire.beginTransmission(device); 41 | Wire.write(regnum);Wire.write(value); 42 | Wire.endTransmission(); 43 | } 44 | 45 | uint16_t RSID::midi2Sid(int midin){ 46 | // NOTE_D03 --> 131 47 | // C3 130.81 2195 48 | // 440hz = A4 = 0x1CD6 49 | // MIDI A4 = 81 50 | // return midi2FreqOLD(midin)/0.0596; 51 | /* 52 | */ 53 | switch(midin){ 54 | case 60:return 0x122A; // C4$ 277.18 4650 122A 55 | case 61:return 0x133F; 56 | case 62:return 0x1464; 57 | case 63:return 0x159A; 58 | case 64:return 0x16E3; 59 | case 65:return 0x183F; // FA 60 | case 66:return 0x1981; 61 | case 67:return 0x1B38; 62 | case 68:return 0x1CD6; 63 | case 69:return 0x1E80; 64 | case 70:return 0x205E; 65 | case 71:return 0x224B; // 66 | case 72:return 0x2455; // C5$ 554.37 9301 2455 67 | default:return 0x0; 68 | } 69 | } 70 | 71 | 72 | void RSID::play(uint8_t voice, uint16_t freq){ 73 | byte low = freq & 0x00FF; 74 | byte high= freq >>8; 75 | set_register(voice+0,low); 76 | set_register(voice+1,high); 77 | } 78 | 79 | void RSID::playTestIntro() { 80 | /*loadPiano(VOICE1_Right); 81 | loadPiano(VOICE2_Left); 82 | loadPiano(VOICE3);*/ 83 | 84 | set_register(24,15); // MAX VOLUME 85 | // play a tadalike 86 | play(VOICE1,midi2Sid(60 /*DO*/)); 87 | delay(200); 88 | play(VOICE2,midi2Sid(62 /*RE*/)); 89 | delay(200); 90 | play(VOICE1,0); 91 | play(VOICE2,0); 92 | // Hmmm Too voice seems distort on piezo...time to aplify better? 93 | play(VOICE1, midi2Sid(64 /*MI*/)); 94 | delay(250); 95 | play(VOICE1,0); 96 | play(VOICE2, midi2Sid(60 /*DO*/)); 97 | delay(250); 98 | play(VOICE3,0); 99 | play(VOICE2,0); 100 | play(VOICE1,0); 101 | 102 | } 103 | 104 | RSID myRemoteSID; 105 | 106 | void setup() 107 | { 108 | Serial.begin(9600); 109 | myRemoteSID.initI2CAsMaster(23); 110 | Serial.println("Sid Master Ready"); 111 | } 112 | 113 | void loop() 114 | { 115 | Serial.println("Sid TEST"); 116 | myRemoteSID.playTestIntro(); 117 | delay(2000); 118 | } 119 | 120 | // Local variables: 121 | // mode: c++ 122 | // mode: auto-complete 123 | // End: 124 | -------------------------------------------------------------------------------- /examples/SID_I2C_receiver/SID_I2C_receiver.ino: -------------------------------------------------------------------------------- 1 | // SID Wire Slave Receiver 2 | // by Giovanni Giorgi, adapted by 3 | // Nicholas Zambetti code examples 4 | 5 | // Demonstrates use of the Wire library 6 | // Receives data as an I2C/TWI slave device 7 | // Refer to the "Wire Master Writer" example for use with this 8 | 9 | // Also, this version support "bulk" sends but remember wire library implementation uses a 32 byte buffer 10 | // so you cannot send more then 16 register commands (i.e. 32 bytes) 11 | 12 | // Last revision April 2018 13 | // Created 06 April 2015 14 | // This example code is in the public domain. 15 | 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | SID mySid; 22 | bool ledOn=false; 23 | 24 | void setup() 25 | { 26 | Wire.begin(23); // join i2c bus with address #23 27 | Wire.onReceive(receiveEvent); // register event 28 | mySid.begin(); 29 | pinMode(LED_BUILTIN, OUTPUT); // TRUE ON ONBULK SEND 30 | mySid.loadPiano(VOICE1_Right); 31 | mySid.loadPiano(VOICE2_Left); 32 | // mySid.playTestIntro(); 33 | } 34 | 35 | void loop() 36 | { 37 | if(ledOn) { 38 | digitalWrite(LED_BUILTIN, HIGH); 39 | }else{ 40 | digitalWrite(LED_BUILTIN, LOW); 41 | } 42 | } 43 | 44 | /** The I2C SID Interface is very simple: two unsigned bytes sent, register -> value 45 | * The I2C is a blocking interface. 46 | * To speed up things the caller can send more then 2 bytes: we turn on the led 13 to signal this "bulk" mode 47 | * 48 | */ 49 | void receiveEvent(int howMany) 50 | { 51 | if( Wire.available() >2 ){ 52 | ledOn=true; 53 | }else{ 54 | ledOn=false; 55 | } 56 | while ( Wire.available()) // loop through all 57 | { 58 | uint8_t reg = Wire.read(); 59 | uint8_t val = Wire.read(); 60 | mySid.set_register(reg,val); 61 | } 62 | } 63 | // Local variables: 64 | // mode: c++ 65 | // mode: auto-complete 66 | // End: 67 | -------------------------------------------------------------------------------- /examples/StereoSIDSimpleDemo/StereoSIDSimpleDemo.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /************************************************************************ 4 | 5 | Arduino controls an 6 | Atmega8 MOS6581 SID Emulator 7 | by softare serial line 8 | 9 | ( SID = Sound Interface Device ) 10 | 11 | random sound pitch example fro demostration of Stereo Effect 12 | Sid voidce 2 is controlled by pin 10 13 | The sketch push sound on channel 1 (pin9) and after 2 seconds on channel 2 (pin10) 14 | 15 | 16 | 17 | 18 | **************************************************************************** 19 | 20 | date authors version comment 21 | ====== ====================== ======= ============================== 22 | 2017 Giovanni Giorgi V1.0 First version based on 23 | Christoph Haberer implementation 24 | 25 | ***************************************************************************/ 26 | /*************************************************************************** 27 | * 28 | * (c) 2007 Christoph Haberer, christoph(at)roboterclub-freiburg.de 29 | * 30 | *************************************************************************** 31 | * This program is free software; you can redistribute it and/or modify * 32 | * it under the terms of the GNU General Public License as published by * 33 | * the Free Software Foundation version 2 of the License, * 34 | * If you extend the program please maintain the list of authors. * 35 | * If you want to use this software for commercial purposes and you * 36 | * don't want to make it open source, please contact the authors for * 37 | * licensing. * 38 | ***************************************************************************/ 39 | #define OFF 0 40 | #define SETTRIANGLE_1 4,0x11,5,0xBB,6,0xAA, 41 | #define C4_1 1,0x11,0,0x25, 42 | #define CONTROLREG 4 // SID control register address 43 | 44 | // waveforms 45 | #define SETNOISE_1 4,0x81,5,0xBB,6,0xAD, // SID register setup to create noise 46 | 47 | SID mySid; 48 | 49 | void setup() { 50 | pinMode(LED_BUILTIN, OUTPUT); 51 | mySid.begin(); 52 | } 53 | 54 | /************************************************************************ 55 | 56 | void setwaveform_noise(uint8_t channel) 57 | 58 | Set sid registers to create a noise waveform. 59 | The SID has 3 channels, which should be accesed according to this 60 | definition: 61 | 62 | #define CHANNEL1 0 63 | #define CHANNEL2 7 64 | #define CHANNEL3 14 65 | 66 | For noise sounds it makes sense to use only one channel, because 67 | using multiple channels gives almost no audible difference. 68 | 69 | ************************************************************************/ 70 | void setwaveform_triangle(uint8_t channel) 71 | { 72 | uint8_t dataset[]={ SETTRIANGLE_1 C4_1 0xFF }; 73 | // uint8_t dataset[]={SETNOISE_1 C4_1 0xFF}; 74 | uint8_t n=0; 75 | 76 | while(dataset[n]!=0xFF) 77 | { 78 | mySid.set_register(channel+dataset[n], dataset[n+1]); 79 | // register address, register content 80 | n+=2; 81 | } 82 | } 83 | 84 | /************************************************************************ 85 | 86 | void set_frequency(uint16_t pitch,uint8_t channel) 87 | 88 | Set sid frequncy registers. 89 | 90 | The pitch has to be: 91 | 92 | pitch=16.77*frequency 93 | 94 | The SID has 3 channels, which should be accesed according to this 95 | definition: 96 | 97 | #define CHANNEL1 0 98 | #define CHANNEL2 7 99 | #define CHANNEL3 14 100 | 101 | ************************************************************************/ 102 | // pitch=16.77*frequency 103 | void set_frequency(uint16_t pitch,uint8_t channel) 104 | { 105 | mySid.set_register(channel, pitch&0xFF); // low register adress 106 | mySid.set_register(channel+1, pitch>>8); // high register adress 107 | } 108 | 109 | uint8_t zufall() 110 | { 111 | static uint16_t startwert=0x0AA; 112 | 113 | uint16_t temp; 114 | uint8_t n; 115 | 116 | for(n=1;n<8;n++) 117 | { 118 | temp = startwert; 119 | startwert=startwert << 1; 120 | 121 | temp ^= startwert; 122 | if ( ( temp & 0x4000 ) == 0x4000 ) 123 | { 124 | startwert |= 1; 125 | } 126 | } 127 | 128 | return (startwert); 129 | } 130 | #define CHANNEL1 0 131 | #define CHANNEL2 7 132 | #define CHANNEL3 14 133 | 134 | /************************************************************************ 135 | 136 | main loop 137 | 138 | create space ship noise 139 | 140 | ************************************************************************/ 141 | const int SECONDS_PERIOD=2; 142 | void loop() 143 | { 144 | uint16_t n; 145 | uint8_t flag,k; 146 | uint16_t soundindex=0; 147 | 148 | 149 | 150 | setwaveform_triangle(CHANNEL1); 151 | setwaveform_triangle(CHANNEL2); 152 | 153 | boolean switchChannel=false; 154 | int c; 155 | digitalWrite(LED_BUILTIN, HIGH); 156 | set_frequency(0,CHANNEL1); 157 | set_frequency(0,CHANNEL2); 158 | c=SECONDS_PERIOD*10; 159 | while(--c>0) 160 | { 161 | n=zufall()*8; 162 | set_frequency(n*17,CHANNEL2); // Voce 2 Channel (pin10) 163 | n=zufall()*2; 164 | delay(100); 165 | } 166 | set_frequency(0,CHANNEL1); 167 | set_frequency(0,CHANNEL2); 168 | digitalWrite(LED_BUILTIN, LOW); 169 | // then invert 170 | c=SECONDS_PERIOD*10; 171 | while(--c>0) 172 | { 173 | n=zufall()*8; 174 | set_frequency(n*17,CHANNEL1); // change noise generator frequency 175 | n=zufall()*2; 176 | delay(100); 177 | } 178 | 179 | } 180 | 181 | -------------------------------------------------------------------------------- /examples/sid_player/marche_hiver_dmp.h: -------------------------------------------------------------------------------- 1 | const int sidLength = 16400; //number of bytes in array 2 | const char sidData[] PROGMEM = { 3 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 4 | 0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 5 | 0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0, 6 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0, 7 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 8 | 15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 9 | 0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 10 | 0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,15,0,0,0, 11 | 0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0, 12 | 0,15,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0, 13 | 15,0,0,0,0,9,85,83,0,0,0,0,9,85,83,0,0,0,0,0, 14 | 0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 15 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 16 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 17 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 18 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 19 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 20 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 21 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 22 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 23 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 24 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 25 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 26 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 27 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 28 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 29 | 0,0,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 30 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 31 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 32 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 33 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 34 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 35 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 36 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 37 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 38 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 39 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 40 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 41 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 42 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 43 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 44 | 0,0,0,0,0,15,-126,15,0,0,17,85,83,-30,4,0,0,33,85,83, 45 | 0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0,17,85,83,-30,4, 46 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0, 47 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 48 | 15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0, 49 | 0,0,0,0,0,15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83, 50 | 0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0,9,85,83,-30,4, 51 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 52 | 17,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 53 | 15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 54 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 55 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 56 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 57 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 58 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 59 | 0,0,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 60 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,17,85,83,-30,4, 61 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 62 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 63 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 64 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 65 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4, 66 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 67 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 68 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 69 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 70 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,32,15,0,-30,4, 71 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 72 | 32,15,0,-30,4,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 73 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,0,0,0,0,0, 74 | 0,0,0,0,0,15,-76,8,0,0,17,85,83,90,4,0,0,17,85,83, 75 | 0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0,17,85,83,90,4, 76 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 77 | 33,85,83,90,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 78 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,0,0,0,0,0, 79 | 0,0,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 80 | 0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0,33,85,83,90,4, 81 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 82 | 33,85,83,90,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 83 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,0,0,0,0,0, 84 | 0,0,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 85 | 0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0,32,15,0,90,4, 86 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 87 | 32,15,0,90,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 88 | 15,-76,8,0,0,9,85,83,90,4,0,0,33,85,83,0,0,0,0,0, 89 | 0,0,0,0,0,15,-98,11,0,0,17,85,83,90,4,0,0,33,85,83, 90 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,17,85,83,90,4, 91 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 92 | 33,85,83,90,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 93 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,0,0,0,0,0, 94 | 0,0,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 95 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,33,85,83,90,4, 96 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 97 | 33,85,83,90,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 98 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,0,0,0,0,0, 99 | 0,0,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 100 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,32,15,0,90,4, 101 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 102 | 32,15,0,90,4,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 103 | 15,-98,11,0,0,9,85,83,90,4,0,0,9,85,83,0,0,0,0,0, 104 | 0,0,0,0,0,15,-9,10,0,0,17,85,83,124,5,0,0,17,85,83, 105 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,17,85,83,124,5, 106 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0, 107 | 33,85,83,124,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 108 | 15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83,0,0,0,0,0, 109 | 0,0,0,0,0,15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83, 110 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,9,85,83,124,5, 111 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 112 | 17,85,83,124,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 113 | 15,-76,8,0,0,17,85,83,124,5,0,0,33,85,83,0,0,0,0,0, 114 | 0,0,0,0,0,15,-76,8,0,0,33,85,83,124,5,0,0,33,85,83, 115 | 0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0,32,15,0,124,5, 116 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 117 | 32,15,0,124,5,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 118 | 15,-76,8,0,0,9,85,83,124,5,0,0,9,85,83,0,0,0,0,0, 119 | 0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 120 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 121 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 122 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 123 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 124 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 125 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 126 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 127 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 128 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 129 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 130 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 131 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 132 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 133 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 134 | 0,0,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 135 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 136 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 137 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 138 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 139 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 140 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 141 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 142 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 143 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 144 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 145 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 146 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 147 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 148 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 149 | 0,0,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 150 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,17,85,83,-30,4, 151 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 152 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 153 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 154 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 155 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4, 156 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 157 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 158 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 159 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 160 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,32,15,0,-30,4, 161 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 162 | 32,15,0,-30,4,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 163 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,0,0,0,0,0, 164 | 0,0,0,0,0,15,-98,11,0,0,17,85,83,-49,5,0,0,17,85,83, 165 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,17,85,83,-49,5, 166 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 167 | 33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 168 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0, 169 | 0,0,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 170 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,33,85,83,-49,5, 171 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 172 | 33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 173 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0, 174 | 0,0,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 175 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,32,15,0,-49,5, 176 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 177 | 32,15,0,-49,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 178 | 15,-98,11,0,0,9,85,83,-49,5,0,0,33,85,83,0,0,0,0,0, 179 | 0,0,0,0,0,15,-126,15,0,0,17,85,83,-49,5,0,0,33,85,83, 180 | 0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0,17,85,83,-49,5, 181 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0, 182 | 33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 183 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0, 184 | 0,0,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 185 | 0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0,33,85,83,-49,5, 186 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0, 187 | 33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 188 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,0,0,0,0,0, 189 | 0,0,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 190 | 0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0,32,15,0,-49,5, 191 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,-126,15,0,0, 192 | 32,15,0,-49,5,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 193 | 15,-126,15,0,0,9,85,83,-49,5,0,0,9,85,83,0,0,0,0,0, 194 | 0,0,0,0,0,15,-93,14,0,0,17,85,83,-123,6,0,0,17,85,83, 195 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,17,85,83,-123,6, 196 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 197 | 33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 198 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0, 199 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 200 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,33,85,83,-123,6, 201 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 202 | 33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 203 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0, 204 | 0,0,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 205 | 0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0,32,15,0,-123,6, 206 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-93,14,0,0, 207 | 32,15,0,-123,6,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 208 | 15,-93,14,0,0,9,85,83,-123,6,0,0,33,85,83,0,0,0,0,0, 209 | 0,0,0,0,0,15,10,13,0,0,17,85,83,-123,6,0,0,33,85,83, 210 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,17,85,83,-123,6, 211 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 212 | 33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 213 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0, 214 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 215 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,33,85,83,-123,6, 216 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 217 | 33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 218 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,0,0,0,0,0, 219 | 0,0,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 220 | 0,0,0,0,0,0,0,0,0,0,15,10,13,0,0,32,15,0,-123,6, 221 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,10,13,0,0, 222 | 32,15,0,-123,6,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 223 | 15,10,13,0,0,9,85,83,-123,6,0,0,9,85,83,0,0,0,0,0, 224 | 0,0,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,17,85,83, 225 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,17,85,83,82,7, 226 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0, 227 | 33,85,83,82,7,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 228 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,0,0,0,0,0, 229 | 0,0,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 230 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,9,85,83,82,7, 231 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 232 | 17,85,83,82,7,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 233 | 15,-98,11,0,0,17,85,83,82,7,0,0,33,85,83,0,0,0,0,0, 234 | 0,0,0,0,0,15,-98,11,0,0,33,85,83,82,7,0,0,33,85,83, 235 | 0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0,32,15,0,82,7, 236 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-98,11,0,0, 237 | 32,15,0,82,7,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 238 | 15,-98,11,0,0,9,85,83,82,7,0,0,33,85,83,0,0,0,0,0, 239 | 0,0,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,33,85,83, 240 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,17,85,83,82,7, 241 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0, 242 | 33,85,83,82,7,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 243 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,0,0,0,0,0, 244 | 0,0,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 245 | 0,0,0,0,0,0,0,0,0,0,15,-9,10,0,0,9,85,83,82,7, 246 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 247 | 17,85,83,82,7,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 248 | 15,-76,8,0,0,17,85,83,82,7,0,0,33,85,83,0,0,0,0,0, 249 | 0,0,0,0,0,15,-76,8,0,0,33,85,83,82,7,0,0,33,85,83, 250 | 0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0,32,15,0,82,7, 251 | 0,0,32,15,0,0,0,0,0,0,0,0,0,0,0,15,-76,8,0,0, 252 | 32,15,0,82,7,0,0,32,15,0,0,0,0,0,0,0,0,0,0,0, 253 | 15,-76,8,0,0,9,85,83,82,7,0,0,9,85,83,0,0,0,0,0, 254 | 0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 255 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 256 | 0,0,17,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 257 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 258 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 259 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 260 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 261 | 0,0,33,85,83,0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0, 262 | 33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0,0,0,0,0,0, 263 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,0,0,0,0,0, 264 | 0,0,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 265 | 0,0,0,0,0,0,0,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 266 | 0,0,33,85,83,0,0,0,0,0,15,0,0,0,0,15,-59,9,0,0, 267 | 32,15,0,-30,4,0,0,33,85,83,0,0,0,0,0,15,0,0,0,0, 268 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,0,0,0,0,9, 269 | 68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4,0,0,33,85,83, 270 | 41,52,0,0,33,68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4, 271 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-118,19,0,0, 272 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 273 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 274 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 275 | 41,52,0,0,33,68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4, 276 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-118,19,0,0, 277 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 278 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 279 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 280 | 41,52,0,0,33,68,50,0,0,0,15,-118,19,0,0,32,15,0,-30,4, 281 | 0,0,32,15,0,41,52,0,0,32,15,0,0,0,0,15,-118,19,0,0, 282 | 32,15,0,-30,4,0,0,32,15,0,41,52,0,0,32,15,0,0,0,0, 283 | 15,-118,19,0,0,9,85,83,-30,4,0,0,9,85,83,41,52,0,0,9, 284 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 285 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 286 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 287 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 288 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 289 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 290 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 291 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 292 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 293 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 294 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 295 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 296 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 297 | 32,15,0,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 298 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 299 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 300 | -115,58,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 301 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-93,14,0,0, 302 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 303 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 304 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 305 | -115,58,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 306 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-93,14,0,0, 307 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 308 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 309 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 310 | -115,58,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 311 | 0,0,33,85,83,-115,58,0,0,32,15,0,0,0,0,15,-93,14,0,0, 312 | 32,15,0,-30,4,0,0,33,85,83,-115,58,0,0,32,15,0,0,0,0, 313 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,-115,58,0,0,9, 314 | 68,50,0,0,0,15,-126,15,0,0,17,85,83,-30,4,0,0,33,85,83, 315 | 8,62,0,0,33,68,50,0,0,0,15,-126,15,0,0,17,85,83,-30,4, 316 | 0,0,33,85,83,8,62,0,0,33,68,50,0,0,0,15,-126,15,0,0, 317 | 33,85,83,-30,4,0,0,33,85,83,8,62,0,0,33,68,50,0,0,0, 318 | 15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83,8,62,0,0,32, 319 | 15,0,0,0,0,15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83, 320 | 8,62,0,0,32,15,0,0,0,0,15,-126,15,0,0,9,85,83,-30,4, 321 | 0,0,33,85,83,8,62,0,0,9,68,50,0,0,0,15,-93,14,0,0, 322 | 17,85,83,-30,4,0,0,33,85,83,-95,69,0,0,33,68,50,0,0,0, 323 | 15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83,-95,69,0,0,33, 324 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 325 | -95,69,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 326 | 0,0,33,85,83,-95,69,0,0,32,15,0,0,0,0,15,-93,14,0,0, 327 | 32,15,0,-30,4,0,0,33,85,83,-95,69,0,0,32,15,0,0,0,0, 328 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,-95,69,0,0,9, 329 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 330 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4, 331 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 332 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 333 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 334 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 335 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4, 336 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 337 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 338 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 339 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 340 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-30,4, 341 | 0,0,32,15,0,41,52,0,0,32,15,0,0,0,0,15,10,13,0,0, 342 | 32,15,0,-30,4,0,0,32,15,0,41,52,0,0,32,15,0,0,0,0, 343 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,41,52,0,0,9, 344 | 68,50,0,0,0,15,-76,8,0,0,17,85,83,90,4,0,0,17,85,83, 345 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,17,85,83,90,4, 346 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0, 347 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 348 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 349 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 350 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4, 351 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0, 352 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 353 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 354 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 355 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,90,4, 356 | 0,0,33,85,83,-115,58,0,0,32,15,0,0,0,0,15,-76,8,0,0, 357 | 32,15,0,90,4,0,0,33,85,83,-115,58,0,0,32,15,0,0,0,0, 358 | 15,-76,8,0,0,9,85,83,90,4,0,0,33,85,83,-115,58,0,0,9, 359 | 68,50,0,0,0,15,-98,11,0,0,17,85,83,90,4,0,0,33,85,83, 360 | 121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0,17,85,83,90,4, 361 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0, 362 | 33,85,83,90,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 363 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,121,46,0,0,33, 364 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 365 | 121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4, 366 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0, 367 | 33,85,83,90,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 368 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,121,46,0,0,33, 369 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 370 | 121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,90,4, 371 | 0,0,32,15,0,121,46,0,0,32,15,0,0,0,0,15,-98,11,0,0, 372 | 32,15,0,90,4,0,0,32,15,0,121,46,0,0,32,15,0,0,0,0, 373 | 15,-98,11,0,0,9,85,83,90,4,0,0,9,85,83,121,46,0,0,9, 374 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,124,5,0,0,17,85,83, 375 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,124,5, 376 | 0,0,17,85,83,-35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0, 377 | 33,85,83,124,5,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 378 | 15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83,-35,43,0,0,33, 379 | 68,50,0,0,0,15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83, 380 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,9,85,83,124,5, 381 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0, 382 | 17,85,83,124,5,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 383 | 15,-76,8,0,0,17,85,83,124,5,0,0,33,85,83,-35,43,0,0,33, 384 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,124,5,0,0,33,85,83, 385 | -35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,124,5, 386 | 0,0,32,15,0,-35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0, 387 | 32,15,0,124,5,0,0,32,15,0,-35,43,0,0,33,68,50,0,0,0, 388 | 15,-76,8,0,0,9,85,83,124,5,0,0,9,85,83,-35,43,0,0,33, 389 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 390 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 391 | 0,0,17,85,83,-35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0, 392 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 393 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 394 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 395 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 396 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0, 397 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 398 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 399 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 400 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 401 | 0,0,33,85,83,-35,43,0,0,32,15,0,0,0,0,15,-59,9,0,0, 402 | 32,15,0,-30,4,0,0,33,85,83,-35,43,0,0,32,15,0,0,0,0, 403 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,-35,43,0,0,9, 404 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 405 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 406 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0, 407 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 408 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 409 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 410 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 411 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0, 412 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 413 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 414 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 415 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 416 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0, 417 | 32,15,0,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 418 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 419 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 420 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4, 421 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 422 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 423 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 424 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 425 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4, 426 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 427 | 33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 428 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,41,52,0,0,33, 429 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 430 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-30,4, 431 | 0,0,32,15,0,41,52,0,0,32,15,0,0,0,0,15,10,13,0,0, 432 | 32,15,0,-30,4,0,0,32,15,0,41,52,0,0,32,15,0,0,0,0, 433 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,41,52,0,0,9, 434 | 68,50,0,0,0,15,-98,11,0,0,17,85,83,-49,5,0,0,17,85,83, 435 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,17,85,83,-49,5, 436 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 437 | 33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 438 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,32, 439 | 15,0,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 440 | -115,58,0,0,32,15,0,0,0,0,15,-98,11,0,0,33,85,83,-49,5, 441 | 0,0,33,85,83,-115,58,0,0,9,68,50,0,0,0,15,-98,11,0,0, 442 | 33,85,83,-49,5,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 443 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,121,46,0,0,33, 444 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 445 | 121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,-49,5, 446 | 0,0,33,85,83,121,46,0,0,32,15,0,0,0,0,15,-98,11,0,0, 447 | 32,15,0,-49,5,0,0,33,85,83,121,46,0,0,32,15,0,0,0,0, 448 | 15,-98,11,0,0,9,85,83,-49,5,0,0,33,85,83,121,46,0,0,9, 449 | 68,50,0,0,0,15,-126,15,0,0,17,85,83,-49,5,0,0,33,85,83, 450 | -35,43,0,0,33,68,50,0,0,0,15,-126,15,0,0,17,85,83,-49,5, 451 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-126,15,0,0, 452 | 33,85,83,-49,5,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 453 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,-35,43,0,0,32, 454 | 15,0,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 455 | -35,43,0,0,32,15,0,0,0,0,15,-126,15,0,0,33,85,83,-49,5, 456 | 0,0,33,85,83,-35,43,0,0,9,68,50,0,0,0,15,-126,15,0,0, 457 | 33,85,83,-49,5,0,0,33,85,83,-48,34,0,0,33,68,50,0,0,0, 458 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,-48,34,0,0,33, 459 | 68,50,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 460 | -48,34,0,0,33,68,50,0,0,0,15,-126,15,0,0,32,15,0,-49,5, 461 | 0,0,32,15,0,-48,34,0,0,32,15,0,0,0,0,15,-126,15,0,0, 462 | 32,15,0,-49,5,0,0,32,15,0,-48,34,0,0,32,15,0,0,0,0, 463 | 15,-126,15,0,0,9,85,83,-49,5,0,0,9,85,83,-48,34,0,0,9, 464 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-123,6,0,0,17,85,83, 465 | 20,39,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-123,6, 466 | 0,0,17,85,83,20,39,0,0,33,68,50,0,0,0,15,-93,14,0,0, 467 | 33,85,83,-123,6,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 468 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,20,39,0,0,33, 469 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 470 | 20,39,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6, 471 | 0,0,33,85,83,20,39,0,0,33,68,50,0,0,0,15,-93,14,0,0, 472 | 33,85,83,-123,6,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 473 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,20,39,0,0,33, 474 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 475 | 20,39,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-123,6, 476 | 0,0,33,85,83,20,39,0,0,32,15,0,0,0,0,15,-93,14,0,0, 477 | 32,15,0,-123,6,0,0,33,85,83,20,39,0,0,32,15,0,0,0,0, 478 | 15,-93,14,0,0,9,85,83,-123,6,0,0,33,85,83,20,39,0,0,9, 479 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-123,6,0,0,33,85,83, 480 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-123,6, 481 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 482 | 33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 483 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33, 484 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 485 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6, 486 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,10,13,0,0, 487 | 33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 488 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33, 489 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 490 | 41,52,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-123,6, 491 | 0,0,32,15,0,41,52,0,0,32,15,0,0,0,0,15,10,13,0,0, 492 | 32,15,0,-123,6,0,0,32,15,0,41,52,0,0,32,15,0,0,0,0, 493 | 15,10,13,0,0,9,85,83,-123,6,0,0,9,85,83,41,52,0,0,9, 494 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,17,85,83, 495 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7, 496 | 0,0,17,85,83,-35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0, 497 | 33,85,83,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 498 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,-35,43,0,0,33, 499 | 68,50,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 500 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,9,85,83,82,7, 501 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-98,11,0,0, 502 | 17,85,83,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 503 | 15,-98,11,0,0,17,85,83,82,7,0,0,33,85,83,-35,43,0,0,33, 504 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,82,7,0,0,33,85,83, 505 | -35,43,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,82,7, 506 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-98,11,0,0, 507 | 32,15,0,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 508 | 15,-98,11,0,0,9,85,83,82,7,0,0,33,85,83,-35,43,0,0,33, 509 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,33,85,83, 510 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7, 511 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0, 512 | 33,85,83,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 513 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,-35,43,0,0,33, 514 | 68,50,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 515 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,9,85,83,82,7, 516 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0, 517 | 17,85,83,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 518 | 15,-76,8,0,0,17,85,83,82,7,0,0,33,85,83,-35,43,0,0,33, 519 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,82,7,0,0,33,85,83, 520 | -35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,82,7, 521 | 0,0,32,15,0,-35,43,0,0,32,15,0,0,0,0,15,-76,8,0,0, 522 | 32,15,0,82,7,0,0,32,15,0,-35,43,0,0,32,15,0,0,0,0, 523 | 15,-76,8,0,0,9,85,83,82,7,0,0,9,85,83,-35,43,0,0,9, 524 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 525 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 526 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 527 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 528 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 529 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 530 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 531 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 532 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 533 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 534 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 535 | -115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 536 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-59,9,0,0, 537 | 32,15,0,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 538 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 539 | 68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4,0,0,33,85,83, 540 | -115,58,0,0,33,68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4, 541 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-118,19,0,0, 542 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 543 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 544 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 545 | -115,58,0,0,33,68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4, 546 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-118,19,0,0, 547 | 33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 548 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,-115,58,0,0,33, 549 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 550 | -115,58,0,0,33,68,50,0,0,0,15,-118,19,0,0,32,15,0,-30,4, 551 | 0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0,15,-118,19,0,0, 552 | 32,15,0,-30,4,0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0, 553 | 15,-118,19,0,0,9,85,83,-30,4,0,0,9,85,83,-115,58,0,0,9, 554 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 555 | 121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 556 | 0,0,17,85,83,121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0, 557 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 558 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 559 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 560 | 121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 561 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0, 562 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 563 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 564 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 565 | 121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 566 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-59,9,0,0, 567 | 32,15,0,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 568 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 569 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 570 | 121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 571 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0, 572 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 573 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 574 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 575 | 121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 576 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0, 577 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 578 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 579 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 580 | 121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 581 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0, 582 | 32,15,0,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 583 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 584 | 68,50,0,0,0,15,-126,15,0,0,17,85,83,-30,4,0,0,33,85,83, 585 | 121,46,0,0,33,68,50,0,0,0,15,-126,15,0,0,17,85,83,-30,4, 586 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-126,15,0,0, 587 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 588 | 15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83,121,46,0,0,33, 589 | 68,50,0,0,0,15,-126,15,0,0,32,15,0,-30,4,0,0,33,85,83, 590 | 121,46,0,0,33,68,50,0,0,0,15,-126,15,0,0,9,85,83,-30,4, 591 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0, 592 | 17,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 593 | 15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 594 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 595 | 121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 596 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-93,14,0,0, 597 | 32,15,0,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 598 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 599 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 600 | 121,46,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4, 601 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,10,13,0,0, 602 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 603 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 604 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 605 | 121,46,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4, 606 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,10,13,0,0, 607 | 33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 608 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,121,46,0,0,33, 609 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 610 | 121,46,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-30,4, 611 | 0,0,32,15,0,121,46,0,0,32,15,0,0,0,0,15,10,13,0,0, 612 | 32,15,0,-30,4,0,0,32,15,0,121,46,0,0,32,15,0,0,0,0, 613 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,121,46,0,0,9, 614 | 68,50,0,0,0,15,-76,8,0,0,17,85,83,90,4,0,0,17,85,83, 615 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,17,85,83,90,4, 616 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0, 617 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 618 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 619 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 620 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4, 621 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0, 622 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 623 | 15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 624 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,90,4,0,0,33,85,83, 625 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,90,4, 626 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0, 627 | 32,15,0,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 628 | 15,-76,8,0,0,9,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 629 | 68,50,0,0,0,15,-98,11,0,0,17,85,83,90,4,0,0,33,85,83, 630 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,17,85,83,90,4, 631 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 632 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 633 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 634 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 635 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4, 636 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 637 | 33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 638 | 15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83,-115,58,0,0,33, 639 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,90,4,0,0,33,85,83, 640 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,90,4, 641 | 0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0,15,-98,11,0,0, 642 | 32,15,0,90,4,0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0, 643 | 15,-98,11,0,0,9,85,83,90,4,0,0,9,85,83,-115,58,0,0,9, 644 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,124,5,0,0,17,85,83, 645 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,124,5, 646 | 0,0,17,85,83,-35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0, 647 | 33,85,83,124,5,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 648 | 15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83,-35,43,0,0,33, 649 | 68,50,0,0,0,15,-9,10,0,0,32,15,0,124,5,0,0,33,85,83, 650 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,9,85,83,124,5, 651 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0, 652 | 17,85,83,124,5,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 653 | 15,-76,8,0,0,17,85,83,124,5,0,0,33,85,83,-35,43,0,0,33, 654 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,124,5,0,0,33,85,83, 655 | -35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,124,5, 656 | 0,0,32,15,0,-35,43,0,0,33,68,50,0,0,0,15,-76,8,0,0, 657 | 32,15,0,124,5,0,0,32,15,0,-35,43,0,0,33,68,50,0,0,0, 658 | 15,-76,8,0,0,9,85,83,124,5,0,0,9,85,83,-35,43,0,0,33, 659 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 660 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 661 | 0,0,17,85,83,-35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0, 662 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 663 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 664 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 665 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 666 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0, 667 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 668 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 669 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 670 | -35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 671 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-59,9,0,0, 672 | 32,15,0,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 673 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 674 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4,0,0,33,85,83, 675 | -35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-30,4, 676 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0, 677 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 678 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 679 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 680 | -35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4, 681 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0, 682 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 683 | 15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 684 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-30,4,0,0,33,85,83, 685 | -35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-30,4, 686 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-93,14,0,0, 687 | 32,15,0,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 688 | 15,-93,14,0,0,9,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 689 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4,0,0,33,85,83, 690 | -35,43,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-30,4, 691 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,10,13,0,0, 692 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 693 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 694 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 695 | -35,43,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4, 696 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,10,13,0,0, 697 | 33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 698 | 15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83,-35,43,0,0,33, 699 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-30,4,0,0,33,85,83, 700 | -35,43,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-30,4, 701 | 0,0,32,15,0,-35,43,0,0,32,15,0,0,0,0,15,10,13,0,0, 702 | 32,15,0,-30,4,0,0,32,15,0,-35,43,0,0,32,15,0,0,0,0, 703 | 15,10,13,0,0,9,85,83,-30,4,0,0,9,85,83,-35,43,0,0,9, 704 | 68,50,0,0,0,15,-98,11,0,0,17,85,83,-49,5,0,0,17,85,83, 705 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,17,85,83,-49,5, 706 | 0,0,17,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 707 | 33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 708 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33, 709 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 710 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,33,85,83,-49,5, 711 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 712 | 33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 713 | 15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33, 714 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,-49,5,0,0,33,85,83, 715 | -115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,-49,5, 716 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-98,11,0,0, 717 | 32,15,0,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 718 | 15,-98,11,0,0,9,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33, 719 | 68,50,0,0,0,15,-126,15,0,0,17,85,83,-49,5,0,0,33,85,83, 720 | -115,58,0,0,33,68,50,0,0,0,15,-126,15,0,0,17,85,83,-49,5, 721 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-126,15,0,0, 722 | 33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 723 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33, 724 | 68,50,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 725 | -115,58,0,0,33,68,50,0,0,0,15,-126,15,0,0,33,85,83,-49,5, 726 | 0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0,15,-126,15,0,0, 727 | 33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 728 | 15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83,-115,58,0,0,33, 729 | 68,50,0,0,0,15,-126,15,0,0,33,85,83,-49,5,0,0,33,85,83, 730 | -115,58,0,0,33,68,50,0,0,0,15,-126,15,0,0,32,15,0,-49,5, 731 | 0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0,15,-126,15,0,0, 732 | 32,15,0,-49,5,0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0, 733 | 15,-126,15,0,0,9,85,83,-49,5,0,0,9,85,83,-115,58,0,0,9, 734 | 68,50,0,0,0,15,-93,14,0,0,17,85,83,-123,6,0,0,17,85,83, 735 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,17,85,83,-123,6, 736 | 0,0,17,85,83,41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0, 737 | 33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 738 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33, 739 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 740 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6, 741 | 0,0,33,85,83,41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0, 742 | 33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33,68,50,0,0,0, 743 | 15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83,41,52,0,0,33, 744 | 68,50,0,0,0,15,-93,14,0,0,33,85,83,-123,6,0,0,33,85,83, 745 | 41,52,0,0,33,68,50,0,0,0,15,-93,14,0,0,32,15,0,-123,6, 746 | 0,0,33,85,83,41,52,0,0,32,15,0,0,0,0,15,-93,14,0,0, 747 | 32,15,0,-123,6,0,0,33,85,83,41,52,0,0,32,15,0,0,0,0, 748 | 15,-93,14,0,0,9,85,83,-123,6,0,0,33,85,83,41,52,0,0,9, 749 | 68,50,0,0,0,15,10,13,0,0,17,85,83,-123,6,0,0,33,85,83, 750 | 8,62,0,0,33,68,50,0,0,0,15,10,13,0,0,17,85,83,-123,6, 751 | 0,0,33,85,83,8,62,0,0,33,68,50,0,0,0,15,10,13,0,0, 752 | 33,85,83,-123,6,0,0,33,85,83,8,62,0,0,33,68,50,0,0,0, 753 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,8,62,0,0,33, 754 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 755 | 8,62,0,0,33,68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6, 756 | 0,0,33,85,83,8,62,0,0,33,68,50,0,0,0,15,10,13,0,0, 757 | 33,85,83,-123,6,0,0,33,85,83,8,62,0,0,33,68,50,0,0,0, 758 | 15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83,8,62,0,0,33, 759 | 68,50,0,0,0,15,10,13,0,0,33,85,83,-123,6,0,0,33,85,83, 760 | 8,62,0,0,33,68,50,0,0,0,15,10,13,0,0,32,15,0,-123,6, 761 | 0,0,32,15,0,8,62,0,0,32,15,0,0,0,0,15,10,13,0,0, 762 | 32,15,0,-123,6,0,0,32,15,0,8,62,0,0,32,15,0,0,0,0, 763 | 15,10,13,0,0,9,85,83,-123,6,0,0,9,85,83,8,62,0,0,9, 764 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,17,85,83, 765 | 121,46,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7, 766 | 0,0,17,85,83,121,46,0,0,33,68,50,0,0,0,15,-9,10,0,0, 767 | 33,85,83,82,7,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 768 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,121,46,0,0,33, 769 | 68,50,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 770 | 121,46,0,0,33,68,50,0,0,0,15,-9,10,0,0,9,85,83,82,7, 771 | 0,0,33,85,83,121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0, 772 | 17,85,83,82,7,0,0,33,85,83,121,46,0,0,33,68,50,0,0,0, 773 | 15,-98,11,0,0,17,85,83,82,7,0,0,33,85,83,121,46,0,0,33, 774 | 68,50,0,0,0,15,-98,11,0,0,33,85,83,82,7,0,0,33,85,83, 775 | 121,46,0,0,33,68,50,0,0,0,15,-98,11,0,0,32,15,0,82,7, 776 | 0,0,33,85,83,121,46,0,0,32,15,0,0,0,0,15,-98,11,0,0, 777 | 32,15,0,82,7,0,0,33,85,83,121,46,0,0,32,15,0,0,0,0, 778 | 15,-98,11,0,0,9,85,83,82,7,0,0,33,85,83,121,46,0,0,9, 779 | 68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7,0,0,33,85,83, 780 | -35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0,17,85,83,82,7, 781 | 0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0,15,-9,10,0,0, 782 | 33,85,83,82,7,0,0,33,85,83,-35,43,0,0,33,68,50,0,0,0, 783 | 15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83,-35,43,0,0,32, 784 | 15,0,0,0,0,15,-9,10,0,0,32,15,0,82,7,0,0,33,85,83, 785 | -35,43,0,0,32,15,0,0,0,0,15,-9,10,0,0,9,85,83,82,7, 786 | 0,0,33,85,83,-35,43,0,0,9,68,50,0,0,0,15,-76,8,0,0, 787 | 17,85,83,82,7,0,0,33,85,83,-115,58,0,0,33,68,50,0,0,0, 788 | 15,-76,8,0,0,17,85,83,82,7,0,0,33,85,83,-115,58,0,0,33, 789 | 68,50,0,0,0,15,-76,8,0,0,33,85,83,82,7,0,0,33,85,83, 790 | -115,58,0,0,33,68,50,0,0,0,15,-76,8,0,0,32,15,0,82,7, 791 | 0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0,15,-76,8,0,0, 792 | 32,15,0,82,7,0,0,32,15,0,-115,58,0,0,32,15,0,0,0,0, 793 | 15,-76,8,0,0,9,85,83,82,7,0,0,9,85,83,-115,58,0,0,9, 794 | 68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4,0,0,17,85,83, 795 | 20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0,17,85,83,-30,4, 796 | 0,0,17,85,83,20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0, 797 | 33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 798 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33, 799 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 800 | 20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4, 801 | 0,0,33,85,83,20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0, 802 | 33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 803 | 15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33, 804 | 68,50,0,0,0,15,-59,9,0,0,33,85,83,-30,4,0,0,33,85,83, 805 | 20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0,32,15,0,-30,4, 806 | 0,0,33,85,83,20,39,0,0,33,68,50,0,0,0,15,-59,9,0,0, 807 | 32,15,0,-30,4,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 808 | 15,-59,9,0,0,9,85,83,-30,4,0,0,33,85,83,20,39,0,0,33, 809 | 68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4,0,0,33,85,83, 810 | 20,39,0,0,33,68,50,0,0,0,15,-118,19,0,0,17,85,83,-30,4, 811 | 0,0,33,85,83,20,39,0,0,33,68,50,0,0,0,15,-118,19,0,0, 812 | 33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 813 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33, 814 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 815 | 20,39,0,0,33,68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4, 816 | 0,0,33,85,83,20,39,0,0,33,68,50,0,0,0,15,-118,19,0,0, 817 | 33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33,68,50,0,0,0, 818 | 15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83,20,39,0,0,33, 819 | 68,50,0,0,0,15,-118,19,0,0,33,85,83,-30,4,0,0,33,85,83, 820 | 20,39,0,0,33,68,50,0,0,0,15,-118,19,0,0,32,15,0,-30,4, 821 | 0,0,32,15,0,20,39,0,0,32,15,0,0,0,0,15,-118,19,0,0, 822 | 32,15,0,-30,4,0,0,32,15,0,20,39,0,0,32,15,0,0,0,0, 823 | 15,-118,19,0,0,9,85,83,-30,4,0,0,9,68,50,20,39,0,0,9, 824 | 0,-88,0,0,0,15,-30,4,0,0,17,85,83,-93,14,0,0,33,68,50, 825 | 68,55,8,8,-127,0,-88,0,0,0,15,-30,4,0,0,17,85,83,-93,14, 826 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,-30,4,0,0, 827 | 33,85,83,-93,14,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 828 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-106,2,8,8,64, 829 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 830 | 113,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 831 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 832 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 833 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 834 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 835 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 836 | 0,0,32,15,0,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 837 | 33,85,83,-93,14,0,0,32,15,0,45,2,8,8,64,0,-88,0,0,0, 838 | 15,-30,4,0,0,33,85,83,-93,14,0,0,9,68,50,45,2,8,8,64, 839 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 840 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 841 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 842 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 843 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 844 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 845 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 846 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 847 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 848 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 849 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 850 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 851 | 0,0,32,15,0,45,2,8,8,64,15,0,0,0,0,15,-30,4,0,0, 852 | 33,85,83,10,13,0,0,32,15,0,45,2,8,8,64,15,0,0,0,0, 853 | 15,-30,4,0,0,33,85,83,10,13,0,0,9,68,50,45,2,8,8,9, 854 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11,0,0,33,68,50, 855 | 68,55,8,8,-127,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11, 856 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,-30,4,0,0, 857 | 33,85,83,-98,11,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 858 | 15,-30,4,0,0,33,85,83,-98,11,0,0,33,68,50,-95,69,8,8,-128, 859 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11,0,0,33,68,50, 860 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11, 861 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 862 | 33,85,83,-98,11,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 863 | 15,-30,4,0,0,33,85,83,-98,11,0,0,33,68,50,-95,69,8,8,-128, 864 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11,0,0,33,68,50, 865 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-98,11, 866 | 0,0,32,15,0,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 867 | 33,85,83,-98,11,0,0,32,15,0,60,49,8,8,-128,0,-105,0,0,0, 868 | 15,-30,4,0,0,33,85,83,-98,11,0,0,9,68,50,-95,69,8,8,-128, 869 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-9,10,0,0,33,68,50, 870 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-9,10, 871 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 872 | 33,85,83,-9,10,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 873 | 15,-30,4,0,0,33,85,83,-9,10,0,0,33,68,50,-95,69,8,8,-128, 874 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-9,10,0,0,33,68,50, 875 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-9,10, 876 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 877 | 33,85,83,-9,10,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 878 | 15,-30,4,0,0,33,85,83,-9,10,0,0,33,68,50,-95,69,8,8,-128, 879 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-9,10,0,0,33,68,50, 880 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,32,15,0,-9,10, 881 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,-30,4,0,0, 882 | 32,15,0,-9,10,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 883 | 15,-30,4,0,0,9,85,83,-9,10,0,0,9,68,50,60,49,8,8,9, 884 | 0,-88,0,0,0,15,-49,5,0,0,17,85,83,-93,14,0,0,33,68,50, 885 | 68,55,8,8,-127,0,-88,0,0,0,15,-49,5,0,0,17,85,83,-93,14, 886 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,-49,5,0,0, 887 | 33,85,83,-93,14,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 888 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,-106,2,8,8,64, 889 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 890 | 113,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 891 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 892 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 893 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 894 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 895 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 896 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 897 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 898 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 899 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 900 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 901 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 902 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 903 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 904 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 905 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 906 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 907 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 908 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 909 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 910 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 911 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 912 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 913 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 914 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 915 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 916 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 917 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 918 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 919 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 920 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 921 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 922 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 923 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 924 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 925 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 926 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 927 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 928 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 929 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 930 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 931 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 932 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 933 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 934 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 935 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14, 936 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0, 937 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 938 | 15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 939 | 0,-88,0,0,0,15,-49,5,0,0,33,85,83,-93,14,0,0,33,68,50, 940 | 45,2,8,8,64,0,-88,0,0,0,15,-49,5,0,0,32,15,0,-93,14, 941 | 0,0,32,15,0,45,2,8,8,64,15,0,0,0,0,15,-49,5,0,0, 942 | 32,15,0,-93,14,0,0,32,15,0,45,2,8,8,64,15,0,0,0,0, 943 | 15,-49,5,0,0,9,85,83,-93,14,0,0,9,68,50,45,2,8,8,9, 944 | 0,-105,0,0,0,15,90,4,0,0,17,85,83,104,17,0,0,33,68,50, 945 | 68,55,8,8,-127,0,-105,0,0,0,15,90,4,0,0,17,85,83,104,17, 946 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,90,4,0,0, 947 | 33,85,83,104,17,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 948 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 949 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 950 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 951 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 952 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 953 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 954 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 955 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 956 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 957 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 958 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 959 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 960 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 961 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 962 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 963 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 964 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 965 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 966 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 967 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 968 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 969 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 970 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 971 | 0,0,32,15,0,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 972 | 33,85,83,104,17,0,0,32,15,0,60,49,8,8,-128,0,-105,0,0,0, 973 | 15,90,4,0,0,33,85,83,104,17,0,0,9,68,50,-95,69,8,8,-128, 974 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16,0,0,33,68,50, 975 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16, 976 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 977 | 33,85,83,110,16,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 978 | 15,90,4,0,0,33,85,83,110,16,0,0,33,68,50,-95,69,8,8,-128, 979 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16,0,0,33,68,50, 980 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16, 981 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 982 | 33,85,83,110,16,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 983 | 15,90,4,0,0,33,85,83,110,16,0,0,33,68,50,-95,69,8,8,-128, 984 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16,0,0,33,68,50, 985 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,110,16, 986 | 0,0,32,15,0,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 987 | 33,85,83,110,16,0,0,32,15,0,60,49,8,8,-128,0,-105,0,0,0, 988 | 15,90,4,0,0,33,85,83,110,16,0,0,9,68,50,-95,69,8,8,-128, 989 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 990 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 991 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 992 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 993 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 994 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 995 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17, 996 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 997 | 33,85,83,104,17,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 998 | 15,90,4,0,0,33,85,83,104,17,0,0,33,68,50,-95,69,8,8,-128, 999 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,104,17,0,0,33,68,50, 1000 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,32,15,0,104,17, 1001 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,90,4,0,0, 1002 | 32,15,0,104,17,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1003 | 15,90,4,0,0,9,85,83,104,17,0,0,9,68,50,60,49,8,8,9, 1004 | 0,-88,0,0,0,15,124,5,0,0,17,85,83,10,13,0,0,33,68,50, 1005 | 68,55,8,8,-127,0,-88,0,0,0,15,124,5,0,0,17,85,83,10,13, 1006 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,124,5,0,0, 1007 | 33,85,83,10,13,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1008 | 15,124,5,0,0,33,85,83,10,13,0,0,33,68,50,-106,2,8,8,64, 1009 | 0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13,0,0,33,68,50, 1010 | 113,2,8,8,64,0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13, 1011 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,124,5,0,0, 1012 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1013 | 15,124,5,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1014 | 0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13,0,0,33,68,50, 1015 | 45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13, 1016 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0, 1017 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1018 | 15,124,5,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1019 | 0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13,0,0,33,68,50, 1020 | 45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13, 1021 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0, 1022 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1023 | 15,124,5,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1024 | 0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13,0,0,33,68,50, 1025 | 45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13, 1026 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0, 1027 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1028 | 15,124,5,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1029 | 0,-88,0,0,0,15,124,5,0,0,33,85,83,10,13,0,0,33,68,50, 1030 | 45,2,8,8,64,0,-88,0,0,0,15,124,5,0,0,32,15,0,10,13, 1031 | 0,0,33,68,50,45,2,8,8,64,15,0,0,0,0,15,124,5,0,0, 1032 | 32,15,0,10,13,0,0,33,68,50,45,2,8,8,64,15,0,0,0,0, 1033 | 15,124,5,0,0,9,85,83,10,13,0,0,33,68,50,45,2,8,8,9, 1034 | 0,-105,0,0,0,15,-49,5,0,0,17,85,83,10,13,0,0,33,68,50, 1035 | 68,55,8,8,-127,0,-105,0,0,0,15,-49,5,0,0,17,85,83,10,13, 1036 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,-49,5,0,0, 1037 | 33,85,83,10,13,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 1038 | 15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1039 | 0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50, 1040 | 60,49,8,8,-128,0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13, 1041 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-49,5,0,0, 1042 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1043 | 15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1044 | 0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50, 1045 | 60,49,8,8,-128,0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13, 1046 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-49,5,0,0, 1047 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1048 | 15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1049 | 0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50, 1050 | 60,49,8,8,-128,0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13, 1051 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-49,5,0,0, 1052 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1053 | 15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1054 | 0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50, 1055 | 60,49,8,8,-128,0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13, 1056 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-49,5,0,0, 1057 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1058 | 15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1059 | 0,-105,0,0,0,15,-49,5,0,0,33,85,83,10,13,0,0,33,68,50, 1060 | 60,49,8,8,-128,0,-105,0,0,0,15,-49,5,0,0,32,15,0,10,13, 1061 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,-49,5,0,0, 1062 | 32,15,0,10,13,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1063 | 15,-49,5,0,0,9,85,83,10,13,0,0,9,68,50,60,49,8,8,9, 1064 | 0,-105,0,0,0,15,-30,4,0,0,17,85,83,-59,9,0,0,33,68,50, 1065 | 68,55,8,8,-127,0,-105,0,0,0,15,-30,4,0,0,17,85,83,-59,9, 1066 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,-30,4,0,0, 1067 | 33,85,83,-59,9,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 1068 | 15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50,-95,69,8,8,-128, 1069 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50, 1070 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9, 1071 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1072 | 33,85,83,-59,9,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1073 | 15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50,-95,69,8,8,-128, 1074 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50, 1075 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9, 1076 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1077 | 33,85,83,-59,9,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1078 | 15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50,-95,69,8,8,-128, 1079 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50, 1080 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9, 1081 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1082 | 33,85,83,-59,9,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1083 | 15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50,-95,69,8,8,-128, 1084 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50, 1085 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9, 1086 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1087 | 33,85,83,-59,9,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1088 | 15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50,-95,69,8,8,-128, 1089 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9,0,0,33,68,50, 1090 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-59,9, 1091 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,-30,4,0,0, 1092 | 33,85,83,-59,9,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1093 | 15,-30,4,0,0,33,85,83,-59,9,0,0,9,68,50,60,49,8,8,9, 1094 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1095 | 68,55,8,8,-127,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 1096 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,-30,4,0,0, 1097 | 33,85,83,-93,14,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 1098 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-95,69,8,8,-128, 1099 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1100 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 1101 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1102 | 33,85,83,-93,14,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1103 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-95,69,8,8,-128, 1104 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1105 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 1106 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1107 | 33,85,83,-93,14,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1108 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-95,69,8,8,-128, 1109 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1110 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 1111 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1112 | 33,85,83,-93,14,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1113 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-95,69,8,8,-128, 1114 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1115 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14, 1116 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,-30,4,0,0, 1117 | 33,85,83,-93,14,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1118 | 15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50,-95,69,8,8,-128, 1119 | 0,-105,0,0,0,15,-30,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1120 | 60,49,8,8,-128,0,-105,0,0,0,15,-30,4,0,0,32,15,0,-93,14, 1121 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,-30,4,0,0, 1122 | 32,15,0,-93,14,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1123 | 15,-30,4,0,0,9,85,83,-93,14,0,0,9,68,50,60,49,8,8,9, 1124 | 0,-88,0,0,0,15,82,7,0,0,17,85,83,-59,9,0,0,33,68,50, 1125 | 68,55,8,8,-127,0,-88,0,0,0,15,82,7,0,0,17,85,83,-59,9, 1126 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,82,7,0,0, 1127 | 33,85,83,-59,9,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1128 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,-106,2,8,8,64, 1129 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1130 | 113,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1131 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1132 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1133 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1134 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1135 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1136 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1137 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1138 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1139 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1140 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1141 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1142 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1143 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1144 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1145 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1146 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1147 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1148 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1149 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1150 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1151 | 0,0,33,68,50,45,2,8,8,64,15,0,0,0,0,15,82,7,0,0, 1152 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,15,0,0,0,0, 1153 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,9, 1154 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1155 | 68,55,8,8,-127,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1156 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,82,7,0,0, 1157 | 33,85,83,-59,9,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1158 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,-106,2,8,8,64, 1159 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1160 | 113,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1161 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1162 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1163 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1164 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1165 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1166 | 0,0,33,68,50,45,2,8,8,64,15,0,0,0,0,15,82,7,0,0, 1167 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,15,0,0,0,0, 1168 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,9, 1169 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1170 | 68,55,8,8,-127,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1171 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,82,7,0,0, 1172 | 33,85,83,-59,9,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1173 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,-106,2,8,8,64, 1174 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1175 | 113,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9, 1176 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,82,7,0,0, 1177 | 33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1178 | 15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50,45,2,8,8,64, 1179 | 0,-88,0,0,0,15,82,7,0,0,33,85,83,-59,9,0,0,33,68,50, 1180 | 45,2,8,8,64,0,-88,0,0,0,15,82,7,0,0,32,15,0,-59,9, 1181 | 0,0,32,15,0,45,2,8,8,64,15,0,0,0,0,15,82,7,0,0, 1182 | 32,15,0,-59,9,0,0,32,15,0,45,2,8,8,64,15,0,0,0,0, 1183 | 15,82,7,0,0,9,85,83,-59,9,0,0,9,68,50,45,2,8,8,9, 1184 | 0,-88,0,0,0,15,-30,4,0,0,17,85,83,10,13,0,0,33,68,50, 1185 | 68,55,8,8,-127,0,-88,0,0,0,15,-30,4,0,0,17,85,83,10,13, 1186 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,-30,4,0,0, 1187 | 33,85,83,10,13,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1188 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,-106,2,8,8,64, 1189 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 1190 | 113,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 1191 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 1192 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1193 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1194 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 1195 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 1196 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 1197 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1198 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1199 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 1200 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 1201 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 1202 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1203 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1204 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 1205 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13, 1206 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0, 1207 | 33,85,83,10,13,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1208 | 15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50,45,2,8,8,64, 1209 | 0,-88,0,0,0,15,-30,4,0,0,33,85,83,10,13,0,0,33,68,50, 1210 | 45,2,8,8,64,0,-88,0,0,0,15,-30,4,0,0,32,15,0,10,13, 1211 | 0,0,32,15,0,45,2,8,8,64,15,0,0,0,0,15,-30,4,0,0, 1212 | 32,15,0,10,13,0,0,32,15,0,45,2,8,8,64,15,0,0,0,0, 1213 | 15,-30,4,0,0,9,85,83,10,13,0,0,9,68,50,45,2,8,8,9, 1214 | 0,-105,0,0,0,15,82,7,0,0,17,85,83,10,13,0,0,33,68,50, 1215 | 68,55,8,8,-127,0,-105,0,0,0,15,82,7,0,0,17,85,83,10,13, 1216 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,82,7,0,0, 1217 | 33,85,83,10,13,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 1218 | 15,82,7,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1219 | 0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13,0,0,33,68,50, 1220 | 60,49,8,8,-128,0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13, 1221 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,82,7,0,0, 1222 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1223 | 15,82,7,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1224 | 0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13,0,0,33,68,50, 1225 | 60,49,8,8,-128,0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13, 1226 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,82,7,0,0, 1227 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1228 | 15,82,7,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1229 | 0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13,0,0,33,68,50, 1230 | 60,49,8,8,-128,0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13, 1231 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,82,7,0,0, 1232 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1233 | 15,82,7,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1234 | 0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13,0,0,33,68,50, 1235 | 60,49,8,8,-128,0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13, 1236 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,82,7,0,0, 1237 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1238 | 15,82,7,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1239 | 0,-105,0,0,0,15,82,7,0,0,33,85,83,10,13,0,0,33,68,50, 1240 | 60,49,8,8,-128,0,-105,0,0,0,15,82,7,0,0,32,15,0,10,13, 1241 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,82,7,0,0, 1242 | 32,15,0,10,13,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1243 | 15,82,7,0,0,9,85,83,10,13,0,0,9,68,50,60,49,8,8,9, 1244 | 0,-105,0,0,0,15,90,4,0,0,17,85,83,-98,11,0,0,33,68,50, 1245 | 68,55,8,8,-127,0,-105,0,0,0,15,90,4,0,0,17,85,83,-98,11, 1246 | 0,0,33,68,50,79,12,8,8,65,0,-105,0,0,0,15,90,4,0,0, 1247 | 33,85,83,-98,11,0,0,33,68,50,68,55,8,8,-127,0,-105,0,0,0, 1248 | 15,90,4,0,0,33,85,83,-98,11,0,0,33,68,50,-95,69,8,8,-128, 1249 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,-98,11,0,0,33,68,50, 1250 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,-98,11, 1251 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 1252 | 33,85,83,-98,11,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1253 | 15,90,4,0,0,33,85,83,-98,11,0,0,33,68,50,-95,69,8,8,-128, 1254 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,-98,11,0,0,33,68,50, 1255 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,-98,11, 1256 | 0,0,32,15,0,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 1257 | 33,85,83,-98,11,0,0,32,15,0,60,49,8,8,-128,0,-105,0,0,0, 1258 | 15,90,4,0,0,33,85,83,-98,11,0,0,9,68,50,-95,69,8,8,-128, 1259 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13,0,0,33,68,50, 1260 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13, 1261 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 1262 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1263 | 15,90,4,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1264 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13,0,0,33,68,50, 1265 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13, 1266 | 0,0,33,68,50,-95,69,8,8,-128,0,-105,0,0,0,15,90,4,0,0, 1267 | 33,85,83,10,13,0,0,33,68,50,60,49,8,8,-128,0,-105,0,0,0, 1268 | 15,90,4,0,0,33,85,83,10,13,0,0,33,68,50,-95,69,8,8,-128, 1269 | 0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13,0,0,33,68,50, 1270 | 60,49,8,8,-128,0,-105,0,0,0,15,90,4,0,0,33,85,83,10,13, 1271 | 0,0,32,15,0,-95,69,8,8,-128,15,0,0,0,0,15,90,4,0,0, 1272 | 33,85,83,10,13,0,0,32,15,0,60,49,8,8,-128,15,0,0,0,0, 1273 | 15,90,4,0,0,33,85,83,10,13,0,0,9,68,50,60,49,8,8,9, 1274 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1275 | 68,55,8,8,-127,0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14, 1276 | 0,0,33,68,50,-76,8,8,8,65,0,-88,0,0,0,15,90,4,0,0, 1277 | 33,85,83,-93,14,0,0,33,68,50,20,3,8,8,64,0,-88,0,0,0, 1278 | 15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50,-106,2,8,8,64, 1279 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1280 | 113,2,8,8,64,0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14, 1281 | 0,0,33,68,50,78,2,8,8,64,0,-88,0,0,0,15,90,4,0,0, 1282 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1283 | 15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 1284 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1285 | 45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14, 1286 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0, 1287 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1288 | 15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 1289 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1290 | 45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14, 1291 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0, 1292 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1293 | 15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 1294 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1295 | 45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14, 1296 | 0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0, 1297 | 33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64,0,-88,0,0,0, 1298 | 15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50,45,2,8,8,64, 1299 | 0,-88,0,0,0,15,90,4,0,0,33,85,83,-93,14,0,0,33,68,50, 1300 | 45,2,8,8,64,0,-88,0,0,0,15,90,4,0,0,32,15,0,-93,14, 1301 | 0,0,32,15,0,45,2,8,8,64,15,0,0,0,0,15,90,4,0,0, 1302 | 32,15,0,-93,14,0,0,32,15,0,45,2,8,8,64,15,0,0,0,0 1303 | }; 1304 | 1305 | -------------------------------------------------------------------------------- /examples/sid_player/sid_player.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/examples/sid_player/sid_player.fzz -------------------------------------------------------------------------------- /examples/sid_player/sid_player.ino: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Programmer = USBasp for arduino Nano ATmega328 4 | 5 | Brian Tucker 1-5-2015 6 | sid-arduino-lib: 7 | https://code.google.com/p/sid-arduino-lib/ 8 | based SID player example program sets 9 | the 25 SID/6581 registers at 50Hz (delay(19)=~50Hz) 10 | The register data is created using the excellent app 11 | "SIDDumper" from the SIDCog project: 12 | SIDCog: 13 | http://forums.parallax.com/showthread.php/118285-SIDcog-The-sound-of-the-Commodore-64-!-%28Now-in-the-OBEX%29 14 | SIDDumper: 15 | http://gadgetgangster.com/scripts/displayasset.php?id=361 16 | For best results use an IRQ at 50 or 60Hz and set the registers programatically. 17 | For info on how to make music with the SID chip and related registers 18 | I recomend the e-magazine "Commodore Hacking": 19 | http://www.ffd2.com/fridge/chacking/ 20 | Specifically the Rob Hubbard play subroutine as that is the code 21 | all serious C64 SID musicians must understand. 22 | 23 | convert the dump to number with : http://www.expertsetup.com/~brian/c64/JConverter.jar / http://softcollection.sytes.net/javaprog 24 | 25 | */ 26 | 27 | // Connect PIN 9 from your arduino Uno to audio output (+ ground to the other pin of the audio output)! 28 | 29 | #include //used to store data in the flash rom 30 | //#include "Alternative_Fuel_dmp.h" //RAW SID register data file in flash 31 | //#include "Castlevania_64_Mixes_dmp.h" //RAW SID register data file in flash 32 | //#include "Zelda_1_Dungeon_dmp.h" //RAW SID register data file in flash 33 | //#include "Open_Groove_dmp.h" 34 | //#include "Vibralux_dmp.h" 35 | //#include "Visitors_dmp.h" 36 | #include "marche_hiver_dmp.h" 37 | //#include "/home/forgeot/ownCloud/arduino/sketches/_musique/sidTest/Commando.dmp.h" 38 | //#include "/home/path/ownCloud/arduino/sketches/_musique/sidTest/Commando.dmp.h" 39 | 40 | #include // 41 | SID mySid; // 42 | 43 | #define LED 13 44 | 45 | void setup() { 46 | mySid.begin(); 47 | digitalWrite(LED,HIGH); 48 | } 49 | 50 | void loop() { 51 | for(uint16_t sidPointer=0;sidPointer<=sidLength;sidPointer++){ 52 | for(uint8_t sidRegister=0;sidRegister<=24;sidRegister++){ 53 | mySid.set_register(sidRegister, (pgm_read_byte(&sidData[(sidPointer+sidRegister)]))); 54 | }; 55 | //digitalWrite(LED,HIGH); 56 | delay(19); 57 | //digitalWrite(LED,LOW); 58 | sidPointer=sidPointer+24; 59 | }; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /examples/sid_player/sid_player_v2.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/examples/sid_player/sid_player_v2.fzz -------------------------------------------------------------------------------- /examples/sid_player/sid_player_v2_bb.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/examples/sid_player/sid_player_v2_bb.pdf -------------------------------------------------------------------------------- /examples/sid_player/sid_player_v3.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/examples/sid_player/sid_player_v3.fzz -------------------------------------------------------------------------------- /examples/sid_player/sid_player_v4.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daitangio/sid-arduino-lib/56fcfeeeaa69070e2b9320585dbff1ef640a06fb/examples/sid_player/sid_player_v4.fzz -------------------------------------------------------------------------------- /keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Test 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | SID KEYWORD1 10 | 11 | ####################################### 12 | # Methods and Functions (KEYWORD2) 13 | ####################################### 14 | 15 | set_register KEYWORD2 16 | get_register KEYWORD2 17 | 18 | ####################################### 19 | # Instances (KEYWORD2) 20 | ####################################### 21 | 22 | ####################################### 23 | # Constants (LITERAL1) 24 | ####################################### 25 | GATE LITERAL1 26 | SYNC LITERAL1 27 | RINGMOD LITERAL1 28 | TEST LITERAL1 29 | TRIANGLE LITERAL1 30 | SAWTOOTH LITERAL1 31 | RECTANGLE LITERAL1 32 | NOISE LITERAL1 33 | -------------------------------------------------------------------------------- /library.properties: -------------------------------------------------------------------------------- 1 | name=StereoSID 2 | version=2.0.7 3 | author=Christoph Haberer,Mario Patino,Giovanni Giorgi 4 | maintainer=Giovani Giorgi 5 | sentence=MOS6581 Stereo SID Emulator Arduino Library 6 | paragraph=This library emulates the SID sound chip of the famous Commodore 64 with enhanced stereo support. 7 | category=Signal Input/Output 8 | url=http://gioorgi.com/tag/stereosid/ 9 | architectures=avr 10 | license=GPLv2 11 | includes=SID.h 12 | -------------------------------------------------------------------------------- /midi_support.h: -------------------------------------------------------------------------------- 1 | namespace MIDI 2 | { 3 | /** 440hz = A4 = 0x1CD6 4 | * is normally used to tune instruments. 5 | * MIDI spec is 127 note wide, whereas SID has 94 possibilites. 6 | * I rescaled the two chords, putting zero where SID cannot cope 7 | */ 8 | 9 | const uint16_t midi2sidMapper[]={ 10 | 0,// MIDI 0 Note C-2 (OUT-OF-RANGE) 11 | 0,// MIDI 1 Note C#-2 12 | 0,// MIDI 2 Note 13 | 0,// MIDI 3 Note 14 | 0,// MIDI 4 Note 15 | 0,// MIDI 5 Note 16 | 0,// MIDI 6 Note 17 | 0,// MIDI 7 Note 18 | 0,// MIDI 8 Note 19 | 0,// MIDI 9 Note 20 | 0,// MIDI 10 Note 21 | 0,// MIDI 11 Note 22 | 0,// MIDI 12 Note 23 | 0,// MIDI 13 Note 24 | 0,// MIDI 14 Note 25 | 0,// MIDI 15 Note 26 | 0,// MIDI 16 Note 27 | 0,// MIDI 17 Note 28 | 0,// MIDI 18 Note 29 | 0,// MIDI 19 Note 30 | 0,// MIDI 20 Note 31 | 0,// MIDI 21 Note 32 | 0,// MIDI 22 Note 33 | 0,// MIDI 23 Note 34 | 0,// MIDI 24 Note C0 35 | 0x0123,// MIDI 25 Note C0# 36 | 0x0134,// MIDI 26 Note D0 37 | 0x0146,// MIDI 27 Note D0# 38 | 0x015A,// MIDI 28 Note E0 39 | 0x016E,// MIDI 29 Note F0 40 | 0x0184,// MIDI 30 Note F0# 41 | 0x019B,// MIDI 31 Note G0 42 | 0x01B3,// MIDI 32 Note G0# 43 | 0x01CD,// MIDI 33 Note A0 44 | 0x01E9,// MIDI 34 Note A0# 45 | 0x0206,// MIDI 35 Note B0 46 | 0x0225,// MIDI 36 Note C1 47 | 0x0245,// MIDI 37 Note C1# 48 | 0x0268,// MIDI 38 Note D1 49 | 0x028C,// MIDI 39 Note D1# 50 | 0x02B3,// MIDI 40 Note E1 51 | 0x02DC,// MIDI 41 Note F1 52 | 0x0308,// MIDI 42 Note F1# 53 | 0x0336,// MIDI 43 Note G1 54 | 0x0367,// MIDI 44 Note G1# 55 | 0x039B,// MIDI 45 Note A1 56 | 0x03D2,// MIDI 46 Note A1# 57 | 0x040C,// MIDI 47 Note B1 58 | 0x0449,// MIDI 48 Note C2 59 | 0x048B,// MIDI 49 Note C2# 60 | 0x04D0,// MIDI 50 Note D2 61 | 0x0519,// MIDI 51 Note D2# 62 | 0x0567,// MIDI 52 Note E2 63 | 0x05B9,// MIDI 53 Note F2 64 | 0x0610,// MIDI 54 Note F2# 65 | 0x066C,// MIDI 55 Note G2 66 | 0x06CE,// MIDI 56 Note G2# 67 | 0x0735,// MIDI 57 Note A2 68 | 0x07A3,// MIDI 58 Note A2# 69 | 0x0817,// MIDI 59 Note B2 70 | 0x0893,// MIDI 60 Note C3 71 | 0x0915,// MIDI 61 Note C3# 72 | 0x099F,// MIDI 62 Note D3 73 | 0x0A32,// MIDI 63 Note D3# 74 | 0x0ACD,// MIDI 64 Note E3 75 | 0x0B72,// MIDI 65 Note F3 76 | 0x0C20,// MIDI 66 Note F3# 77 | 0x0CD8,// MIDI 67 Note G3 78 | 0x0D9C,// MIDI 68 Note G3# 79 | 0x0E6B,// MIDI 69 Note A3 80 | 0x0F46,// MIDI 70 Note A3# 81 | 0x102F,// MIDI 71 Note B3 82 | 0x1125,// MIDI 72 Note C4 MISSED FROM A LOT OF OCRization of original manual! 83 | 0x122A,// MIDI 73 Note C4# 84 | 0x133F,// MIDI 74 Note D4 85 | 0x1464,// MIDI 75 Note D4# 86 | 0x159A,// MIDI 76 Note E4 87 | 0x16E3,// MIDI 77 Note F4 88 | 0x183F,// MIDI 78 Note F4# 89 | 0x19B1,// MIDI 79 Note G4 90 | 0x1B38,// MIDI 80 Note G4# 91 | 0x1CD6,// MIDI 81 Note A4 92 | 0x1E8D,// MIDI 82 Note A4# 93 | 0x205E,// MIDI 83 Note B4 94 | 0x224B,// MIDI 84 Note C5 95 | 0x2455,// MIDI 85 Note C5# 96 | 0x267E,// MIDI 86 Note D5 97 | 0x28C8,// MIDI 87 Note D5# 98 | 0x2B34,// MIDI 88 Note E5 99 | 0x2DC6,// MIDI 89 Note F5 100 | 0x307F,// MIDI 90 Note F5# 101 | 0x3361,// MIDI 91 Note G5 102 | 0x366F,// MIDI 92 Note G5# 103 | 0x39AC,// MIDI 93 Note A5 104 | 0x3D1A,// MIDI 94 Note A5# 105 | 0x40BC,// MIDI 95 Note B5 106 | 0x4495,// MIDI 96 Note C6 107 | 0x48A9,// MIDI 97 Note C6# 108 | 0x4CFD,// MIDI 98 Note D6 109 | 0x51A1,// MIDI 99 Note D6# 110 | 0x5669,// MIDI 100 Note E6 111 | 0x5B8C,// MIDI 101 Note F6 112 | 0x60FE,// MIDI 102 Note F6# 113 | 0x66C2,// MIDI 103 Note G6 114 | 0x6CDF,// MIDI 104 Note G6# 115 | 0x7358,// MIDI 105 Note A6 116 | 0x7A02,// MIDI 106 Note A6# 117 | 0x8178,// MIDI 107 Note B6 118 | 0x892B,// MIDI 108 Note C7 119 | 0x9153,// MIDI 109 Note C7# 120 | 0x99F7,// MIDI 110 Note D7 121 | 0xA31F,// MIDI 111 Note D7# 122 | 0xACD2,// MIDI 112 Note E7 123 | 0xB719,// MIDI 113 Note F7 124 | 0xC1FC,// MIDI 114 Note F7# 125 | 0xCD85,// MIDI 115 Note G7 126 | 0xD9BD,// MIDI 116 Note G7# 127 | 0xE6B0,// MIDI 117 Note A7 128 | 0xF467,// MIDI 118 Note A7# 129 | 0, // OUT_FOR_RANGE MIDI 120 130 | 0, // OUT_FOR_RANGE 131 | 0, // OUT_FOR_RANGE 132 | 0, // OUT_FOR_RANGE 133 | 0, // OUT_FOR_RANGE 134 | 0, // OUT_FOR_RANGE 135 | 0, // OUT_FOR_RANGE 136 | 0, // OUT_FOR_RANGE 137 | 0 // OUT_FOR_RANGE MIDI 127 138 | }; 139 | 140 | 141 | 142 | const uint8_t nC0d=25; 143 | const uint8_t nD0=26; 144 | const uint8_t nD0d=27; 145 | const uint8_t nE0=28; 146 | const uint8_t nF0=29; 147 | const uint8_t nF0d=30; 148 | const uint8_t nG0=31; 149 | const uint8_t nG0d=32; 150 | const uint8_t nA0=33; 151 | const uint8_t nA0d=34; 152 | const uint8_t nB0=35; 153 | const uint8_t nC1=36; 154 | const uint8_t nC1d=37; 155 | const uint8_t nD1=38; 156 | const uint8_t nD1d=39; 157 | const uint8_t nE1=40; 158 | const uint8_t nF1=41; 159 | const uint8_t nF1d=42; 160 | const uint8_t nG1=43; 161 | const uint8_t nG1d=44; 162 | const uint8_t nA1=45; 163 | const uint8_t nA1d=46; 164 | const uint8_t nB1=47; 165 | const uint8_t nC2=48; 166 | const uint8_t nC2d=49; 167 | const uint8_t nD2=50; 168 | const uint8_t nD2d=51; 169 | const uint8_t nE2=52; 170 | const uint8_t nF2=53; 171 | const uint8_t nF2d=54; 172 | const uint8_t nG2=55; 173 | const uint8_t nG2d=56; 174 | const uint8_t nA2=57; 175 | const uint8_t nA2d=58; 176 | const uint8_t nB2=59; 177 | const uint8_t nC3=60; 178 | const uint8_t nC3d=61; 179 | const uint8_t nD3=62; 180 | const uint8_t nD3d=63; 181 | const uint8_t nE3=64; 182 | const uint8_t nF3=65; 183 | const uint8_t nF3d=66; 184 | const uint8_t nG3=67; 185 | const uint8_t nG3d=68; 186 | const uint8_t nA3=69; 187 | const uint8_t nA3d=70; 188 | const uint8_t nB3=71; 189 | const uint8_t nC4=72; 190 | const uint8_t nC4d=73; 191 | const uint8_t nD4=74; 192 | const uint8_t nD4d=75; 193 | const uint8_t nE4=76; 194 | const uint8_t nF4=77; 195 | const uint8_t nF4d=78; 196 | const uint8_t nG4=79; 197 | const uint8_t nG4d=80; 198 | const uint8_t nA4=81; 199 | const uint8_t nA4d=82; 200 | const uint8_t nB4=83; 201 | const uint8_t nC5=84; 202 | const uint8_t nC5d=85; 203 | const uint8_t nD5=86; 204 | const uint8_t nD5d=87; 205 | const uint8_t nE5=88; 206 | const uint8_t nF5=89; 207 | const uint8_t nF5d=90; 208 | const uint8_t nG5=91; 209 | const uint8_t nG5d=92; 210 | const uint8_t nA5=93; 211 | const uint8_t nA5d=94; 212 | const uint8_t nB5=95; 213 | const uint8_t nC6=96; 214 | const uint8_t nC6d=97; 215 | const uint8_t nD6=98; 216 | const uint8_t nD6d=99; 217 | const uint8_t nE6=100; 218 | const uint8_t nF6=101; 219 | const uint8_t nF6d=102; 220 | const uint8_t nG6=103; 221 | const uint8_t nG6d=104; 222 | const uint8_t nA6=105; 223 | const uint8_t nA6d=106; 224 | const uint8_t nB6=107; 225 | const uint8_t nC7=108; 226 | const uint8_t nC7d=109; 227 | const uint8_t nD7=110; 228 | const uint8_t nD7d=111; 229 | const uint8_t nE7=112; 230 | const uint8_t nF7=113; 231 | const uint8_t nF7d=114; 232 | const uint8_t nG7=115; 233 | const uint8_t nG7d=116; 234 | const uint8_t nA7=117; 235 | const uint8_t nA7d=118; 236 | const uint8_t nB7=119; 237 | }; 238 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | MOS6581 SID Emulator Arduino Library 2 | 3 | This library emulates the SID sound chip of the famous Commodore 64. 4 | It is based on the Atmega8 MOS6581 SID Emulator from Christoph Haberer. 5 | Library conversion and memory optimization by Mario Patino. 6 | Stereo Effect by Giovanni Giorgi 7 | 8 | Take a look also at 9 | https://github.com/farvardin/C64-music/tree/master/sid_arduino 10 | for a dump of common-used musics. 11 | I added the sid_player example from the faravdin source code for a demo of this 12 | library capabilities. 13 | 14 | For list of changes refert to https://github.com/daitangio/sid-arduino-lib/blob/master/CHANGELOG.md 15 | For tips and news refer to http://gioorgi.com/tag/stereosid/ 16 | 17 | 18 | Installation 19 | -------------------------------------------------------------------------------- 20 | 21 | To install this library, just place this entire folder as a subfolder in your 22 | Arduino/lib/targets/libraries folder. 23 | 24 | When installed, this library should look like: 25 | 26 | Arduino/lib/targets/libraries/SID (this library's folder) 27 | Arduino/lib/targets/libraries/SID/SID.cpp (the library implementation file) 28 | Arduino/lib/targets/libraries/SID/SID.h (the library description file) 29 | Arduino/lib/targets/libraries/SID/keywords.txt (the syntax coloring file) 30 | Arduino/lib/targets/libraries/SID/examples (the examples in the "open" menu) 31 | Arduino/lib/targets/libraries/SID/readme.txt (this file) 32 | 33 | Building 34 | -------------------------------------------------------------------------------- 35 | 36 | After this library is installed, you just have to start the Arduino application. 37 | You may see a few warning messages as it's built. 38 | 39 | To use this library in a sketch, go to the Sketch | Import Library menu and 40 | select SID. This will add a corresponding line to the top of your sketch: 41 | #include 42 | 43 | To stop using this library, delete that line from your sketch. 44 | 45 | Using the stero effect 46 | -------------------------------------------------------------------------------- 47 | 48 | The pin9 is used for Voice1, Voice3 49 | The pin10 is used for Voice2 50 | 51 | So, the SID Voice2 is redirected to the PWM pin 10 (on ArduinoUno). 52 | No additional load is expected/required 53 | Is up to the client to know how to use this stereo capability. 54 | A small manual is included in the doc/ folder 55 | 56 | 57 | 58 | --------------------------------------------------------------------------------