File Exchange

image thumbnail

Theme from Super Mario Brothers Song

version 1.0.0.0 (2.95 KB) by James Humes
plays the Super Mario Brothers theme song.

35 Downloads

Updated 08 Sep 2005

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Put these two files into the same directory and run mariosong.m. It will play the first part of the mario brothers theme song. You can edit note.m to add qualities to the sound.

Comments and Ratings (52)

Error in Line 90
How can i fix this

I found and solved some errors in the code. Below the changed lines are reported.

xt = zeros(1, round(sum(tdur)*fs+1));
xb = zeros(1, round(sum(bdur)*fs+1));
xa = zeros(1, round(sum(adur)*fs+1));
xd = zeros(1, round(sum(ddur)*fs+1));

Anton

I have the same problem of @Tschey

Error in line 90
Attempted to access note(56,0.17); index must be a positive integer or logical.

And if I set n = 3, I abtain:
Attempted to access note(56,3); index out of bounds because size(note)=[1,22051].

Ayhan

Müthiş... superb !

tej enosh

Super Super Superbb.. Dude Very Nice

awsm..

Youssef

Aneeta Niazi

i must say...AMAZING!!:D

Kenneth Tam

Dude Thats cool!

Superbb...

Vageesh

Tschey

I cant run it.. always get same erorr..
??? Attempted to access note(56,0.17); index must be a
positive integer or logical.

Error in ==> mariosong at 90
tone=note(keyst(kk), tdur(kk));

Error in ==> run at 57
evalin('caller', [s ';']);

any idea?

Jenny Gao

Sound tickled ~~

Adi

David Smith

Soncs

It's awesome!!!

Sisi Ma

Robert

Christian

Funny¡¡¡¡

Oskar Vivero

Unbelievable!

Adam Peabody

use some sptool. Filter out some of the frequencies, we had a blast.

alain amador mancera leyva

cool matlab shoud be used fo0r this kind of fun

sefsefa wdawa

how do i open that file

dsadf fdyj

-

Kyle Friesen

Jake Horky

True Matlab audio bliss!

RJ Duran

sweetness

Frank Lusher

Thats TOO cool. Do some more stuff like this!

Andrew Schierer

Ahahaha. So good it hurts.

Na Pabo Ng

HOW DID YOU DO THIS? AMAZING!

anun seetun

i love you

scott frushour

by far, cooler then anything I've ever done in Matlab.

Carlos Adrián Vargas Aguilera

jajajaja, very very funny! Excelent!

J Hereford

Very nice work.

Tom Rose

Very Excellent

shachar m

David Blue

Impressive. Good NES timbre emulation.

top kitty

Dude! this program helped me on my final exam!!

kunal kakodkar

LOL! awesome.

Juan Manuel

yeah man, that was cool !

vakeyeshta halilla

thats the cool thing in matlab ever, are you pro?

Jason Armerstrong

WOW! That was way better than I expected.

Maximilien Chaumon

Thanks guys ! Good old days...

Robert Young

Very cool!

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux