Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define NOTES {1000, 2000}
- unsigned int note[] = NOTES;
- unsigned int numONotes = sizeof(note) / sizeof(unsigned int);
- unsigned int duration[];
- void setup() {
- ...
- duration = new unsigned int[numONotes];
- //duration = (unsigned int*)malloc(sizeof(note));
- ...
- }
Add Comment
Please, Sign In to add comment