Download >> Programlar >> MATLAB Music Creator - MATLAB Müzik Oluşturucu



You can download the Music Creator from below, but you need a password to start downloading. Contact me to get the password. After downloading the file, change its extension into ZIP (If site language is Turkish, click on the top-right link to change into English).



Müzik Oluşturucuyu aşağıdan indirebilirsiniz. Ancak indirme işlemine başlayabilmeniz için şifreye ihtiyacınız var. Şifreyi almak için benimle iletişime geçin. Dosyayı indirdikten sonra uzantısını ZIP olarak değiştirin.




***3 Octave Note Player for MATLAB***

Copyright (c) 2012-2013 - Volkan Gezer

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <>.

v1.0 by Volkan Gezer

*Quick Start Guide:

a) Files required:

musicplay.m - Main function file
returnNotes.m - Note letter to note number equivalent conversion function

b) Usage

0) Change MATLAB active directory to this directory.

1) Enter left and right hand notes in a char array using space between notes.

*Notes should be entered as follows: NoteLetter[Sharp(#)symbol]OctaveNumber.

Example: C#4 D5

* Since notes will be inside a char array, they should follow the rule below:
x=['NoteLetter1[Sharp(#)symbol]OctaveNumber1 NoteLetter2[Sharp(#)symbol]OctaveNumber2'];

*** Square brackets are optional, but single quotes are obligatory!

Example: i=['C#4 D5'];

* For neat coding, you may want to go to next line. To go to next line, close single quote
('), add three dots (...), go to next line, start line using single quote again and leave
a space before entering new note.


j=['C4 D3 G5 D4 D4 E4 A4' ...
' C4 C4 G5 F#4 E4 A4'

2) Call function to play the notes.

After writing notes for both left and right hand (see below (3) if you have no notes for left hand)
call function using: musicplay(rightHandNotes, leftHandNotes, defaultOctave, startFromLeft, 
playFromLeft, waittime, sampleCount, samplingFreq)

At least two arguments (rightHandNotes, leftHandNotes) should be given so that others will get 
their default values.

3) If you have no notes for leftHandNotes:

* You should create a silent note using x=['N0'] and playFromLeft argument should be zero.

*** This will bypass playing from left hand notes.

4) More questions on usage or looking for examples?

Execute: run('./twinkletwinklelittlestar_regular.m') - for Twinkle Twinkle Little Star
Execute: run('./someonelikeyou_regular.m') - for Adele - Someone Like You
Execute: run('./someonelikeyou_numbereq.m') - for Adele - Someone Like You (number equivalence of notes)
Execute: run('./titanium_regular.m') - for David Guetta - Titanium

Execute "doc musicplay" on MATLAB

c) Troubleshooting:

Here are some problems that you may experience and their solutions:

1) Subscript indices must either be real positive integers or logicals. - The first note at first line 
starting after single quote must not have a space in front of it.
2) CAT arguments dimensions are not consistent. - You used multiple lines, but forgot to place "..." at 
the end of the lines.
3) In an assignment A(I) = B, the number of elements in B and ... - There are no spaces between notes 
or octave number is missing (e.g. you only wrote C instead of C4).
4) Index exceeds matrix dimensions. - You have more than one space between notes.


English (EN)

Date added:



Volkan Gezer






0.00 MB


Download Download (Downloaded: 21)

Write a Comment

First Name Last Name:
E-Mail (will not be shown):
Security Code: 260412

Comments to the file

Comment: #1^
Title: sifre

kodlarınızı ıncelemek istiyorum şifreyi gönderirseniz sevinirim



Şifre e-posta ile gönderildi.

Added by: Fatih (Added by: 08.12.2015 13:24:25)
Comment: #2^
Title: MATLAB Müzik Oluşturucu

İyi günler, üniversite son sınıf öğrencisiyim. Yaptığım bir proje için kodlarınızı incelemek istiyorum. Rica etsem, şifreyi gönderir misiniz ?


E-posta ile gönderildi...

Added by: Erhan Eryaman (Added by: 28.04.2016 10:27:23)

Top of the page