This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-04 08:42:59

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

MIDI in scratch

I think that MIDI should be in scratch. It would be a nice little thing to put in scratch, to use the real world with scratch. Users could use a MIDI device, as well as scratch, to make music games, like guitar hero.


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#2 2011-08-04 11:03:45

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: MIDI in scratch

Use the
[blocks]<play note( 65 )for( a set amount of  )secss>[/blocks] block and the [blocks]<play drum( 42 )for( a set amount of )secss>[/blocks] blocks. MIDI already exists, if this was what you were talking about.

Last edited by videogame9 (2011-08-04 11:06:51)


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#3 2011-08-04 11:12:33

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: MIDI in scratch

It would be nice if there was MIDI input.


Posts: 20000 - Show all posts

Offline

 

#4 2011-08-04 11:59:30

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

videogame9 wrote:

Use the
[blocks]<play note( 65 )for( a set amount of  )secss>[/blocks] block and the [blocks]<play drum( 42 )for( a set amount of )secss>[/blocks] blocks. MIDI already exists, if this was what you were talking about.

Not quiet what I was talking about. I want to be able to plug my MIDI keyboard into scratch, so that like when I play a note on my keyboard, it tells scratch it was pressed.


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#5 2011-08-04 14:15:06

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: MIDI in scratch

Being able to import MIDI files is extremely necessary imo - sometimes a song sounds simply great as MIDI but when ran through fancy converters with "realistic" soundfonts it sounds like that: A MIDI file attempting to sound realistic and failing miserably  tongue

MIDI is also a very lightweight format. You could fit a whole game soundtrack while still using less than half a MB, but if you were to use MP3 you couldn't upload the Scratch project due to the size.

But, I see you're actually talking about receiving and sending MIDI commands... Perhaps that could be done with broadcasts? Say, you could name a broadcast "note_60", and if the MIDI note 60 (middle C) is played from your piano a "When I receive (note_60)" block would be triggered  smile  If it's too complicated for Scratch (it's a program for little kids after all), at least as a slightly hidden function (like Mesh) it'd be great  big_smile

TL;DR: Sending/receiving MIDI commands would be good, but one thing we really need is importing .MID files for smaller project sizes.

Last edited by technoguyx (2011-08-04 14:17:59)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#6 2011-08-04 14:40:37

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: MIDI in scratch

IMO, importing MIDI is pretty important. Or, you could drag a MIDI file into Scratch and it will convert it into note blocks, similar to how dragging animated GIFs into Scratch will be converted into a series of costumes. It's a good idea.

These blocks:
[blocks]<play note(  )for(  )secss>[/blocks](now called play note for _ beats) and
[blocks]<play drum(  )for(  )secss>[/blocks](now called play drum for _ beats)
are MIDI-based, so importing MIDI is possible.

Offline

 

#7 2011-08-04 15:21:09

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: MIDI in scratch

I really like the idea of Scratch converting MIDI files into note blocks. I wonder how hard that would be to implement?


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#8 2011-08-04 16:39:55

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

Maybe it could be in a scratch MOD...


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#9 2011-08-04 20:57:26

Death_Wish
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: MIDI in scratch

456bingo123 wrote:

Maybe it could be in a scratch MOD...

But even better in Scratch 2.0, as we would be able to upload it here  big_smile


With a straight flush.
http://4.bp.blogspot.com/-FlUhnzmIROE/TgtpjdJl4tI/AAAAAAAABCM/W19pvFTZFaU/s1600/save_the_world.png http://blocsonic.com/images/special/rip-stevejobs.jpg

Offline

 

#10 2011-08-04 21:39:51

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

Death_Wish wrote:

456bingo123 wrote:

Maybe it could be in a scratch MOD...

But even better in Scratch 2.0, as we would be able to upload it here  big_smile

Yeah, but I'm not sure if it would be able to be in 2.0 becuse it' too late. What do you think? Should we submit the idea to the scratch team??


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#11 2011-08-04 21:41:16

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: MIDI in scratch

I think there should be a site that runs on ScratchR that is for mods.  big_smile


Posts: 20000 - Show all posts

Offline

 

#12 2011-08-04 21:57:47

Death_Wish
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: MIDI in scratch

1, to bingo, it's not too late, they've barely done anything on Scratch 2.0, really. It would be hard, though.
2, to veggie, that would be very hard as the site would have to support every block every mod has. That's the reason people don't upload projects of Panther, lets say, to this website.


With a straight flush.
http://4.bp.blogspot.com/-FlUhnzmIROE/TgtpjdJl4tI/AAAAAAAABCM/W19pvFTZFaU/s1600/save_the_world.png http://blocsonic.com/images/special/rip-stevejobs.jpg

Offline

 

#13 2011-08-05 06:14:56

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

I'm going to see if I can submit this to the scratch suggestions. I'll put a link here soon if you guys want to support it.


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#14 2011-08-05 06:22:06

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

I don't have any more votes! Can someone suggest it to scratch by going to suggest.scratch.mit.edu?


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#15 2011-08-05 10:00:09

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: MIDI in scratch

I like this idea.  But instead of receiving as play note [] for () beats, I think it should receive similar to the sensor board (it's called a PicoBoard, I think...)

Offline

 

#16 2011-08-05 13:41:32

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

These are all good ideas! Can someone suggest it to the scratch team (Suggest.scratch.mit.edu) I don't have any votes left. Please give me credit if you do!!


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#17 2011-08-05 15:49:23

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: MIDI in scratch

I did! http://suggest.scratch.mit.edu/forums/60449-suggestions/suggestions/2115147-importing-midi-using-midi-devices-on-scratch-

Let's get more supporters!!! (Unfortunately, 456bingo123 can't because he's out of votes.)

Last edited by a1130 (2011-08-05 15:50:34)

Offline

 

#18 2011-08-05 16:55:45

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

a1130 wrote:

I did! http://suggest.scratch.mit.edu/forums/60449-suggestions/suggestions/2115147-importing-midi-using-midi-devices-on-scratch-

Let's get more supporters!!! (Unfortunately, 456bingo123 can't because he's out of votes.)

Thanks!


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#19 2011-08-05 22:19:09

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: MIDI in scratch

Don't forget one and all, to help support this by going to http://suggest.scratch.mit.edu/forums/60449-suggestions/suggestions/2115147-importing-midi-using-midi-devices-on-scratch-    to vote on this idea! Thanks in advanced!


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#20 2011-08-06 01:47:22

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: MIDI in scratch

MyRedNeptune wrote:

I really like the idea of Scratch converting MIDI files into note blocks. I wonder how hard that would be to implement?

Probably really hard and complicated and the result would be kinda unorganized but who cares I want it  big_smile   big_smile   big_smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#21 2011-08-09 17:42:06

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: MIDI in scratch

Jonathanpb wrote:

MyRedNeptune wrote:

I really like the idea of Scratch converting MIDI files into note blocks. I wonder how hard that would be to implement?

Probably really hard and complicated and the result would be kinda unorganized but who cares I want it  big_smile   big_smile   big_smile

Well, you can drag animated GIFs into Scratch and Scratch will convert it into costumes. That wasn't so hard to implement, right? Once again, the Scratch note blocks are MIDI based  tongue  The only problem with converting MIDI into note blocks is what happens when there is a chord/polyphony in the MIDI file? Then it will have to create a couple of seperate scripts, like this:

Code:

 The first script somewhat like this:
{when flag clicked}
[play note (60) for (0.5) beats]
[play note (62) for (0.5) beats]

The second script somewhat like this:
{when flag clicked}
[rest for (0.5) beats]
[play note (67) for (0.5) beats]

Also, I think in MIDI files (or maybe just in NoteWorthy Composer?), you have a "piano pedal" feature (Scratch doesn't have a "pedal" block, as in the damper pedal on a piano) which might be hard to implement, unless a pedal block is made in Scratch 2.0.

Last edited by a1130 (2011-08-09 17:48:36)

Offline

 

Board footer