Pages: [1]   Go Down
Author Topic: translate and store midi file directly into sketch  (Read 957 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Everybody

New to arduino,

I Want to load or translate a very simple midi file sequence into sketch and play it back for turning on or off things in accordance with NOTE ON and NOTE OFF.
Is it possible to translate and somehow store the sequence in the arduino without using SD cards?

Thanks in advance
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 612
Posts: 49199
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is it possible to translate and somehow store the sequence in the arduino without using SD cards?
Depends on how big the sequence is and how long you need to persist the information.
« Last Edit: January 16, 2011, 08:08:49 am by PaulS » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, the sequence is really short about 10Kb, and I want to keep it into the chip for using it in stand alone operation, without computer, thats why I need to store the sequence into the arduinos memory.

THX
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26273
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it is only 10K, put it into PROGMEM
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 612
Posts: 49199
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
OK, the sequence is really short about 10Kb
Really short and 1/3 of available program memory do not belong in the same sentence. smiley

I asked about persistence to determine if the Arduino needs to remember the data after a reset.

If it does, you really will need external memory, like an SD card.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26273
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Really short and 1/3 of available program memory do not belong in the same sentence
That really depends on how long the OP's sketch sans data is.
Any clues, OP?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, first, mi intention is to turn off the arduino and still have the sequence I understand it is possible.

But what I am looking for is an easy way to extract the sequence included into de .mid file and convert it to sketch language.

I dont know how to do it. My intention is to avoid putting all events one by one

THXs
Logged

Pages: [1]   Go Up
Jump to: