Jump to content

  • Log In with Google      Sign In   
  • Create Account

Is Audio Data Represented By Notes MIDI-Only?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Toothpix   Crossbones+   -  Reputation: 810

Like
1Likes
Like

Posted 06 December 2012 - 07:06 PM

I am programming a MIDI sequencer and SIMPLE digital song-writer for my game, which will have a soft techno-esque soundtrack. I want the internal data structures to be based off of musical notes, and the output to be either to the speakers or to an audio file. I just don't know how to interface my internal data structures for notes/timing and the computer's audio output. I was thinking about MIDI, but I am not sure if learning the entire MIDI spec through-and-through is really necessary for just outputting a few notes. How do you output digital musical notes in Windows? I was thinking about eventually adding MIDI file support later, do you think making the entire thing MIDI-based will do me good? How do you output MIDI notes in Windows?

C dominates the world of linear procedural computing, which won't advance. The future lies in MASSIVE parallelism.


Sponsor:

#2 minibutmany   Members   -  Reputation: 1679

Like
1Likes
Like

Posted 06 December 2012 - 08:13 PM

If you are programming this in a high level language like C++ or Java, you can use the included classes for sound file playback. If you want to synthesize the sound in real time there are a few audio libraries out there that can do that too. It would really help to know what language/IDE you are using.
Stay gold, Pony Boy.

#3 ic0de   Members   -  Reputation: 909

Like
1Likes
Like

Posted 07 December 2012 - 05:34 PM

If you are programming this in a high level language like C++ or Java, you can use the included classes for sound file playback. If you want to synthesize the sound in real time there are a few audio libraries out there that can do that too. It would really help to know what language/IDE you are using.


considering he tagged winapi one can infer that he's on windows and is probably using c or c++

Edited by ic0de, 07 December 2012 - 05:34 PM.

you know you program too much when you start ending sentences with semicolons;


#4 Toothpix   Crossbones+   -  Reputation: 810

Like
1Likes
Like

Posted 07 December 2012 - 07:19 PM

considering he tagged winapi one can infer that he's on windows and is probably using c or c++

Yes, I am using C, and was thinking about using the Windows API.

C dominates the world of linear procedural computing, which won't advance. The future lies in MASSIVE parallelism.


#5 ic0de   Members   -  Reputation: 909

Like
1Likes
Like

Posted 09 December 2012 - 06:52 PM

I use SDL I can write into the audio buffer and generate tones. Probably not worth to move your game into SDL unless your game is already using SDL for other stuff.

you know you program too much when you start ending sentences with semicolons;





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS