From our sponsor: Meco is a distraction-free space for reading and discovering newsletters, separate from the inbox.
If you don’t know what a cassette is, you were probably born in the digital high-tech era, an era that is undoubtedly exciting and innovative. On the other hand, if you know what an audio cassette is, you belong to the older generation, the analog dinosaurs that know the painful connection between a pen and a cassette tape.
The invention of the compact cassette tape happened 50 years ago, so it’s time to celebrate:
“In 1962 Philips invented the compact audio cassette medium for audio storage, introducing it in Europe in August 1963 (at the Berlin Radio Show), and in the United States (under the Norelco brand) in November 1964, with the trademark name Compact Cassette.”
Since the old-fashioned cassette player is disappearing, we wanted to commemorate it by sharing an old school cassette player build with HTML5 audio with you. It’s just an experiment and the idea is to imitate the behavior of a vintage cassette tape (play, stop, rewind, fast forward and side switch) and use HTML5 audio. The magnetic tape inside should move as well accordingly. It’s far from being a perfect imitation of the classic cassette tape, it’s really just a fun experiment. You will probably find many bugs!
The beautiful cassette tape is by Mauricio Estrella and he shares his pixel-perfect PSD here:
Cassette – PSD File by Mauricio Estrella
The songs in the demo are by the highly talented Blue Ducks and Blank & Kytt:
The tape sound effects are from Pogotron’s sample on Freesound.org:
Tape Recorder.wav by Pogotron
For the volume control we used the great KnobKnob jQuery plugin by Martin Angelov.
The icon font that we use for the player controls are from the Font Awesome icon font by Dave Gandy and we’ve used Fontello for creating a custom set. The Font Awesome icon set is licensed under CC BY 3.0.
We really hope you enjoy this little time travel, turn your sound on and play with it and tell us if you got nostalgic 🙂
Please note that this is highly experimental and for fun purpose only. There is no fallback for older browsers (irony!) and only super-funky disco moves are allowed! 🙂
This is absolutely sick! Can I use it for my bands website? 🙂
Hey Kuba, thanks a lot! It’s highly experimental but you are of course free to use it! Cheers, ML
Where is the pen to rewind the tape ?!?
as usual, awesome work Mary.. big fan of yours..!!
Now this is something i call.. wowsome!!!
Uffff rebrutal lo que haces…..te felicito nos haces los dias mas happy !!!… congratulations
Awesome results, but I’m a little disappointed with the execution. Seems too many downloads/tutorials emphasize the HTML5/CSS3 something uses, and too often that makes one think that those will be the primary tools used. I guess you can’t have something like this without js, but I was hoping this would showcase something I didn’t really know well before – HTML5 and playing audio in the browser. I was hoping less js would be involved and more HTML5, CSS3, and browser tools. The sheer size of the jquery.cassette.js alone about gave me whiplash (for those who haven’t inspected it yet, it’s roughly 1000 lines of code that’s mostly undocumented, and it still relies on about 3 whole other js files and/or libraries — this having kicked my head in after all the MP3 players I made in Flash that ended up using about 1/10 as much coding).
Beautiful!
AMAZING!!! You are a GENIUS!!
OMG!!, MARY LOU!, beautiful woman, your work always impresses!!! cheers from colombia 😉
Fabulous! Never seen anything like this.
Thanks for all the cool stuff you post.
Wow! Awesome! I LOVE IT!
Love this.
You are probably gonna hate this question but
What would be the best way to shrink everything into 320×480 responsively?
ie: Fixed pixel media queries values or fluid %
this is fantastic!
this is awesome! any way to make the FF and REW actually play the music in double or triple speed instead of the reel-to-reel sound effect?
This is an awesome tutorial, one of the best I have seen in quite some time
Yeahh, really nice project Mary Lou. Congrats
Sensacional!
It’s So Perfect… You are the sample that “Everything you can think, can become on web”.. Thank you so much for those brilliant ideas!
This is awesome. I am not even going to look at the source code. This stuff is too advanced for me right now.
wonderful idea ! but somehow i deleted your music from /sounds insert my mp3´s
also changed the line in casette.js
$.Cassette.defaults = {
songs : [ ‘track2’, ‘Track14’ ],
fallbackMessage : ‘HTML5 audio not supported’,
// initial sound volume
initialVolume : 0.7
};
but when i reload it is only “loading” doesnt start playing ..
The songs should be in /songs, not /sounds . Hope it helps. Cheers, ML
mary,
you leaving me speach less from article to article
and i have nothing to say anymore, except that you are fu……
genius !!!!
thanks
Amazing experiment. The interface is fantastic. Codrops is the most interesting development blog in the internet. Great work.
Awesome work guys! Happy to see KnobKnob getting used 🙂
Mary Lou, you kick ass rock the web with your experiments. A deep bow for you.
Genial!!
That is so sweet – and probably only to us older crew that grew up with those painful lovable machines.
You just need to implement when they get jammed, chew your tape up and eject it to have a stream of mangled tape everywhere. Luv yr wk
It’s just so amazing, en un mot “Génial” , Marylou chapeau bas.
awesome like always mary lou
Love This !!!!!!!!!!!!!!!!!
wow, cool..
Can add a Pause Button?
Stop button is Pause Button… I would change the button Image from Square to || 🙂
Once again! AWESOME. awesome awesome awesome. What does it feel like to be on the forefront of web technology?
Hi MARY LOU…
the example is awesome. I’ve never imagine that something like this would be exist.
the audio works great. and cool switch, rewind and FF animation.
Actually I’m silent reader of tympanus.net. You guys always bring fresh article about web development.
But, do you guys can make some post about html5 audio player based on jQuery. But just a simple player.
I do know about jPlayer. But I have no idea to implement it to wordpress theme. (I know there is a jPlayer plugin, but i need to create built in audio player in my wordpress theme).
Thank you. 😀
awesome !! That’s super cool idea~~
i will call you”????”!!
Thank you all for your super-great feedback!! I’m so happy you like it!! xxx ML
@Mary Lou This is an awesome thing 🙂 Damn Cool !!!
It’s really deadly coooooool!
Thanks a lot for always sharing cool staffs!
Thanks so much for the awesome experiments! It really helps everyone starting out in the development community learn unique ways of creating interactive content. Keep up the awesome work!
Awesome !!
Really nice techniques. Can’t wait to try this out. Thanks for this post! Nice work.
Absolutely awesome. Great work Mary Lou!
How fun! Thanks for sharing!
I haven’t seen anything better looking in a long while. Absolute top Manoela!
Emil
Shame it doesn’t work on the iPad. Haven’t tried to look into why – but a very cool bit of development.
Are you human? I think you come from another planet.
Amazing,
thankyou very much
so cool
AWASOME,,,,,
This has to be the funkiest HTML5 based player I have ever seen. Great job, I really love it!