[directmusic] Re: Q's

  • From: "Jason Booth" <jason@xxxxxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Thu, 30 Jan 2003 13:02:41 -0500

Depends on what CPU usage you can allow. We're always aiming for less
than 10% of the cpu on our min-system, and that seems to allow us to
decode two, maybe 3 MP3 streams at once..


-----Original Message-----
From: Paul Stroud [mailto:paul@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]=20
Sent: Thursday, January 30, 2003 5:26 AM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] Re: Q's



Thanks for that Jason.

Out of interest, how many is a ton?

How many waves do you run at the same time? on average or peak. I'm just
looking for the safe limits of DM

> -----Original Message-----
> From: directmusic-bounce@xxxxxxxxxxxxx=20
> [mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of Jason Booth
> Sent: 29 January 2003 17:23
> To: directmusic@xxxxxxxxxxxxx
> Subject: [directmusic] Re: Q's
>
>
>
>
> Um, I would recommend against this if you ever want to be able to load

> your project in a timely fashion. One of my project uses a ton of mp3=20
> encoded wavs, and doing it that way took over 2 hours to re-load the=20
> project. Instead, do this:
>
> - Add a tone at the beginning of each wav about 2.1 seconds long. It=20
> should be extremely easy to see where this tone ends
>       - You want to have 2.1 seconds of tone because often the codec
puts a=20
> glitch 2 seconds into the file. =3D20
> - Compress all the wavs into wav encoded mp3s.
> - Uncompress all the encoded wavs back into wavs and store them in a=20
> new folder (under the same name)
> - Use the uncompressed wavs in DMP
> - After run-time saving the project, copy your encoded wav versions=20
> over the uncompressed versions.
>
>       The reason you do the compression and uncompression is to get
the=20
> result of what the wav encoded mp3 adds to the track (a short pause at

> the beginning). You can then use the tone to see this offset clearly,=20
> and set your start point just past the tone. This is the only way to=20
> get things to stay in sync.
>
>       Basically, using encoded wavs in DMP the way you think they'd be

> useful is asking for a huge headache. But with a bit of work arounds,=20
> it's manageable.
>
>
> -----
>
>
> Scott's point about mp3 encoding stereo wavs is definitely a problem=20
> for me. The way to get round it is to encode your wavs as mp3 in Sound

> Forge or whatever you use, saving not as an mp3 file but as an mp3=20
> encoded wav file. Then you can import your stereo mp3 compressed file=20
> into DMP and it should work.
>
> You can use Microsoft ADPCM of course, which should work for everyone,

> but it can be a bit crunchy sounding - depends a lot on the timbre of=20
> the source sound I find.
>
> One thing I'd be interested to know in relation to Paul's questions is

> whether an mp3 codec is now installed as standard on current windows=20
> versions? I assume it must be in XP?
>
> -----Original Message-----
> From: directmusic-bounce@xxxxxxxxxxxxx=20
> [mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of Paul Stroud
> Sent: 29 January 2003 10:19
> To: directmusic@xxxxxxxxxxxxx
> Subject: [directmusic] Re: Q's
>
>
>
> Thanks Scott.
>
> So do you think it'll be best if I use Wavs only, or is there another=20
> way? A compression that I can be sure all will have.
>
> Is it very unlikely someone will not have the mp3 codec on their=20
> machine?
>
> Can anyone think where my problem lays with encoding mp3?
>
> Cheers
>
> Paul
>
> > -----Original Message-----
> > From: directmusic-bounce@xxxxxxxxxxxxx=3D20
> > [mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of Scott Morgan
> > Sent: 29 January 2003 01:41
> > To: directmusic@xxxxxxxxxxxxx
> > Subject: [directmusic] Re: Q's
> >
> >
> >
> > Hi Paul,
> >
> > DMDemo is completely safe.  It does not write or change anything=20
> > on=3D20 your hard drive.  It just loads the content and does what=20
> > the=3D20 interface tells it to.
> >
> > If the mp3 codec is not on someone's system the mp3 will fail to=20
> > play,
>
> > sorry.  I think there is a problem encoding stereo files to mp3 in=20
> > DMP
>
> > (like you can't do it).  That may be your problem.
> >
> > Oh, if you only use an audiopath for one segment, its actually=20
> > easiest
>
> > to embed the audiopath in the segment.  If you only use one=20
> > audiopath=3D20 like I usually do its better to not reference it in =
the

> > script at all.
>
> > If you are using DMDemo you can make your audiopath the default=3D20 =

> > audiopath using the DMDemo.ini.  The reason this is better is=20
> > because=3D20 if you create it in the script the new audiopath is an=20
> > additional=3D20 audiopath besides the already existing default=20
> > audiopath created by=3D20 DMDemo or whatever app you are using. If =
you

> > are using multiple audiopaths then you should either embed them
> in
> > your segments or create them in the script depending on how they are
> used.
> >
> > I like to embed all of my content in the script to make things=3D20=20
> > cleaner.  You would use references if you had multiple scripts and=20
> > you
>
> > wanted the scripts
> > to be able to use the same files.  For instance in the project I am=20
> > working on I have one DLS set and one audiopath that all the scripts

> > use.  I
> just
> > load different instruments in each script and I adjust the FX
> paraemeters
> > using Param Ctrl tracks.
> >
> > The memory part depends on whether or not you tell the script =
to=3D20=20
> > download all content when the scirpt loads (not whether its=20
> > embedded=3D20 or not). There is a check box on the property page for =

> > that.  If you=3D20 uncheck it then you have the repsonsibilty of =
using

> > the=3D20 DownloadSoundData command to load things and using=20
> > UnloadSoundData to=3D20 unload things before the script gets closed. =

> > Unless you are ready for=3D20 some serious technical problems, I=20
> > recommend you leave the=3D20 auto-loading on.  My current project =
uses

> > dynamic loading and it had=3D20 been a nightmare...its sure lets me=20
> > use a lot more samples though.
> >
> > Streaming waves are also not affected by embed or not.
> >
> > -Scott Morgan
> > http://Morganstudios.com
> >
> >
> > ----- Original Message -----
> > From: "Paul Stroud" <paul@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > To: <directmusic@xxxxxxxxxxxxx>
> > Sent: Tuesday, January 28, 2003 9:25 AM
> > Subject: [directmusic] Re: Q's
> >
> >
> > >
> > > Thanks Leo.
> > >
> > > My main concern is with the compression, but this is just part of=20
> > > my
> > overall
> > > concern with distribution for potential clients i.e. DMDemo
> > "songs" on my
> > > showreel
> > >
> > > I want to reassure them that DMDemo will not tamper with any
> > system files
> > or
> > > folders.  Can I do this and use mp3 compression without fear of
> > the client
> > > not being able to play it due to a lack of the decoding codec?
> > >
> > > Paul
> > >
> > > > -----Original Message-----
> > > > From: directmusic-bounce@xxxxxxxxxxxxx=3D20
> > > > [mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of Leo Newman
> > > > Sent: 28 January 2003 16:45
> > > > To: directmusic@xxxxxxxxxxxxx
> > > > Subject: [directmusic] Re: Q's
> > > >
> > > >
> > > >
> > > > I only know about the second item.
> > > >
> > > > The advantage of setting a variable to an audiopath is gained
> > when you =3D3D
> > > > use
> > > > the audiopath multiple times.  If you do not use it multiple
> > times, you
> > =3D3D
> > > > are
> > > > better off just creating it in the function call.  Otherwise
> > you would =3D3D
> > > > have
> > > > the overhead of making the function call multiple times
> > instead of just
> > > > passing a variable that is already set.
> > > >
> > > > This is just a programming perspective.  I haven't done much=20
> > > > with=3D20 =3D3D audiopaths in VB.
> > > >
> > > > Leo
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: directmusic-bounce@xxxxxxxxxxxxx=3D20
> > > > [mailto:directmusic-bounce@xxxxxxxxxxxxx] On Behalf Of Paul=20
> > > > Stroud
> > > > Sent: Tuesday, January 28, 2003 3:37 AM
> > > > To: DirectMusic List
> > > > Subject: [directmusic] Q's
> > > >
> > > >
> > > > Hello people,
> > > >
> > > > I have a couple of questions if any of you have the time
> > > >
> > > > 1). How can I implement compression? Particularly mp3 and =
ogg=3D20

> > > > vorbis
> > > >
> > > > I have Wavelab, but still can't encode to MP3 in DMP. I
> > thought that WL
> > > > would have installed the codecs. No? I think I found one line=20
> > > > in=3D20 the =3D3D help file of DMP, but that wasn't particularly =

> > > > helpful,=3D20 although I
> > now think
> > =3D3D
> > > > I
> > > > know why I can't encode - I just don't know how I can.
> > > >
> > > > I also need to be sure that the user will be able to play it=20
> > > > -=3D20 error messages would look very bad to say the least.
> > > >
> > > >
> > > > 2). Is there any advantage in setting a variable to an
> > audiopath, and =3D3D
> > > > then
> > > > using that variable to declare the path used in a .play method?
> > > >
> > > > i.e.
> > > >
> > > > Set oAudioPathVari =3D3D3D Audiopath1.create segment1.play=20
> > > > IsPrimary, oAudiopathVari
> > > >
> > > > as opposed to...
> > > >
> > > > segment1.play IsPrimary, Audiopath1.create
> > > >
> > > > 3). What scenarios would you embed components in a script and
> > when would
> > =3D3D
> > > > you
> > > > reference? Does embedded components get loaded into RAM when
> > the script
> > =3D3D
> > > > is
> > > > loaded? How does this affect wave streaming?
> > > >
> > > > Thank you to anyone that can help
> > > >
> > > > Paul
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>
>
>
>
>
>



Other related posts: