添加一些关于midi播放的项目

This commit is contained in:
terryLP
2025-03-24 14:30:56 +08:00
parent e31eb22077
commit 498b4ef13b
699 changed files with 186162 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef MusicBox_h
#define MusicBox_h
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#include "pins_arduino.h"
#include "WConstants.h"
#endif
#include <avr/io.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "Player.h"
class MusicBox
{
public:
MusicBox();
void play(const unsigned char *score);
void stop();
void process();
private:
Player mainPlayer;
bool needHwInit;
};
#endif