| |
No-XS
Registered: Mar 2002 Posts: 79 |
Detect instrument being played (goattracker)
I have a goattracker sidtune and for a demoscreen I want some visual to happen when a snaresound is being played.
Because I'm not the best coder there is, I cannot find any way to do this or find a tutorial or reference to it. From years ago I remember doing it for other sids from another editor.
Is there an easy way to detect a certain instrument, say on channel1 ? |
|
| |
Jammer
Registered: Nov 2002 Posts: 1335 |
One way is just to monitor player area and dump it to screen memory. Take a look, which areas are changing, calculate which place it is et voila ;) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
what i would do.... look at the player source and locate a suitable variable. tnat gives you an idea in what area of the binary it will be located. then hack up a small program that plays the tune and copies the first few pages of the player (where the variables are located) to screen. stare at the screen and locate the exact position of the byte that changes to whatever value when the instrument is played. (i think there are even tools for this, "music watcher" or something, dont recall) |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
It's Rythm V1.2
this tool helps in finding the byte in memory. serves me since mid 90's for this purpose.
you just look for the color changes on screen as the music plays basically, then you can pick some favourite spots, and monitor them.
shows you both address and value. |
| |
No-XS
Registered: Mar 2002 Posts: 79 |
Cool! Thanks! |
| |
TheRyk
Registered: Mar 2009 Posts: 2244 |
I could not find the tool I originally wanted to recommend you (?OUT OF MEMORY), but while searching I discovered this one:
SidInspector
Looks pretty much like what yer looking for. |
| |
daison
Registered: May 2005 Posts: 90 |
We tried both It's Rhythm and SidInspector.
It's Rhythm really worked out well for us.
Despite some bugs (may crash when moving the cursor around) it's pretty insightful what is happening wear exactly.
SidInspector seemed to have issues with sids above $2000? Apart from that it's a somewhat less userfriendly in every way. But tnx anyway. It was fun playing around with these tools!
The result:
Outline 2015 Invitation |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
glad its ryth worked out. was totally stable for me always, probably this player interferes with some zp var they both use. |
| |
Domspitze
Registered: Oct 2013 Posts: 2 |
Sorry for this stupid question. But how can I use another sid in sidinspector? |
| |
TheRyk
Registered: Mar 2009 Posts: 2244 |
It only works with SIDs located at $1000.
Summary sez:
"load another standard SID to $1000 and restart SidInspector with SYS 2064 ($0810)"
http://csdb.dk/release/?id=112199&show=summary#summary
so after loading and RUNning SidInspector, soft-reset, then make sure your tune is at $1000 (without .SID header of course) and then either load it in direct mode or in monitor. |
| |
Klegg
Registered: Feb 2006 Posts: 16 |
You could also use timing marks in Goattracker. From the manual:
"Command DXY: Set mastervolume to Y, if X is $0. If X is not $0, value XY copied to the timing mark location, which is playeraddress+$3F." |
... 2 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |