Jump to content
IGNORED

Having trouble with C distortion poly reset


Recommended Posts

OK, so I decided to try an experiment:  16-bit C distortion using mod 5 frequencies.  These will either produce a 33% duty cycle wave, or silence.  The 16-bit notes are playing on first two channels, with first channel silent, second one playing Distortion C @1.79 mhz clocked from first.

 

I tried a poly reset code (RESETPOLY routine in the .s file) to reset the polycounter before each note play, but I think it's not working, as the bass notes will still occasionally drop out.  Any ideas how I can improve the code to get a solid note each time?

 

 

pacland-homeward2.asm pacland-homeward2.s pacland-homeward2.xex

  • Like 1
Link to comment
Share on other sites

Is your delay sufficient when doing the SKCTL = 00 then 03 ?   And when setting that low AUDF value, the delay should be considered to start at that point shouldn't it ?

 

And how are you getting the desired/stable type C notes - are you doing the trick to ensure the cycle alignment is right or doing the Pokey Init each time ?

 

Can't say I've really played with this stuff much at all and not for some time either.

  • Like 1
Link to comment
Share on other sites

My idea was to be able to select three tones at will in 16-bit C distortion. 

 

Using standard 8-bit, there are three tones available in mod 3.  Using channel 3 gets you the 20% duty cycle every time.  But in 16-bit mode, you only get 2nd or 4th channels.  So my idea was mod 3's to get the 01100 and 01011 patterns, and mod 5 to get the 010 pattern which is fairly close in timbre to 01000.  If I can get this to be reliable every time, the rest should fall into place.

Edited by Synthpopalooza
  • Like 1
Link to comment
Share on other sites

So I made a few changes.  It's 95% there, but a couple of notes still get dropped.

 

I added in a couple of calls to the poly reset routine RESETTIMER, and played with the frequency settings in the routine.

 

RESETTIMER

	lda #0
    sta SKCTL
    lda #5  
    sta AUDF0 
    nop
	nop
    sta STIMER
    lda #3
    sta SKCTL
	rts

Changing the AUDF0 value seems to shift which sections have dropouts.  Anybody have any other ideas on this?

pacland-homeward2.asm pacland-homeward2.s pacland-homeward2.xex

  • Like 3
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...