Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user jobj ! (Registered 2024-12-25) 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: 954
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: 849
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: 11386
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: 44
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
grennouille
csabanw
Martin Piper
Smasher/F4CG
Sychamis
zscs
Freeze/Blazon
A3/AFL
Shake/Role
JEZ
theK/ATL
Exploding Fi../Techn..
CA$H/TRiAD
Guests online: 117
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 X-Mas Demo 2024  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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