RE: Sound Chip
David Brant wrote: I've been looking at the Coupe Technical Manual and noticed that the Sound chip ports are write only. So how did the demos show the sound volumes? Because the demo is writing the volumes out in the first place. Geoff __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Sound Chip
Hello, I've been looking at the Coupe Technical Manual and noticed that the Sound chip ports are write only. So how did the demos show the sound volumes? Yes, the SAA1099 is write only. To get fancy volume bars and frequency bars etc in demos, you just keep a note of the values that you OUT in your music routines to the soundchip's volume and frequency registers. I'm not sure if the compiled e-tracker player stores the values for you to check later (I have a vague recollection it does, but I may well be wrong!), or if you have to modify the player to store the values yourself. It's not something i've had to do. Comet problem... Not a problem I've seen before... Colin = Quazar : Hardware, Software, Spares and Repairs for the Sam Coupe 1995-2007 - Celebrating 12 Years of developing for the Sam Coupe Website: http://www.samcoupe.com/
Re: Sound Chip
On Wed, May 09, 2007 at 12:40:42PM +0100, Colin Piggot wrote: To get fancy volume bars and frequency bars etc in demos, you just keep a note of the values that you OUT in your music routines to the soundchip's volume and frequency registers. I'm not sure if the compiled e-tracker player stores the values for you to check later (I have a vague recollection it does, but I may well be wrong!), It does, and so does the ProTracker2 compiler. HTH, Andrew -- --- Andrew Collier http://www.intensity.org.uk/ --- -- r2+ T4* cSEL dMS hEn/CBBL A4 S+*++ C$++L/mP W- a-- Vh+seT+ (Cantab) 1.1.4
Re: Sound Chip
- Original Message - From: Andrew Collier [EMAIL PROTECTED] To: sam-users@nvg.ntnu.no Sent: Wednesday, May 09, 2007 12:42 PM Subject: Re: Sound Chip On Wed, May 09, 2007 at 12:40:42PM +0100, Colin Piggot wrote: To get fancy volume bars and frequency bars etc in demos, you just keep a note of the values that you OUT in your music routines to the soundchip's volume and frequency registers. I'm not sure if the compiled e-tracker player stores the values for you to check later (I have a vague recollection it does, but I may well be wrong!), It does, and so does the ProTracker2 compiler. HTH, Andrew -- --- Andrew Collier http://www.intensity.org.uk/ --- -- r2+ T4* cSEL dMS hEn/CBBL A4 S+*++ C$++L/mP W- a-- Vh+seT+ (Cantab) 1.1.4 Thanks for the sensible answers. So I just have to find them then. I thought that may be the case.
Re: Sound Chip
Just done some digging about with the e-tracker player. For a tune compiled at 32768 (which is where i've always compiled a tune for so it can go at the start of any page), after each call to 32774, the SAA1099's register data for the soundchip can be found at address 33747 onwards. What the player does is process all the registers, stores them at those addresses and then OUTs it all at the end and returns. So you can then read the values from 32747 to 32752 for example, and use each nibble to get the left and right volumes of channels 0 to 5. Colin = Quazar : Hardware, Software, Spares and Repairs for the Sam Coupe 1995-2007 - Celebrating 12 Years of developing for the Sam Coupe Website: http://www.samcoupe.com/
Re: Sound Chip
- Original Message - From: Colin Piggot [EMAIL PROTECTED] To: sam-users@nvg.ntnu.no Sent: Wednesday, May 09, 2007 4:25 PM Subject: Re: Sound Chip Just done some digging about with the e-tracker player. For a tune compiled at 32768 (which is where i've always compiled a tune for so it can go at the start of any page), after each call to 32774, the SAA1099's register data for the soundchip can be found at address 33747 onwards. What the player does is process all the registers, stores them at those addresses and then OUTs it all at the end and returns. So you can then read the values from 32747 to 32752 for example, and use each nibble to get the left and right volumes of channels 0 to 5. Colin = Quazar : Hardware, Software, Spares and Repairs for the Sam Coupe 1995-2007 - Celebrating 12 Years of developing for the Sam Coupe Website: http://www.samcoupe.com/ Guess what I had a look too. At least I got the same answer. Well the first one anyway (33747)
Re: Sound Chip
From: David Brant [EMAIL PROTECTED] if you type: snip Comet will NOT come up with an error Like Andrew said Comet is a two pass assembler During 1st pass no errors are generated. Any undefined symbols on pass two will cause a error. Using undefined symbols in ORGs or in EQUs will cause unexpected results. Best practice is to make sure labels are defined before used in these directives. I don't see this as a bug.But less fool proof ;-) Great to see a new assembler comming any details ? Something I always wanted to do in Comet is to binary sort the labels Because most of the time is taken by searching for labels. Edwin
Re: Sound Chip
It was just interesting that it did not trap the error. - Original Message - From: Edwin Blink [EMAIL PROTECTED] To: sam-users@nvg.ntnu.no Sent: Wednesday, May 09, 2007 7:31 PM Subject: Re: Sound Chip From: David Brant [EMAIL PROTECTED] if you type: snip Comet will NOT come up with an error Like Andrew said Comet is a two pass assembler During 1st pass no errors are generated. Any undefined symbols on pass two will cause a error. Using undefined symbols in ORGs or in EQUs will cause unexpected results. Best practice is to make sure labels are defined before used in these directives. I don't see this as a bug.But less fool proof ;-) Great to see a new assembler comming any details ? Something I always wanted to do in Comet is to binary sort the labels Because most of the time is taken by searching for labels. Edwin Its going to be a Windows cross assembler with an extra window showing the labels so you can just click on the label to get to that part of the source. I do want to convert it to java so more people can use it. I may convert it to the coupe if lots of people want it.