programming used for music

jonemere 101 Jan 09, 2010 at 11:27

I don’t know anything related to programming which are used for music.Anybody there who can tell me what type of languages are used for music purpose.I am curious to know about that.Any help is greatly appreciated.

11 Replies

Please log in or register to post a reply.

johnson1 101 Jan 09, 2010 at 12:07

Guitar pro is the most used music software now a days I guess. Its has easy to use and understand tabs. Regarding the programming, I think you can use any programming to create music. You can even produce some beep melody form QBASIC.

Nerd_Skywalker 101 Jan 09, 2010 at 14:41

Do you mean software or Libraries? I am pretty sure that most languages have music libraries for them, you just have to look.

TheNut 179 Jan 09, 2010 at 14:51

You can learn XAudio2 for Windows using C++ or C# or you can learn OpenAL using C++ for cross platform support. Although keep in mind if your target is Windows, you’re better off with XAudio2 since OpenAL is quite a mess right now and its future is questionable.

You can alternatively use a couple C++ libraries and hide the details of the low level APIs mentioned above. FMOD is very popular and free for non-commercial use. It is used in a lot of AAA titles and it comes with easy to use tools to prepare your sounds and music.

And yes, QBASIC makes for some interesting beeps :) Funny, the BEEP was my first command ever programmed.

Reedbeta 167 Jan 09, 2010 at 18:16

If you just want to play MP3s, any audio library will do. If you want to create your own music using a computer i.e. specifying which instruments are used, which notes are played etc. then you may want to look into MIDI.

spencersternberg 101 Jan 10, 2010 at 09:55

If you are referring to programming languages then you should seriously consider taking a look at Supercollider. It is an object orientated language with syntax similar to C. I have to admit it is fairly daunting to begin with if you are new to programming, but there is a wealth of reference material available so you can work your way through learning it.

The reason I suggest Supercollider, is that it is a language created for music, with some really amazing class libraries and functions. It also has some really cool features like the ability to interpret all strange kinds of data and then synthesize the data as sound. Have a look on their site for examples of what you can do with just code.

z80 101 Jan 10, 2010 at 10:32


I don’t know anything related to programming which are used for music.Anybody there who can tell me what type of languages are used for music purpose.I am curious to know about that.Any help is greatly appreciated.

If you want usable answers you have to be more specific about your problem than “music purpose”. Tells us about what you are working with and be specific about what you want to do.

SamuraiCrow 101 Jan 10, 2010 at 21:40

I’ve written a music compiler in C that translates from a subset of the old Protracker Module format. It uses a technique called a coroutine to translate the time indexes into the appropriate C code.

Most tracker module players do not translate into C code though. Most have an interpreter-based library like MikMod or Open ModPlug Tracker. If you want to get started simply, download MilkyTracker and follow a tutorial to edit the music with that.

kemronhits 101 Mar 03, 2010 at 06:16

I have no idea where to start on this. I think there are number of platforms, methods, tools and software.
I have only sound programming expirence in java’s javax.sound package which is really simple and something with c++.
I think JDKMidi library in java it concentrate on programming the Music.

Advoc 101 Mar 10, 2010 at 22:07

I’ll second supercollider, I’ve heard some very interesting things done with it.

But by far the most useful program you could probably use for either synthesizing sounds/music or manipulating existing audio that you have the rights to use… would be a combination of a DAW (digital audio workstation, such as cubase, pro tools, ableton, cakewalk/sonar, etc) and either PureData or MaxMSP.

PureData and maxMSP are OOP environments that are interpretive much like unreal’s kismet and/or material editor, based on patches.


Puredata is opensource and free. MaxMSP is the same program with a few more bells and whistles, but it is a commercial release and costs quite a bit, unless you’re a student. ( I got it for 250 USD ) but PureData will do everything MaxMSP does, it just doesn’t look as nice and not quite as user friendly.

On the other hand, if you have a mac available Cecilia ( is a great program. It is a frontend for Csound, so if you have any Csound algorithms you can plug them into Cecilia and get a good idea of what they are doing. It comes with a bunch already installed I believe, The author doesn’t feel like supporting windows, however, so the port to windows is done by a 3rd party and is very buggy.

rouncer 103 Mar 11, 2010 at 07:31

All you need is direct sound or anything that gives you access to the main sound buffer. (just like getting access to the screen.)

Then you can do absolutely whatever you want, you can pump samples into it, but my favorite is actually synthesising the sound with saw tooths and fm distortion and all sorts of awesome things. :)

its called DSP (digital sound programming)

I like to do all my sound by accessing the main buffer and using no more library other than that, then do the rest myself, sound is simple that way sometimes its best not to overcomplicate things by using huge music libraries, try coding a bit yourself.

Manuel_Marino 101 Aug 25, 2010 at 20:59

That’s weird… nobody said: music grammar :)