This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Show and tell
  •  » A little music player that I made... with working pause button.

#1 2010-08-09 10:11:03

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

A little music player that I made... with working pause button.

I was sketching out ideas for my next OS yesterday, and I thought it might be nice to have a music player. I realised that often, pause buttons in Scratch music players often stop the music permanently, because most use imported music. One solution to this would be to fragment the music into shorter clips, but even then, it would take a lot of work to make it precise.

So I decided that using the MIDI sounds ready installed into Scratch would make this process a whole lot easier. I simply took the sheet music of the sample (in this case "Twinkle Twinkle Little Star"), and worked it out as you would to play the music regularly. Then, I created two lists - "Note" and "length" to record, you guessed it, the note and the length of the note. Then, I set up another sprite, which acts as a pause/play button, and triggers the variable "pause" when the pause costume is clicked.

I also added some graphic effects because I felt like it.

I will be making an updated version later, which will be more condensed. Feel free to use this or the update in your OS, or simply change the lists to create your own playlists.

And here's the project


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#2 2010-08-09 10:39:41

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: A little music player that I made... with working pause button.

Cool!!!  smile

Last edited by melikecheese (2010-08-09 10:39:58)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#3 2010-08-09 10:56:13

chipguy
Scratcher
Registered: 2009-09-09
Posts: 500+

Re: A little music player that I made... with working pause button.

wow! any idea how that works? ...oh wait, they play that with notes so if you keep a list you can go from where you left of...


thanks!


http://scratch.mit.edu/static/projects/chipguy/2919121_sm.png by yours truly  big_smile

Offline

 

#4 2010-08-09 11:04:24

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: A little music player that I made... with working pause button.

Thanks!  big_smile  I finished the condensed version, by the way: http://scratch.mit.edu/projects/blueshadow/1237161


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#5 2010-08-09 12:20:48

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: A little music player that I made... with working pause button.

Modified it to pause and rewind  big_smile

Also, I added sheep  big_smile   big_smile   big_smile  Baaaaaaaaaaaaaaaaaaaaaaaaa!  tongue


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#6 2010-08-09 12:25:04

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: A little music player that I made... with working pause button.

Why did you add sheep?


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#7 2010-08-09 12:26:00

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: A little music player that I made... with working pause button.

Woah, very cool!


Scratchin' since 2007

Offline

 

#8 2010-08-09 12:26:02

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: A little music player that I made... with working pause button.

@MLC: Because sheep are awesome ^^


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#9 2010-08-09 18:26:06

sanddude
Scratcher
Registered: 2009-06-29
Posts: 1000+

Re: A little music player that I made... with working pause button.

Bump!


http://www.bronyland.com/images/quiz/banner_rainbowdash.jpg

Offline

 
  • Index
  •  » Show and tell
  •  » A little music player that I made... with working pause button.

Board footer