Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > Direct Delta Counter setting in MML? Owner: com63 New post
Page 1 of 1 Sort:  
Direct Delta Counter setting in MML? Posted: 2012-02-13 07:54  (Last Edited: 2012-02-13 07:56) Reply | Quote
com63

Avatar

Member for: 4288 days
Location: North Van, BC, Canada.
Status: Offline

#30320
Sorry if this is off topic, but I don't know where else to post this and I know a lot of you use MML/PPMCK.

Well, I'm trying to cover a song in MML/PPMCK, but I need to directly set the delta counter value, but I can't find any documentation on doing so without playing a DPCM sample. (The only place I can set the delta counter value is in the DPCM instrument definitions.)

Also, I can't find any MML/PPMCK command/method similar to the Yxx command in FT.

_______________________
Everything moves real slow when it's 40 below.
Posted: 2012-02-13 09:03  (Last Edited: 2012-02-13 09:06) Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4982 days
Location: Canada
Status: Offline

#30322
Two ways:

a) @DPCM<#> = {<path>, <pitch>, 0, 0, <counter>}
b) E y$4011,<value>

EDIT: that's the equivalent of Zxx (delta counter), not Yxx. Yxx is DMC sample offset, not delta counter. There is a ppMCK equivalent using y<a>,<b>, but I don't know it.

Posted: 2012-02-13 11:19  (Last Edited: 2012-02-13 11:29) Reply | Quote
com63

Avatar

Member for: 4288 days
Location: North Van, BC, Canada.
Status: Offline

#30323
[quote=jrlepage]Two ways:

a) @DPCM<#> = {<path>, <pitch>, 0, 0, <counter>}
b) E y$4011,<value>

EDIT: that's the equivalent of Zxx (delta counter), not Yxx. Yxx is DMC sample offset, not delta counter. There is a ppMCK equivalent using y<a>,<b>, but I don't know it.[/quote]

IK, just needed sample offset, too.

Thanks!

OK, so
E y$4011,$4f
would be the equivalent of
z4f

_______________________
Everything moves real slow when it's 40 below.
Posted: 2012-02-13 12:21  (Last Edited: 2012-02-13 12:22) Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4982 days
Location: Canada
Status: Offline

#30324
That would be correct.

As for sampl offset, I don't have a clue I'm afraid. I've invited ~J-@D!~ over to my place next Friday; if you don't have an answer by then, I'll ask him and get back to you on this.

Posted: 2012-02-14 02:49  (Last Edited: 2012-02-14 03:08) Reply | Quote
com63

Avatar

Member for: 4288 days
Location: North Van, BC, Canada.
Status: Offline

#30362
[quote=jrlepage]That would be correct.

As for sampl offset, I don't have a clue I'm afraid. I've invited ~J-@D!~ over to my place next Friday; if you don't have an answer by then, I'll ask him and get back to you on this.[/quote]

Okay, thanks.

I've been looking for data registers; this is all I could find:

$4010 il-- ffff IRQ enable, loop, frequency index
$4011 -ddd dddd DAC
$4012 aaaa aaaa sample address
$4013 llll llll sample length
$4015 ---d nt21 length ctr enable: DMC, noise, triangle, pulse 2, 1
$4017 fd-- ---- 5-frame cycle, disable frame interrupt


If there isn't any way, I guess I'll have to clip my samples and maybe make multiple samples for some songs. It's probably going to be harder to get the timing right, though. :/

_______________________
Everything moves real slow when it's 40 below.
Posted: 2012-02-16 18:24  (Last Edited: 2012-02-17 01:24) Reply | Quote
cak

Avatar

Member for: 4314 days
Location: oregon
Status: Offline

#30450
On a related note, has anyone successfully used "y" to eliminate pops during transition between frequencies $1f/$20 or other vibrato-prohibitive frequencies? As far as I can tell, the SM command is only good for smoothing out everything [i]else[/i].

I found [url=http://nesdev.parodius.com/bbs/viewtopic.php?t=231]this trick, but I don't know whether the y command is sufficient (or efficient) to implement it.

edit: [url=http://mmlshare.com/tracks/view/236]Got it working. :D

Page 1 of 1 Sort: