Sound Generator Sample

Dependencies:   Sound_Generator

Fork of Sound_Generator_Sample by GR-PEACH_producer_meeting

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers score.h Source File

score.h

00001 /******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer
00021 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 ******************************************************************************/
00023 
00024 #ifndef    _SCORE_H
00025 #define    _SCORE_H
00026 
00027 
00028 /* De Camptown Races */
00029 #define    SCORE_DeCamptownRaces                                        \
00030     "120"                                                               \
00031     "+a8+a8+a8f#8+a8+b8+a8f#8r8"                                        \
00032     "f#8e3f#8e4+a8+a8+a8f#8+a8+b8+a8f#8r8e4f#8e8d4r8"                   \
00033     "+a8+a8+a8f#8+a16+a16+b8+a8f#8r8"                                   \
00034     "f#8e3f#8e4+a8+a8+a8f#8+a16+a16+b16+b16+a16+a16f#8r8e4f#8e8d3r8"    \
00035     "d6d16f#8+a8+d3r8+b6+b16+d8+b8+a8r8"                                \
00036     "f#16g16+a8+a8f#16f#16+a16+a16+b8+a8f#4 e8f#16g16f#8e8d4r8"
00037 
00038 
00039 /* Red River Valley */
00040 #define    SCORE_RedRiverValley             \
00041     "68"                                    \
00042     "d8g8+b4+b8+b8+b4+a8+b8+a8g4.r4"        \
00043     "d8g8+b4g8+b8+d4+c8+b8+a2r4"            \
00044     "+d8+c8+b4+b8+a8g4+a8+b8+d8+c4.r4"      \
00045     "e8d#8d4f#8g8+a4+b8+a8g2."              \
00046     "r8"
00047 
00048 /* Jingle Bells */
00049 #define    SCORE_JingleBells\
00050     "110"                                                \
00051     "e8e8e4@1 e8e8e4@1 e8g8c8.d16@1 e2@1"                \
00052     "f8f8f8.f16@1 f8e8e8e16e16@1" "e8d8d8c8@1 d8g4.@1"   \
00053     "e8e8e4@1 e8e8e4@1 e8g8c8.d16@1 e2@1"                \
00054     "f8f8f8.f16@1 f8e8e8e16e16@1" "g8g8f8d8@1 c4.r8@1"
00055 
00056 /* We Wish You a Merry Christmas */
00057 #define    SCORE_WeWishYouAMerryChristmas                \
00058     "144"                                                \
00059     "d4 g4g8+a8g8f#8 e4e4e4 +a4+a8+b8+a8g8 f#4d4d4"      \
00060     "+b4+b8+c8+b8+a8 g4e4d8d8 e4+a4f#4 g4r4"             \
00061     "d4"                                                 \
00062     "g4g4g4 f#2f#4 g4f#4e4 d4r4+a4"                      \
00063     "+b4+a4g4 +d4d4d8d8 e4+a4f#4g2r4"
00064 
00065 /* define score for each channel */
00066 #define     SCORE1      SCORE_DeCamptownRaces
00067 #define     SCORE3      SCORE_RedRiverValley
00068 
00069 #ifndef     SCORE0
00070 #define     SCORE0      NULL
00071 #endif
00072 
00073 #ifndef     SCORE1
00074 #define     SCORE1      NULL
00075 #endif
00076 
00077 #ifndef     SCORE2
00078 #define     SCORE2      NULL
00079 #endif
00080 
00081 #ifndef     SCORE3
00082 #define     SCORE3      NULL
00083 #endif
00084 
00085 #endif    /*_SCORE_H*/
00086 /* End of File */