Acorn Arcade forums: Programming: Putting sound files on CD
|
Putting sound files on CD |
|
gareth3 (22:03 27/5/2003) tribbles (08:52 28/5/2003) Phlamethrower (09:55 28/5/2003) gareth3 (20:38 28/5/2003) tribbles (08:30 29/5/2003) Phlamethrower (10:54 29/5/2003) tribbles (14:00 29/5/2003) eddyosaysyo2 (16:11 9/10/2004)
|
|
gareth |
Message #86280, posted by gareth3 at 22:03, 27/5/2003 |
AA refugee
Posts: 5
|
Hi out there, I noticed that there's a discussion about converting MPEG to Replay, while this question isn't related to these formats, I was just wondering if anyone knew of a way to put files in Sound Tracker, Tracker or Digital Symphony format on to CD. |
|
[ Log in to reply ] |
|
Jason Tribbeck |
Message #86281, posted by tribbles at 08:52, 28/5/2003, in reply to message #86280 |
Captain Helix
Posts: 929
|
I was just wondering if anyone knew of a way to put files in Sound Tracker, Tracker or Digital Symphony format on to CD. In theory you could capture the sound buffer as the tracker tune was playing, recording it as a WAV-type file. In practice, unless there's a utility to do this (anyone want to offer one?), it would be easier just to record it. Oh, and don't forget that tracker tunes can repeat, whereas CD tunes generally don't. |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #86282, posted by Phlamethrower at 09:55, 28/5/2003, in reply to message #86281 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
In theory you could capture the sound buffer as the tracker tune was playing, recording it as a WAV-type file. There is a program to do this, but I can't remember what it's called |
|
[ Log in to reply ] |
|
gareth |
Message #86283, posted by gareth3 at 20:38, 28/5/2003, in reply to message #86282 |
AA refugee
Posts: 5
|
Thanks for the advice Jason! I assume that you know when I'm talking about the Tracker format that I mean the converted Amiga music format. I don't know much about how music CDs work, but I thought I could extract the samples from the Tracker or Sound Tracker (QTM) file, convert them to Wav format and then burn them to CD. This would be okay if the samples didn't have to repeat to be used in a music track, but they do. Interesting what you said about the sound buffer, how do I access that? I've never programmed sound before. |
|
[ Log in to reply ] |
|
Jason Tribbeck |
Message #86284, posted by tribbles at 08:30, 29/5/2003, in reply to message #86283 |
Captain Helix
Posts: 929
|
Thanks for the advice Jason! That's alright! I assume that you know when I'm talking about the Tracker format that I mean the converted Amiga music format. Considering I co-wrote Desktop Tracker, have written other tracker-like players and I compose my own music, I have a pretty good idea as to what's going on. I don't know much about how music CDs work, but I thought I could extract the samples from the Tracker or Sound Tracker (QTM) file, convert them to Wav format and then burn them to CD. These are two different music schemes. Tracker tunes are very similar to MIDI - they basically tell the computer what note to play, and what effects to put on the notes. Unlike MIDI, however, each instrument is sampled so you don't get differences between instrument sets. CD music is like a tape recording of the sound, with all the instruments mixed. This would be okay if the samples didn't have to repeat to be used in a music track, but they do. This would only work if you wanted to hear the individual notes at a fixed frequency - as a rough guide as to what happens, *SetType a Tracker tune as something like Data, or Tracker Sample, and load it into !SoundCon, or !Sonor (which is available on my web site) and play it. You may have to try different formats (mu-law, 8-bit signed, 8-bit unsigned are the more common ones). There'll be a lot of crap at the start which is the tune (hopefully it won't blow up any HiFi speakers you may have plugged in), but you'll see what happens.
Interesting what you said about the sound buffer, how do I access that? I've never programmed sound before. For 8-bit sound system machines, the sound system is documented in PRM4. This can be used on a 16-bit machine, but the tracker player may not use the 8-bit emulation layer. However, the process is the same. Basically you claim the sound buffer handler, but pass on all the calls to the sound buffer to the original one (which you will be passed). Once the buffer is filled, control returns back to you and you can replicate the data to somewhere in memory (or even change the entry pointers to your memory block which would save lots of CPU). For an 8-bit system, you'd need to remix the samples to 16-bit before you can create your WAV file. Oh, and you'd also have to resample it - the 8-bit sound system is 20.833KHz by default, whereas CDs are 44.1KHz. For the 16-bit sound system, you'd have to read the current rate - it's normally a multiple of 44.1KHz (or rather a division of), so resampling it is a simple matter of interpolation. |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #86285, posted by Phlamethrower at 10:54, 29/5/2003, in reply to message #86284 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
For an 8-bit system, you'd need to remix the samples to 16-bit before you can create your WAV file.Oh, and you'd also have to resample it - the 8-bit sound system is 20.833KHz by default, whereas CDs are 44.1KHz. For the 16-bit sound system, you'd have to read the current rate - it's normally a multiple of 44.1KHz (or rather a division of), so resampling it is a simple matter of interpolation. Wouldn't the CD burning software allow for the resampling itself? |
|
[ Log in to reply ] |
|
Jason Tribbeck |
Message #86286, posted by tribbles at 14:00, 29/5/2003, in reply to message #86285 |
Captain Helix
Posts: 929
|
Wouldn't the CD burning software allow for the resampling itself? I don't know about RISC OS software, and I'd only trust 'doze software to do it if it asked if I wanted to resample (or there was an option box for automatic resampling). |
|
[ Log in to reply ] |
|
Eddy Willson |
Message #86287, posted by eddyosaysyo2 at 16:11, 9/10/2004, in reply to message #86286 |
AA refugee
Posts: 186
|
Theres a simple soloution to everyone ou there with a PC, or without for that matter. just copy the tracker files onto a DOS 1.44MB (or whatever) formatted disc, copy them onto PC, Change the file extension to '.mod' and they should play using winamp, you cna then use the built in plugin to convert these to '.wav' format and burn. If changing the file extention doesnt work, you could try changing it to '.xm', '.s3m', '.it' or '.xsm' and if none of the above methods work, or if you dont have a PC, email the files(s) to me at eddy@drownedinsound.com and i'll convert them for you eddyosaysyo2 |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Putting sound files on CD |