skywaffle Posted July 31, 2020 Share Posted July 31, 2020 (edited) Hello, I was just wondering if anyone might have a solution to a problem that I am trying to figure out involving dynamic ECS compatibility. I wanted to have where if ECS was detected, full 3 channel music could play through ECS instead of the base PSG, leaving the remaining channels free for sound effects. Otherwise, the other method that came to mind would be to push sound effects to channels 5+? This sounded easy until I realized that variables can't be tied to the first argument in the sound statement. I was hoping for something cleaner than if/then statements that play separate sound commands for non-ECS or ECS. Thanks, Matthew Edited July 31, 2020 by skywaffle Quote Link to comment Share on other sites More sharing options...
intvnut Posted July 31, 2020 Share Posted July 31, 2020 I suppose an ON GOTO or ON GOSUB might be easier to read than IF THEN ELSE in some cases. Probably also marginally cheaper if done right. Quote Link to comment Share on other sites More sharing options...
skywaffle Posted July 31, 2020 Author Share Posted July 31, 2020 Would there be any way to use poke to do sound that would allow for more easily switching channels? I ran into a similar issue when trying to read controller inputs for controller 1 or 2 using a variable without having to use separate cont1 and cont2 commands, but found that I could replicate those with peek. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted August 1, 2020 Share Posted August 1, 2020 Yes, you can POKE $01F0 to $01FF for standard sound, and POKE $00F0 to $00FF for extended sound. Caveat! You should divide to bytes your frequency values. Forgot where is the list of addresses of sound registers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.