Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML2 Audio format seperating audio by instrument  (Read 2731 times)

0 Members and 1 Guest are viewing this topic.

Intrexa

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML2 Audio format seperating audio by instrument
« on: November 28, 2011, 05:15:41 pm »
I googled each of the file formats that SFML supports, I just want to make sure I'm not missing something obvious.

What I want is for a song to have several instruments in it, and to be able to dynamically remove or add a single instrument from it. So say a song has drums, guitar, and piano, I want to be able to stop the piano dynamically at 40 seconds in, and start it again 80 seconds in.

Obviously I can simply have a different file for each instrument, but this seems rather inefficent and obtouse. I am new completly new to everything audio, so I really have no knowledge on audio files or the way it is playedback, so any advice is very much welcomed.

Which format/method would allow me to produce my desired effect, without taking up unreasonable amounts of disk space and ram?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 Audio format seperating audio by instrument
« Reply #1 on: November 28, 2011, 07:30:00 pm »
Maybe the MIDI format would be the best for you. But it requires specific audio libraries, and not all of them can provide enough control to do what you want.

And, MIDI requires to have an instruments bank available, which can take more than 100 MB for good quality.
Laurent Gomila - SFML developer