PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Sound engine demo

Overloaded Music Player Tech Demo

download link:
http://overloaded.pocketmatrix.com/Overloaded%20Music%20Player.exe

Features:
- up to 16 soundchannels
- various soundmixers among which interpolated ones
- Sampled sounds and/or realtime synthesis instruments
- Sampled sounds can loop bidirectional
- Easy reuse of sampled sounds for small filesizes.
- Synthesised sounds can have upto 4 effect layers among which morphs/filters etc etc
- Multiple (sub) songs into 1 big song which all share the same instrument/sample bank.
- Small memory footprint due to synthetic sounds and sample reuse. (especially zipped)

Demosongs:
- Popcorn
The famous little synth song. Made entirely with synthetic instruments. Zipped only 3 kb.
Shows that songs can be really small using synthetic sounds but still sound good.

- Waterballet
A small tune also made entirely of synthetic sounds. zipped only 8kb
Shows that player can emulate typical FM synthesis (yamaha DX7) type sounds.

- Kingtut
A somewhat more substantial song. Zipped 96kb. Has sampled sounds (drums) and
synthesized sounds (the rest).

- Subsongs
One of the largest songs. Has tons of lo-fi samples and some crisp synthetic sounds.
Shows the capability to have more than 1 subsong in the main song to save memspace.

- Pacman
Just a silly version of the pacman theme showing off that we really can't make any music. ;^)


notes:

- Some synthetic sounds are more costly than others. For instance, realtime filters are more processorpower intensive than say a simple pulsewidth modulation. Bearing this in mind, the composer can make his/her songs just so that it remains in the processor power usage the programmer had reserved for the music.
- We are starting soon to rewrite various partds of the sound engine to ARM assembly. This should give an expected increase of 200 - 300 % in performance.
- A quick way to boost performance now is to go to the settings menu and select a lower fequency output or even toggling mono mode rendering.

Comments welcome!


Reinier
laurnet · 30 Jul 2002, 23:40 UTC — sound engine
wwooo ,awesome
pib · 31 Jul 2002, 08:12 UTC — Real time sound
Hi Reinier,
does your demo use Mikmod?
I'm working on a game (Jacco knows). It's about a car race.
I have a little tech question, may be you can help me
on this.
The question is: I want to play music and sound effects (business as usual) but I also want to render the sound of the engine so that, depending on speed or gear, the pitch raises or lowers. I've tried by playing short looped sounds but the outcome is quite lame...
I guess the answer is synthesized sound, I know how to do it with the waveout API's but I don't know how to do that with Mikmod...
Any idea?
thx
huhu some more stuff for a g_Api->PlayTune( pitch, length ) ? :')

the demo is ... wouahhh ...
Hi!

Thanks for the positive feedback! :D


As for the questions: No it doesn't use Mikmod. It renders/mixes into the windows wavebuffers directly. The soundengine supports external triggered playback of samples/synthetix sounds. these soudns can be controlled in regards to pitch/pan/volume etc etc.

Thus having an engine sound played through the background music which is pitch controlled by software is no problem.


We posted this demo to see if you guys would have any problems working with a music library like this instead of typical XM mod players. The mod players in our eyes lack the support of synthetic sounds, something which might tbe crucial to ensure that gamemusic is small and not huge.

The only drawback is of course the compatibility issue. Everyone in the world is usedto XMmods... this library is similar but does have a learning curve for the musician. Then again, the musician has much more flexibility to control his sounds.

last advantage: if something should be changed, we can change it since we have made it... in mikmod it is more difficult to change something since no one knows how it works and why it works ;^)

Any thoughts?

R
this library is similar but does have a learning curve for the musician


what do you mean ?

i think musicians ( i am ) generally use cubase, and then a multitrack recorder as samplitude and at final something like wavelab to mix down... we're very far from Mods :/

there are two sounds sources:

synths that are driven by a midi sequencer as cubase. that's usually used to build the structure of a song. Drums, basses, synth riffs can be composed this way.

