/* * * Copyright © 2005, University of Washington, * Department of Computer Science and Engineering. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither name of the University of Washington, Department of Computer * Science and Engineering nor the names of its contributors may be used to * endorse or promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * */ // set timbre data $10-2F // timbre, tempo and volume initialization Rev. 1.0 // thanks to John Nobile for some of these // adapt these to your initialization code in HPLSoundBoardM.nc //mod/carr 1-4 are used by regular and startle songs send_fm(0x10,0x6219); // modulator 1 send_fm(0x11,0xa310); send_fm(0x12,0xa222); // carrier 1 send_fm(0x13,0xd880); send_fm(0x14,0x8223); // modulator 2 send_fm(0x15,0x0bf0); send_fm(0x16,0xbb3b); // carrier 2 send_fm(0x17,0x1000); send_fm(0x18,0x43e7); // modulator 3 send_fm(0x19,0xc355); send_fm(0x1a,0xc3e7); // carrier 3 send_fm(0x1b,0x4000); send_fm(0x1c,0x23ff); // modulator 4 send_fm(0x1d,0xd715); send_fm(0x1e,0xc332); // carrier 4 send_fm(0x1f,0x9000); //mod/carr 5 is used by the special song send_fm(0x20,0x296b); // modulator 5 send_fm(0x21,0xd0e0); send_fm(0x22,0x296b); // carrier 5 send_fm(0x23,0xd0e0); // set timbre allotment data $30 ***Don't change*** send_fm(0x30,0x3210); // set tempo data $31 default=26, slowest=31, fastest=17 send_fm(0x31,26); // this one you can change // set volumes $35, $36 default=0x15, loudest=0x1f, softest=0x08, mute 0x00 send_fm(0x35,0x15); // this one you can change send_fm(0x36,0x15); //always 0x15