tag:blogger.com,1999:blog-17487316.post115969411929451412..comments2024-01-13T09:14:12.131+00:00Comments on The life of a Games Programmer: XeO3: Sounds....V2Mikehttp://www.blogger.com/profile/15958965170878448339noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-17487316.post-1159739913797686862006-10-01T21:58:00.000+00:002006-10-01T21:58:00.000+00:00Yes - surprisingly!! My ADSR values are all 0-7, b...Yes - surprisingly!! My ADSR values are all 0-7, but I have an indirect volume table that lets me scale them down to what volume I want, and the resulting value (depending on volume) is pretty course. <BR/><BR/>But if I didn't use ADSR at all, you really DO notice... which is odd. Still, it might be because it is quiet and so you wouldn't notice anyway - which is the idea.<BR/><BR/>also...0-7 makes for a nice POW2 table, and only needs a few shifts, but 8 is *9 - yuck :)Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-1159732950032244332006-10-01T20:02:00.000+00:002006-10-01T20:02:00.000+00:00Yes, I remember that... when you listened to a SID...Yes, I remember that... when you listened to a SID tune and after that loaded a badly converted SID2TED freq tune and still had high volume. Ouch :)<BR/><BR/>Yeah, that's definitely something to be improved on a new SIDcard. When I experimented with "true stereo" I used an external amp and put the TED on the left channel and the SID on the right channel and used the balance control to make them sound equally loud. But not everybody has an amp nearby and usually you don't want FX from one side and music from the other side :)<BR/><BR/>Using "8" makes only sense if ADSR envelopes require it. <BR/>So with 0-2 only, can you still notice something like ADSR?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17487316.post-1159728945610243842006-10-01T18:55:00.000+00:002006-10-01T18:55:00.000+00:00I didn't think there was any noticable increase in...I didn't think there was any noticable increase in volume at 8, but your quite right there is. I could easily extend it to use 8, but to be honest, on the real machine you have tobring TED sound volume down a lot! The result being Im only really using 0-2 at the most! SID on the Plus/4 (Solder's one) is very quiet, so there no real worry about having more volume on the TED side. (YAPE on the other had could do with a little boost).Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-1159726905458266512006-10-01T18:21:00.000+00:002006-10-01T18:21:00.000+00:00I see... the example to illustrate the routine hel...I see... the example to illustrate the routine helped. I wasn't exactly sure before. So whichever channel's ADSR has the highest value (at that moment), that one is used to set the volume.<BR/><BR/>So what about "8"? I don't see why you shouldn't use it :) I know that some docs say volume register is 3 bits only but that's not true.<BR/><BR/>Anyway, I'm curious to hear those FX then. And yes, to use what sounds good is the best approach :) Plus, using TED shouldn't take away too many cycles.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17487316.post-1159724578333236962006-10-01T17:42:00.000+00:002006-10-01T17:42:00.000+00:00I don't really pay attentions to any hardward thin...I don't really pay attentions to any hardward thing, I just go with what sounds good. As I said each has an ADSR wave with a range of 0 to 7. When they play the values might be 1,2,3,4,5,6,7 and the other one might be 7,6,5,4,3,2,1.<BR/><BR/>The result would be these values put into the volume register...<BR/><BR/>7,6,5,4,5,6,7<BR/><BR/>Nothing more complex than that. however since the samples are "small" you don't really notice that its not right... you can sometimes tell its not "quite" right, but its hardly ever out and out wrong. This means its fine for spot effects - and much better than only one channel.Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-1159720632166571552006-10-01T16:37:00.000+00:002006-10-01T16:37:00.000+00:00I'd like to see/hear that routine. I played around...I'd like to see/hear that routine. I played around with something similar a long time ago, though, not for FX but for music, when I was trying to create two indepent envelopes.<BR/><BR/>My first approach was to allow envelope values 00-04 for each voice and simply add them. But the result was not really satisfying. Mainly because 00-04 puts strong limitations on the envelopes.<BR/>Then I used values 00-05 or even 00-06 and a "conversion table". Strictly technical not correct put sounded better.<BR/><BR/>Have you kept in mind TED's behaviour? I didn't and I never got around to code something that maybe takes care of that.<BR/>Even if the volume is supposed to be set for both channels together, the output get's noticeably louder when two voices play (at a different frequency). This effect is also used in the 4bit/5bit wave converters and several digi playback routines which are not using "volume only" only.<BR/><BR/>Maybe we should discuss this in the forum. It's an interesting topic and sound/music programming on the plus/4 has never been talked about much.<BR/><BR/>Cheers,<BR/>ChickenAnonymousnoreply@blogger.com