Analogic sounds: guitars, voices ... or any that have to be recorded track by track on a multitrack recorder ( cubase or samplitude can do it but we prefer to use a hardware dedicated machine, generally direct to disc as Yamaha aw series for example - that's for a better dynamic ) and the synths sequencees are also recorded down here so we can use our compressors, effects ... that often leads to at least 24 audio tracks ...

ok that's for semi-pro or pro productions...

so what could be good for PPC coders/composers ? well you understand now that i don't talk about simili-techno Mods here)

Would it be possible to create a sound bank based on waves roughtly reproducing a standard General Midi bank ? and then build a midi player based on the sounds of that bank ? i already worked on midi files structures, they are not very hard to decode... (that would ensure a good compability with the stuff already done under any sequencer as cubase)

advantages: the sound bank could be common and optional (no bank = no music) and the midi files are very very small and they represent the standard

Lewil
Well,
I usually use Rebirth to compose loops, save them as wavs and then play them looped with mikmod together with other sound effects. The problem with this solution is that long songs mean big files. Plus Mikmod is very good but it lacks a fundamental for game programming which is real time rendered sound (my car engine noise).

Lewill's solution (midi + banks) is great since you can use a large number of editors, even though they can be very expensive. Actually the MOD success may be due also to the "freewareness" of good editors and playback libraries.

So the requirements for me are:
- Easy editing of songs
- Sound effects playback
- Real time synth sounds
- I wouldn't mind to migrate from Mikmod

Reinier, what format is played by your engine? And, are you planning to release it in the OL libs?
Hi!

I think we have to differentiate between music you would make with cubase, and music you would make for games. Why? Because in cubase you don't run out of resources so easily. You have a few synths (hardware or software) which play anything you compose upto 16 channels polyphonic with ease. So the way you make music is by just playing some notes on some MIDIchannel, and not worry about the number of AUDIOchannels acutally played and the processor resources it takes. And hey, if we run out of synths/processor power... we tape everything on a big tapedeck and continue to add new tracks.

On the PocketPC, resources are limited. With MIDI files you allmost have no control over the channel allocation of your sounds. Especailly with costly synth sounds you really want to be in control about how long a sound lasts, and on how many channels it is rendered.

What works good with trackers is that you really specifically code musicchannels instead of 'parts' which can be any number of channels. You really see what you are doing.


Then again if you really want MIDI it is possible to supply your own MIDI file decoder and toggle the sounds yourself. This sound renderer can play songs (from its own format) or you can play them through the API. So nothing stands in your way to make a soundbank and play the MIDI files with your own program! :D


So this kinda answers your question too Pib. The engine can play soundeffects or instruments or anything too while it is playing a song, or while it is not playing a song.


The editor for the music program is not the most userfriendly. If you are used to trackers you can probably get the hang of it. Although to create your own synthetic sounds maybe some fiddling around and experimenting is required. Of course a shitload of instruments will be suplied. :P


About this library being incoorporated in the overloaded libs: we are currently discussing it. This was part of the reason to release this techdemo. To see what you guys think of it.

Rhino
ok :) so can we have a look to the editor so we can try to make some piece of music ?

in fact, it's interesting to know that the restitution is good but it's also important to evaluate our own ability to compose for it, isn't it ?
The original editor is available for free for the PC at: http://www.klaar.com


A stripped down editor for the PocketPC exists also but I wouldn't recommend composing big tunes with it..it is mainly intended to doodle some music when you are on the road.


Note that with the big version a HTML document is supplied with a small explanation of how it all works! Of course tons of sounds and demosongs are supplied along with the program for you to fiddle around with.

Rhino
www.klaar.com? BROEHA!
I'm fascinated by this, especially not using purely samples for the instruments, I'm also interested in software synths.

I'm curious what algorithms you are using for the sounds? Is it like a square wave, triangle wave, saw-tooth, and then you shape the sound with filters like IIR filters and boost it? And reverb and echo and stuff?

Or it is layers of saw-tooth waves or something?
Do you do any FM synthesis?
What about the drums, are they samples or synthed?
Hi Britcode,

The synthesis is based on manipulating small waveforms (256 samples). These waveforms are negated or filtered or averaged or any number of simple algorithms. They can be combined using mxing or they can be used to oscilate a paramater of another effect. Also, any of these waveorms can be controlled to alter the pitch, volume or panning.

No mathematical proofs/models or stuff has been used to come up with thee algorithms. If it looked okay, it usually sounded okay too.

