/* * * 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. * * */ #include "cse466_progspace.h" /* pick a random rest at the end of your phrase */ uint16_t rests[4] = { 0x3060,0x3068,0x3070,0x3078 }; /* 49 phrases. Element [0] is the number of notes in the phrase */ /* the phrase names are from "Songs and Other Sounds of Birds" pp. 138-139 */ /* by Alexander V Arlton,Parkland, Wash., Lithographed for A.V. Arlton */ /* by Eklund Print Co., Hoquiam, Wash. [c1949] */ /* Special Collections, University of Washington Libraries, 979.744a Ar53s */ /* Songs of one individual Western Meadowlark, Sturnella neglecta, near Mitchell, South Dakota */ cse466_prog_uint phrase[49][9] = { /* #24.MC */ {3, 0xcc2b,0xc419,0xb82b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #25.MC */ {3, 0xcd2b,0xb92b,0xa92b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #26.MC */ {3, 0xd62b,0xba2b,0xaa2b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #27.MC */ {3, 0xdb2b,0xff19,0xab2b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #28.MC */ {3, 0xd42b,0xc42b,0xa82b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #29.MC */ {3, 0xe92b,0xfd2b,0xa92b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #30.MC */ {3, 0xea2b,0xc62b,0xaa2b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #31.MC */ {3, 0xe72b,0xc719,0xa72b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #32.MC */ {3, 0xdc2b,0xc419,0xa42b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #33.MC */ {3, 0xdd2b,0xcd2b,0xb92b,0x0000,0x0000,0x0000,0x0000,0x0000}, /* #34.MC */ {4, 0xea2b,0xd62b,0xce2b,0xca2b,0x0000,0x0000,0x0000,0x0000}, /* #35.MC */ {4, 0xeb2b,0xcb2b,0xb72b,0xd72b,0x0000,0x0000,0x0000,0x0000}, /* #36.MC */ {4, 0xc419,0xcc19,0xdc2b,0xc82b,0x0000,0x0000,0x0000,0x0000}, /* #37.MC */ {4, 0xb92b,0xdd2b,0xc92b,0xa52b,0x0000,0x0000,0x0000,0x0000}, /* #38.MC */ {4, 0xce19,0xba19,0xaa19,0xc62b,0x0000,0x0000,0x0000,0x0000}, /* #39.MC */ {4, 0xc72b,0xd72b,0xcb2b,0xaf2b,0x0000,0x0000,0x0000,0x0000}, /* #41.MC */ {4, 0xc42b,0xb82b,0xdc2b,0xc43d,0x0000,0x0000,0x0000,0x0000}, /* #42.MC */ {4, 0xc52b,0xb92b,0xc52b,0xa93d,0x0000,0x0000,0x0000,0x0000}, /* #40.MC */ {5, 0xee2b,0xce2b,0xba19,0xaa2b,0xa62b,0x0000,0x0000,0x0000}, /* #43.MC */ {5, 0xd72b,0xeb2b,0xd719,0xc719,0xa72b,0x0000,0x0000,0x0000}, /* #44.MC */ {5, 0xe82b,0xc42b,0xdc19,0xcc19,0xb42b,0x0000,0x0000,0x0000}, /* #45.MC */ {5, 0xd52b,0xe519,0xe92b,0xdd19,0xcd2b,0x0000,0x0000,0x0000}, /* #46.MC */ {5, 0xce2b,0xc619,0xea19,0xaa19,0xa619,0x0000,0x0000,0x0000}, /* #47.MC */ {5, 0xcf2b,0xdf2b,0xcf2b,0xdf2b,0xcf2b,0x0000,0x0000,0x0000}, /* #48.MC */ {5, 0xdc2b,0xe82b,0xdc2b,0xc419,0xa82b,0x0000,0x0000,0x0000}, /* #49.MC */ {5, 0xdd2b,0xe92b,0xdd2b,0xb919,0xa92b,0x0000,0x0000,0x0000}, /* #50.MC */ {5, 0xde2b,0xea2b,0xce19,0xba19,0x9e2b,0x0000,0x0000,0x0000}, /* #51.MC */ {5, 0xc72b,0xbb2b,0xd72b,0xc72b,0xa73d,0x0000,0x0000,0x0000}, /* #53.MC */ {5, 0xe42b,0xd42b,0xe42b,0xd42b,0xa43d,0x0000,0x0000,0x0000}, /* #62.MC */ {5, 0xc52b,0xc52b,0xb92b,0xc52b,0xa53d,0x0000,0x0000,0x0000}, /* #52.MC */ {6, 0xc62b,0xea2b,0xc62b,0xea2b,0xc62b,0xaa2b,0x0000,0x0000}, /* #54.MC */ {6, 0xe72b,0xb719,0xa719,0xc72b,0xc72b,0xa719,0x0000,0x0000}, /* #55.MC */ {6, 0xc42b,0xd42b,0xc42b,0xd42b,0xc419,0xa42b,0x0000,0x0000}, /* #56.MC */ {6, 0xc52b,0xd52b,0xc52b,0xd52b,0xc52b,0xb92b,0x0000,0x0000}, /* #57.MC */ {6, 0xd62b,0xea2b,0xd62b,0xea2b,0xd619,0xba2b,0x0000,0x0000}, /* #58.MC */ {6, 0xd72b,0xb72b,0xd72b,0xc72b,0xd719,0xb72b,0x0000,0x0000}, /* #59.MC */ {6, 0xc42b,0xdc2b,0xc42b,0xdc2b,0xc419,0xb82b,0x0000,0x0000}, /* #60.MC */ {7, 0xb92b,0xb92b,0xb92b,0xb92b,0xcd2b,0xb92b,0xd52b,0x0000}, /* #61.MC */ {7, 0xfe19,0xfe19,0xb619,0xfe2b,0xce2b,0xfe19,0xaa2b,0x0000}, /* #63.MC */ {7, 0xcb2b,0xd72b,0xdf2b,0xd719,0xcb2b,0xd719,0xcb2b,0x0000}, /* #64.MC */ {7, 0xd42b,0xe82b,0xdc2b,0xd42b,0xc42b,0xd42b,0xc42b,0x0000}, /* #65.MC */ {7, 0xcd2b,0xe92b,0xe93d,0xe919,0xcd2b,0xe919,0xcd2b,0x0000}, /* #66.MC */ {7, 0xce2b,0xea2b,0xd62b,0xd619,0xce2b,0xd619,0xce2b,0x0000}, /* #67.MC */ {7, 0xd72b,0xeb2b,0xdf19,0xd719,0xc719,0xd719,0xc719,0x0000}, /* #68.MC */ {7, 0xd42b,0xf43d,0xdc19,0xcc19,0xb819,0xcc19,0xb819,0x0000}, /* #69.MC */ {7, 0xd52b,0xe908,0xdd2b,0xd519,0xc519,0xd519,0xc519,0x0000}, /* #70.MC */ {7, 0xd608,0xea2b,0xde2b,0xd619,0xc619,0xd619,0xc619,0x0000}, /* #71.MC */ {8, 0xba19,0xba19,0xba19,0x9d2b,0xcd2b,0xdd2b,0xc52b,0xc52b}, /* #72.MC */ {8, 0xc519,0xc519,0xa519,0xa519,0xcd19,0xcd19,0xb919,0xb919}};