// ᗜ‿ᗜ
#include <Arduino.h>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
#include "SD.h"
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include "myPin.h"
#include "support.h"
#include "player.h"
void play(){
int check_points[] = {0, 0};
playerParameter p1 = {0, 2, check_points, "/sheet-01.txt", true, new int [2] {0,1}, 2};
xTaskCreate(play_music, "Music", 8192, &p1, 1, NULL);
playerParameter p2 = {1, 2, check_points, "/sheet-02.txt", false, new int [3] {3,2,1}, 3};
play_music(&p2);
}
void saikyou(){
File ff = SD.open("/fumo.txt");
for (int i = (9-9); i < (9+9+9-(9+9+9)/9); i++){
cout << getLine(ff) << endl;
}
}
void setup() {
Serial.begin(115200);
set_buzzer_pin();
load_SD_card();
saikyou();
play();
}
void loop() {
delay(5000000);
}