fbpx
Skip to main content

MIDI Forum

Creating midi files...
 
Notifications
Clear all

Creating midi files programmatically: need recommendations

3 Posts
3 Users
0 Reactions
1,968 Views
Barnet
Posts: 1
New Member
Topic starter
 

I want create midi files programmatically (for use with sequencers). There are quite a number of ways of doing this and I could use advice on which way to go. I have experience with programming but I'm new to using midi.

One possibility is to use a programming language api, e.g.

  • Java Sound (i.e. javax.sound.midi)
  • Python: midiutil, Mido

There are also 'platforms' that support creating midi files, e.g.

  • csound
  • supercollider

There are probably other options that I haven't stumbled across yet.

I'd like an approach that gives me quite a bit of control. E.g. I want to write code to generate a walking bass line from chords.

I prefer to do my programming under linux but using OSX is also possible (I don't currently have a Windows system, so I'd rather not use Windows specific software).

Thanks

 
Posted : 18/07/2023 3:59 pm
Clemens Ladisch
Posts: 321
Reputable Member
 

This depends on what programming languages you're comfortable with.

"Control" is rather vague. What exactly do you expect the platform/library to do for you?

 
Posted : 18/07/2023 11:27 pm
Geoff
Posts: 1039
Noble Member
 

Hello Barnet,

Most sequencers (I believe) will use their own format of data file, although they may well be able also to load midi files (which they convert to their own format)) and when they save the data they will have an option to save the data as Std Midi. If you plan to do a lot of work of with with a specific Sequencer, you might prefer to look at the file format used by that system as each time you convert beween data format data might be lost.

Geoff

 
Posted : 21/07/2023 2:55 pm
Share: