nesdev.com
http://forums.nesdev.com/

Need help with adding feature to famitone
http://forums.nesdev.com/viewtopic.php?f=6&t=14839
Page 1 of 1

Author:  dougeff [ Sat Sep 17, 2016 6:47 am ]
Post subject:  Need help with adding feature to famitone

I am trying to add more famitracker effects to famitone. But I'm stuck at stage 1 of my plan...changing the source code of 'text2data' so that it....
-doesn't exit on seeing an unsupported effect (simple enough)
-marks the notes in the output with something where the unsupported effect is, preferably the actual effect name (which I can then replace later with a tag to watch out for...lets say $FF), or an actual $FF inserted

I stared at the source code for 2 hours, and tried a few things, but wasn't successful.

I think this prints the data to the file (line 1989)...
size+=output_dump_byte_array(tptn.data,tptn.length,test);

where tptn is a copy of packedPatterns.data (1966)...
memcmp(tptn.data,packedPatterns[i].data,tptn.length))

which had data from song_original...or song_split?, which is a struct with a large array at the end, where the data is loaded...in the parse_song() function

specifically in the switch case at 1262...
switch(nsrc->effect)//supported effects
case 'B':
case 'D':
etc.
default: (this is for unsupported effects)

But I can't figure out what to insert here to mark the data at this point.

And, mark it with anything, really. Any ideas?

Author:  dougeff [ Sat Sep 17, 2016 4:00 pm ]
Post subject:  Re: Need help with adding feature to famitone

Never mind. I'm going to try a different approach.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/