If you are still curious, download the desktop version and try the instrument editor and load some sounds/read the manual! :wink:

R
Conan · 05 Aug 2002, 16:51 UTC — how will this be licensed / available
Do you intend to restrict your sound system to Overloaded users only?

( I have not yet chosen a sound/music generation method and there are 3 others I have considered, mikmod. pocket-g's system or FMod )

I'm happy to pay for a sound library but only if the licensing is within my budget. FMod is $100 per single shareware title which is ok but in a few years I may not be what they consider shareware.
I think it could be available for everyone else too. I'm not sure about that yet. It might be that Overloaded wants an exclusive license for its developerbase. I'll throw it in the group.

anyhow, there still needs to be done some work on it for it to be perfect as an API. When do you need it?

Cheers,

R
Conan · 06 Aug 2002, 16:28 UTC — when do I need it
I'm not in a hurry re sound/music. I'm just finishing lining up an artist to do my meshes & begin coding proper in September so it will be quite a few months before I get serious on sound.

What I decided to do was convert my game Space Treker to C++ using PocketFrog into which I have merged the 3D from PocketGL as a learning exercise before my next title which is in the design stage.

I don't want to change sound systems between games so it's important that I settle on one with some longevity
hi,

I'll post a followup later on the progress of the soundsystem and what its actual use is going to be.

R

p.s. just checked your game and it looks really impressive! :)
Conan · 07 Aug 2002, 09:13 UTC — Sound System
Many thanks, my guess is that the sound system will be for Overloaded only but I will wait & see. I am trying FMod out at the moment

( re: Space Treker it was written in 1999 in PocketC so I was fighting performance issues all the way & it was coded/compiled on an HP360lx so it's one of very few games which were developed on the road, train actually.)
Of topic: Conan, what does 'Treker' mean? To be honest I thought it was a typo. :)
I'd presumed it was a deliberate misspelling of "trekker":

http://www.dictionary.com/search?q=trekker
Hm, so I was not entirely stupid. Not in this area, I mean. ;)
Conan · 07 Aug 2002, 14:00 UTC — What's in a name
Space Treker has it's genesis in some very old 'Star Trek' games into which I added a little bit of the flavour of 'Elite'. I wanted to incorporate the 'Trek' word into the title & ended up with Treker. Once published I started getting these spelling related e-mails telling me it should be Trekker but I don't care:)

An eventual aim of mine is to do a proper Star Trek title but I need some credentials before I contact Paramount so I will wait several years to see if I can make some good games. Being an old style programmer it's taken me ages to get up to speed
SiERRA · 20 Aug 2002, 17:46 UTC — Sound engine demo
Rhino123 wrote:
Overloaded Music Player Tech Demo

download link:
http://overloaded.pocketmatrix.com/Overloaded%20Music%20Player.exe


It looks pretty impresive! =) I will be a big addon with plenty of features to use for musicians ... neway, will be XM support in final version? I already did the music for the game in XM and i don't want to make it again with another "extrange" editing tool ...


Cheers,
SiERRA

pd: Is there a W32 Version of the tech demo? =)
i missed mimidi
may be u did too => somewhere here (the hom url is unreadable for me but download is ok and software is in english, low cpu needs, works rather well !)
http://ppcf.mklabs.com/index.php?sortby=rating&cat=10
bir · 26 Mar 2003, 16:23 UTC — Update?
Any kind of word on the status of this system? Any decisions made on its future?
Just had a quick look at Syntrax editor. Good concept and has some good potential, but alas for someone who services multiple clients with music this system is too slow to compose on.

Usually it will take me about 3-6 hours to write 2-3 minute XM track for a game (complex). Due to syntrax being a mouse driven editor it would take too long to get anything decent created to make it worth while. I do like the use of a pattern sequencer per part. This is great OO use in music (some re-usability). I think SID Tracker did something like this on the C64.

I found that when you make timing mistakes in Syntrax you have to basically re-write the pattern from then on everything (including all the FX and volume, Slides). Doesn't help you can't hear the background playing while playing a pattern to hear if your notes are in the correct slots.

Perhaps if there was and editor for Windows which could import midi, or more like a tracker interface instead of the tedious mouse driven editor, it would be more viable option for composing game sound tracks.