Questions tagged [procedural-music]

Procedural or computer-generated music is music composed by, or with the extensive aid of, a computer or computer programs.

10 questions
13
votes
5 answers

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…
Justin Bozonier
  • 7,584
  • 9
  • 44
  • 46
8
votes
4 answers

Dynamic Audio Generation Actionscript 3

I'm looking into making a music theory lab application, where you can see the graphical relation between music theory concepts. I would like this to be available online, so Flash and Silverlight come to mind. But I would like to dynamically…
BefittingTheorem
  • 10,459
  • 15
  • 69
  • 96
7
votes
4 answers

Procedural music generation?

Anyone have good book / article recommendation for procedural generation of background music? (No vocals, just instruments). I'm not interested in: How do I generate the sound of a particular note on a particular instrument I'm interested in: How…
anon
  • 41,035
  • 53
  • 197
  • 293
6
votes
2 answers

Procedural snare drum

So I've got something like: void createSinewave( short * array, int duration, int startOffset, float freq, float amp ) ; void createSquarewave( short * array, int duration, int startOffset, float freq, float amp ) ; Other functions "slide"…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
4
votes
1 answer

C# XNA generate MIDI

I wish to play MIDI like notes from the C# XNA program. I don't actually need to construct a MIDI file, just have the ability to start and stop notes or play them for a given time. play("flute", "D4", "start"); play("flute", "D4",…
alan2here
  • 3,223
  • 6
  • 37
  • 62
3
votes
1 answer

Flip an array of Cellular Automata data into a music score (like WolframTones)

Ok, so using some basic principles of Cellular Automata, I've managed to get a program running which generates a set of data calculated from rules. Each cell is a boolean. Currently I am storing it as so - boolean[][] data - where the first index…
3
votes
1 answer

Using Markov chains for procedural music generation

Does anyone know of an online resource where I can find stochastic matrices for an nth order Markov chain describing the probability of a note being played based on the previous n notes (for different musical genres, if possible)? I am looking for…
2
votes
3 answers

Procedural audio for rolling dice

I'm looking for suggestions on how to approach randomizing the audio around rolling a pair of D6 dice in my game. I'd like each roll of the dice to sound different but be reasonably plausible. And I don't want to make a bunch of pre-recorded dice…
P.T.
  • 24,557
  • 7
  • 64
  • 95
2
votes
1 answer

Analyzing and composing music in Python

I wanted to know how can I go about analyzing a music piece and further create a similar sounding music. There must be some quantifiable parameters of a music piece that must be sufficient to compose it. If yes, what are those parameters and how can…
1
vote
1 answer

Unity - sine wave oscillator generates metallic noise

I am trying to create a sine wave oscillator to play with audio sources. At first I created a simple one like this: public class FirstOscillator : MonoBehaviour { public double frequency = 400.0; private double increment; private double…
bashis
  • 1,200
  • 1
  • 16
  • 35