Re: file format for sound
Re: file format for sound
- Subject: Re: file format for sound
- From: Admiral Quality <email@hidden>
- Date: Mon, 08 Aug 2011 19:14:42 -0400
The question everyone is asking is why do you feel you need to
assemble the music programatically when you could just play an MP3 of
the whole, completed piece?
Also MP3 is lossy compressed, so you're looking at size savings of
typically about 10X over AIFF or WAV.
If it's because game events cause the music to change, then it's
understandable. But if you just want background music, building a
sequence and sample playback engine (which is like a product in
itself) is probably overkill.
But if you want a gun in your game to play back a sample of a gunshot,
then that's a different requirement entirely. This is what everybody's
trying to ask, what are you REALLY trying to do?
- AQ
On Mon, Aug 8, 2011 at 7:04 PM, Bob Sabiston <email@hidden> wrote:
> Yeah well that is why I was asking if it already existed, because I don't
> want to write it! :) Realistically I will probably just go with
> the AudioFilePlayer that Jim MCGowan described.
> So, yes. I don't know sh*t about sound or audio it seems, but from what
> little I pretend to understand, what I am describing does not sound so
> freaking preposterous. Maybe it is, though. Sound programming is a weird
> wild place compared to graphics programming, to me.
> Bob
>
> On Aug 8, 2011, at 5:54 PM, Gregory Wieber wrote:
>
> Then, you are going to have to look into the musicplayer example code. What
> you're describing is a MIDI based music player. It's not a trivial thing to
> construct. The correct file-format to use would really depend on the
> implementation you come up with.
>
>
> On Mon, Aug 8, 2011 at 3:41 PM, Bob Sabiston <email@hidden> wrote:
>>
>> I asked my question on the developer forums too but I am not really sure
>> what you are referring to there.
>> Yes, primarily I am wanting to play music sequences. Like, I want to use
>> GarageBand or some other music creation program to make a song that I like.
>> If I only use 5 drum hits, some guitar strings and keyboard notes, etc,
>> then I should be able to make a song of great length and still keep the file
>> size way down. Whereas if I were to use MP3 or AIFF it seems like the file
>> size would be much longer.
>> I am not sure what you mean by "play a sample as a way of triggering sound
>> effects", so I think that is not something I'm trying to do.
>> Thanks
>> Bob
>>
>>
>> On Aug 8, 2011, at 5:31 PM, Gregory Wieber wrote:
>>
>> There may be things in the apple developer beta area that would be of
>> interest, but a lot of it is under NDA.
>> Are you trying to re-create music sequences with these files? Or are you
>> looking to play a sampler as a way of triggering sound effects? Or both?
>>
>>
>>
>> On Mon, Aug 8, 2011 at 3:22 PM, Bob Sabiston <email@hidden> wrote:
>>>
>>> well, I mean pure in the sense that with GarageBand and other similar
>>> programs you typically compose songs by sequencing samples, and I was
>>> thinking that there should be a format which just consists of that data, the
>>> samples and the times they should be played.
>>>
>>> Bob
>>>
>>> On Aug 8, 2011, at 4:53 PM, Brian Willoughby wrote:
>>>
>>> >
>>> > On Aug 8, 2011, at 13:37, Bob Sabiston wrote:
>>> >> I'm not sure I need to go buy a book to learn the answer to this
>>> >> fairly simple question, do I? After slogging through all the crap necessary
>>> >> to get synth sound and mixed channels w/ fx playback and music
>>> >> simultaneously on iOS, I don't really feel like such an absolute beginner.
>>> >> I just am confused as to why my mp3 playback does not work with longer
>>> >> files, and in addition I am wondering whether a 'pure' sound format exists,
>>> >> where you get the samples and their sequencing all bundled up in a file.
>>> >
>>> >
>>> > A 'pure' sound format would only include sound, not sequencing or
>>> > sample information. In other words, a bundle cannot be pure unless all of
>>> > the data is of one type. What you're describing is a hybrid of sound
>>> > waveforms and sequencing, with multiple data types in a single file. There
>>> > have been such file types in the past, but they were usually custom-designed
>>> > for one particular program and then adopted by one or two others.
>>> >
>>> > Brian Willoughby
>>> > Sound Consulting
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Coreaudio-api mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>>
>>> This email sent to email@hidden
>>
>>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden