Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > goattracker
2010-08-17 05:18
jimbob
Account closed

Registered: Aug 2010
Posts: 10
goattracker

Hi there - just a quick question about goattracker - I've made a SID track which I'm using for some game music on the C64 - I'd like to be able to synchronise some title screen events with which pattern is playing in the playlist. Is there a memory location I can get the current position in the play sequence or pattern number from?

Cheers for any advice you can give.
2010-08-17 10:54
Hein

Registered: Apr 2004
Posts: 933
From the readme file:

Quote:
5.1 Playroutine options

STORE AUTHOR-INFO - Writes the "AUTHOR" string from songname editor to the
location range (startaddress+$20 - startaddress+$3F). Also enables timing mark
support. A timing mark is a mastervolume command (DXY) with parameter $10-$FF.
This parameter will be copied into startaddress+$3F when the command is
encountered in playback.
2010-08-17 11:37
Conrad

Registered: Nov 2006
Posts: 833
You'll have to analyse the buffered memory which is stored after the music routine code. The actual address may be different though due to GT's compiler optimising the player to what is required for your music to play right. e.g. if you've not used any vibrato effects, the compiler will cancel out the vibrato code at final compilation, affecting the start address of buffered memory. Usually, if located at $1000, the buffered memory is stored between $1300-$1500.

Also bear in mind that buffered memory for each voice is aligned by 7 bytes. For example...

$1400 Voice 1 - Track index position
$1401 Voice 1 - Pattern LO address
$1402 Voice 1 - Pattern HI address
$1403 Voice 1 - Transpose value
$1404 Voice 1 - Repeat value
$1405 Voice 1 - Current Note value
$1406 Voice 1 - Current Instrument value

$1407 Voice 2 - Track index position
$1408 Voice 2 - Pattern LO address
$1409 Voice 2 - Pattern HI address
$140a Voice 2 - Transpose value
$140b Voice 2 - Repeat value
$140c Voice 2 - Current Note value
$140d Voice 2 - Current Instrument value

$140e Voice 3 - Track index position
$140f Voice 3 - Pattern LO address
$1410 Voice 3 - Pattern HI address
$1411 Voice 3 - Transpose value
$1412 Voice 3 - Repeat value
$1413 Voice 3 - Current Note value
$1414 Voice 3 - Current Instrument value
...
This isn't GT's actual buffer format, but you get the idea.

There is definitely a track index position for each voice, but I can't tell where exactly it'll be stored on your tune, you'll have to check it yourself.
2010-08-17 11:42
chatGPZ

Registered: Dec 2001
Posts: 11111
in the old days, i used to simply write part of the workram of the music routine to screen, and then pick random variables which change "the right way". shouldnt be too hard =)
2010-08-17 16:32
AüMTRöN

Registered: Sep 2003
Posts: 42
What Hein said.
2010-08-17 19:45
jimbob
Account closed

Registered: Aug 2010
Posts: 10
Brilliant thanks guys - I totally missed that in the docs but looks like timer-mark will do exactly what I need! Cheers :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Guests online: 132
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.048 sec.