colour sensor credit card code/programme

Screen Shot 2015-10-23 at 5.16.38 pm

I am using a colour sensor to make different sounds when a lego credit card gets swiped.

some thing i liked today was doing the credit card part of programing as shown here

the hardest thing i did was to get the first part of the credit card sequence the sonar sound is still to long