Discuss Scratch

JamesOuO
Scratcher
500+ posts

.midi to .sb2 converter

Could this be possible?
I'd imagine all you'd have to do is make a program that creates sprites that have
play note ( v) for (0.5) beats
blocks, but then the problem of having one instrument playing multiple notes pops up.

Is this possible, (of course it is, but is it viable) and if so could someone make one?

Thepuzzlegame
Scratcher
1000+ posts

.midi to .sb2 converter

It is possible with Kurt.

Last edited by Thepuzzlegame (April 18, 2015 17:18:01)


hi!
goldfish678
Scratcher
1000+ posts

.midi to .sb2 converter

Probably. For one thing, though, you'd have to program something to write quite a bit of JSON.

Last edited by goldfish678 (April 18, 2015 00:00:56)

blob8108
Scratcher
1000+ posts

.midi to .sb2 converter

Thepuzzlegame wrote:

It is possible with Kurt.
Indeed! I had an example that worked (and I think still does): import_midi.py

tosh · slowly becoming a grown-up adult and very confused about it
PrincessPandaLover
Scratcher
1000+ posts

.midi to .sb2 converter

blob8108 wrote:

Thepuzzlegame wrote:

It is possible with Kurt.
Indeed! I had an example that worked (and I think still does): import_midi.py
Aw, dang! Kurt requires Python 2.7 while I'm using Python 3.4! Can anyone write a program doing this midi concept?
blob8108
Scratcher
1000+ posts

.midi to .sb2 converter

PrincessPandaLover wrote:

Kurt requires Python 2.7 while I'm using Python 3.4!
Just install Python 2 alongside Python 3! A lot of people do that.

tosh · slowly becoming a grown-up adult and very confused about it
PrincessPanda_test_
Scratcher
1000+ posts

.midi to .sb2 converter

blob8108 wrote:

PrincessPandaLover wrote:

Kurt requires Python 2.7 while I'm using Python 3.4!
Just install Python 2 alongside Python 3! A lot of people do that.
I may do that.

DigiTechs
Scratcher
500+ posts

.midi to .sb2 converter

It's a lot cooler when you make it yourself, though

I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
creeperboy698
Scratcher
42 posts

.midi to .sb2 converter

I'm using python 2 AND using the code you put and it still won't work, it always gives me a syntax error
Jonathan50
Scratcher
1000+ posts

.midi to .sb2 converter

creeperboy698 wrote:

I'm using python 2 AND using the code you put and it still won't work, it always gives me a syntax error
It'd help if you can post the error.

Last edited by Jonathan50 (Jan. 5, 2018 23:43:02)


Not yet a Knight of the Mu Calculus.
MrMeowington
Scratcher
100+ posts

.midi to .sb2 converter

I always get “no module named midiparse”. Any fix?

EDIT: Nevermind, you just need to download midiparse.py first and put it in the same directory as import_midi.py.

Last edited by MrMeowington (Aug. 11, 2018 03:22:09)


Hey there! I don't use this account anymore. You can find me over at @Scratch137.
MrMeowington
Scratcher
100+ posts

.midi to .sb2 converter

FOR THOSE OF YOU WITH PYTHON 2.7 AND PYTHON 3 INSTALLED TOGETHER:
Run this command in the terminal (Linux only):
python import_midi.py "MIDI_LOCATION" "EXPORT_LOCATION"
The python command corresponds to Python 2.x, and the python3 command corresponds to Python 3.x.

Last edited by MrMeowington (Aug. 11, 2018 03:26:36)


Hey there! I don't use this account anymore. You can find me over at @Scratch137.
Raytracing
Scratcher
86 posts

.midi to .sb2 converter

Hmm yes sound like a job python or javascript might try.

insert something here




Raytracing
Scratcher
86 posts

.midi to .sb2 converter

Its not too hard to create an .sb2 file with custom scripts the main part is getting everything timed with optimal efficiency (It needs to find the most amount of notes running at the same time and…), A compiler is probably a bit out of reach but @chooper100 's MIDI Impoter (Interpreter) can practically do the trick. (the problem with this is its not to customisable)

Or you can use kurt like was mentioned before but it may not be as accurate and as fast running as the interpreter (no offence)

MIDI Imported (chooper100) https://scratch.mit.edu/projects/101508699/
Kurt (blob8108) https://github.com/tjvr/kurt/blob/master/examples/import_midi.py

I could try working on a new compiler but I dont know if I have the time, Nor the understanding of the format of MIDI files.

Sorry for not being much help, Hope someone else is a lot better use than I am

insert something here




Powered by DjangoBB