Discuss Scratch

Ben-Ryan
Scratcher
8 posts

MIDI Audio Files?

Is there a way to use MIDI Sequence (.mid) files in a project? When I upload a .mid file, the sound editor is blank and won't play. Can someone please help?
ErnieParke
Scratcher
1000+ posts

MIDI Audio Files?

Scratch only supports .wav and .mp3 file types. It does not support .mid files.

However, there might be some way to convert .mid files to .wav or .mp3. I do not know of any ways at the moment, but I will update this post if I find anything.

Edit: Apparently MuseScore supports .mid, and can export to .wav. Simply import the .mid into MuseScore, and then File > Save As. Make sure that when saving the music, you set the file type to .wav.

Notifying,

ErnieParke

Last edited by ErnieParke (Jan. 13, 2016 01:59:21)

footsocktoe
Scratcher
1000+ posts

MIDI Audio Files?

You could use MIDI files in Scratch if you were willing to convert them to a form Scratch could read. For example, a text file of note values with a note value on each line could be read by Scratch. It's the type of project I am working on and I imagine someone has already done it but I haven't researched that so as not to influence my own work on it.
DanloVorje
Scratcher
100+ posts

MIDI Audio Files?

MuseScore doesn't always import .mid files nicely (especially if they're recorded from playing a keyboard or other instrument in real-time rather than composing in a MIDI editor), so if that doesn't work out, you might try SolMiRe, which is an online .mid-.mp3 converter. It's not particularly versatile, but it gets the job done.

Or, if you're up for a little bit of non-Scratch coding, you can use cSound (a programming language designed especially for digital music composition), which can read in .mid files and output .wav or .aiff. There are lots of open-source demo instrument codes online, so you can use those if you don't want to program your own instruments (just be sure to credit the original authors of the instruments!).

Hope this helps!

–Danlo
agarraga
Scratcher
500+ posts

MIDI Audio Files?

Doyousketch2
Scratcher
93 posts

MIDI Audio Files?

footsocktoe wrote:

You could use MIDI files in Scratch if you were willing to convert them to a form Scratch could read. For example, a text file of note values with a note value on each line could be read by Scratch.

Yeah, I made one that reads scratchblock text.
It would play the notes if you could list ‘em out in that fashion.

You’d need to program a midi parser to convert the file over tho.
I did something like that for old Commodore 64 SID files

I'd imagine a decent route would be to convert it to a CSV spreadsheet,
then import that list into Scratch and covert it from there.
davidguy719
Scratcher
2 posts

MIDI Audio Files?

if lol = 200 then say I like that cart
archiesonic0
Scratcher
14 posts

MIDI Audio Files?

i need help with something…. nvm
1492864
Scratcher
500+ posts

MIDI Audio Files?

archiesonic0 wrote:

i need help with something…. nvm
It's best if you made your own topic in the future.
archiesonic0
Scratcher
14 posts

MIDI Audio Files?

bruh r u a scratch bot
Jareddddddd
Scratcher
1000+ posts

MIDI Audio Files?

hes not… create your own forum for your specific problems

edit: also if youd like, close this topic

Last edited by Jareddddddd (Jan. 28, 2022 16:41:33)

Powered by DjangoBB