Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a good API for creating music via programming?

I'm looking into playing around with procedurally generating music. I'm hoping to find a really a simple API where I can just call out instrument, note, duration and string together a song (I'll take anything of course, but that would be my preference). Is there any library that does this?

like image 487
Justin Bozonier Avatar asked May 11 '09 22:05

Justin Bozonier


People also ask

Is there any API for music?

SoundCloud API With the help of its SDKs it's easy to integrate functionality like audio sharing and recording directly into iOS, Android and web apps.

Is there any free music API?

A look into some of the Top Free Music APIs available for Spotify, iTunes, musiXmatch, SoundCloud, and more. TheAudioDB.com is a community driven database of audio metadata.

Is there an API for YouTube music?

The purpose of this library is to automate interactions with YouTube Music, such as retrieving your library content, managing playlists and uploading songs. To achieve this, it emulates web requests that would occur if you performed the same actions in your web browser.

Is Spotify API paid?

Price: Spotify provides its API to developers for free. However, users who want to access extra features, such as ad-free access and offline playing of music, need to register for the premium service, which starts from $9.99 per month.


1 Answers

Your best bet is a music programming environment, of which there are several.

Csound is one of the best known ones. Here is their website.

Max MSP is also another widely used option, and it provides a visual programming interface too. It is, however, commercial.

Another well known option (and widely used by experimental electronic musicians) is SuperCollider. This is its webpage.

Here's a Wikipedia article describing similar languages/environments.

You can also use a general programming language with the right libraries to do audio/music work. Java, for one, provides the Java Sound API.

like image 52
Hejazzman Avatar answered Nov 03 '22 02:11

Hejazzman