drum

Dependencies:   mbed drum

tapeled.h

Committer:
38
Date:
2020-11-28
Revision:
0:cd5fcde85881

File content as of revision 0:cd5fcde85881:

#include "neopixel.h"
#include "note.h"

NeoPixelOut npx(PA_0,48);


bool tape_led[8] = {0,0,0,0,0,0,0,0};

void light_drum_2(){
    for(int i = 0;i < 4;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_drum_2_1(){
    for(int i = 0;i < 4;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_drum_3(){
    for(int i = 4;i < 8;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_drum_4(){
    for(int i = 8;i < 12;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_drum_5(){
    for(int i = 16;i < 20;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_drum_5_1(){
    for(int i = 16;i < 20;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_cymbal_1(){
    for(int i = 20;i < 24;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_cymbal_1_1(){
    for(int i = 20;i < 24;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_cymbal_2(){
    for(int i = 24;i < 28;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_cymbal_3(){
    for(int i = 28;i < 32;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

void light_cymbal_4(){
    for(int i = 32;i < 36;i++){
        //npx.global_scale = 1.0f;
        //npx.normalize = false;
        npx.setPixelColor(i,0x0000ff);
    }
}

//どこから1と数えるのか要相談