Showing posts with label music. Show all posts
Showing posts with label music. Show all posts

Sunday, September 1, 2013

So, what does Paul Simon have to do with array processing?

Glad you asked.


As anyone that has tried to teach arrays can tell you they can be a bit dry. Sadly, the best way to really understand anything in programming is to practice. One of the best workarounds I have found is storing music in arrays. My AP kids never really got into the classic drunkards walk program, but make it a random set of notes on a kazoo and tuba and they were all over it. Music lets them play, which means more practice.

This is fairly simple to do. Each note is a number, or an object, depending on the language. I have done this in Scratch, Visual Basic and Java with the kids. Scratch music is built right in, in VB we use the Beep command, and in Java I use the JMusic tools.

And what, you might be asking, does this have anything to do with You can Call Me Al?

If you listen ahead to about 3:30, there is a bass solo. A Palindromic bass solo. The first part was recorded by Bakithi Kumalo, then played backwards for the second half

The lesson:

  • Play the video - ask them if they notice anything about the bass solo - you might need to play it a few times, and it helps if you have some band kids in the room.
  • Make sure everyone understands palindromes
  • Code a tune - store your notes in an array.
  • Create a new array that will store the original tune, then store it backwards.
  • So if your original tune was:  A B B D E the new array would store A B B D E E D B B A
  • Demo the songs to the class.




Another extension here is to watch the video of U-Bassists Abraham Laboriel and Bakithi Kumalo jamming in 2012. What happens if a musician makes a mistake on stage?

I am planning on using this as a journal prompt this year. One of the hardest things for new programmers happens around mistakes. Sadly this is a by product of much of the rest of their education. They are trained to find the right answer.  In computer science we care most about the correct solution, and that is usually going to take several tries. Sometimes the mistake points the way to a better solution. My goal is to get them to embrace their mistakes.


Curious if anyone is using music in any other languages - if so, please share. 

Wednesday, May 12, 2010

Finally! Stream iTunes OnlineRumors about an online version of iTunes have been rampant since mid to late 2009, but now it looks like there's a little truth to the idea...maybe. Apple will be launching an online music service that will allow users to listen to music streamed over the internet. Experts say the new application could become a major threat for music websites such as Spotify, a service that allows users access to millions of songs through a paid subscription.

Each iTunes user will have access to a "digital locker," which allows them to store music they've purchased through the iTunes store. If you'd like to access your locker, you simply go to the website (the New York Times says it will probably be iTunes.com), log in, and voila! Your music is there, waiting to be listened to on any computer.

With the current version of iTunes, music can only be stored on your computer or your iPod, which rules out listening to it on the go in some cases.

Last year, Apple bought Lala.com and last month, they closed it down. This led many to believe the web version of iTunes is coming. Lala's Software allows users to store music libraries online and play them through any browser on any computer. It's most likely that these guys will be working on the new web-based version of iTunes.

The New York Times spoke with an unnamed record label executive who said Apple had announced plans to create a cloud-based service just weeks before it purchased Lala. Others wondered if Amazon or Google would beat Apple to creating such a service.

Personally, I'm not sure I would use this service very often. I'm a big iTunes fan, but I'm never in a position where I would want to access my music on another computer. If I'm traveling with intentions to work, I generally take my laptop and/or iPod along if I plan to listen to music. If I'm on another computer, other than my laptop, I am most likely in a place where playing music wouldn't be a great idea, though I suppose you can always wear headphones. On the plus side, I can see where it would be handy if you own multiple computers. I guess we'll just have to wait and see what Apple comes up with.



Looking for Computer / PC Rental information? Visit the www.rentacomputer.com PC Rental page for your short term business PC needs. Or see this link for a complete line of Personal Computer Rentals.
Subscribe to RSS Feed Follow me on Twitter!