Portamento Help?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Portamento Help?
by on (#26392)
I'm having the damnedest time figuring out how to get portamento to work the way I want. Basically, I just want to have a melody line whose notes slide into one another. I know it's possible, because I've heard it (in such cases as Protoman's whistle from Mega Man III) on the real thing. I've played around with the 1xx, 2xx and 3xx effects, but it's not clear how exactly I'm supposed to use them, and what the xx is supposed to be to get the effect I want.

Thanks!

by on (#26407)
The following applies to NT2, MOD, and XM.

On the first row, you start a note:
Code:
G-3 01 ---

On the next row, you write the note to slide to. The digits in 3xx determine how fast, in NES period units per tick, the slide goes:
Code:
G#3 -- 301

Keep adding rows of 300 to finish the slide:
Code:
--- -- 300
--- -- 300
--- -- 300


S3M and IT work the same way, but you use the Gxx and G00 instead of 3xx and 300.)

The slide will start on the first row with a 3xx effect; this cannot be the row where the note starts. To start the slide on the first row, place a 1xx (up) or 2xx (down) effect on the first row, and then follow it with the normal chain of 3xx rows. (In S3M or IT, use Fxx for up or Exx for down.)

by on (#26410)
Thanks! I've got it now.