Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Facet ! (Registered 2018-08-14) You are not logged in 
CSDb User Forums


Forums > C64 Coding > Goattracker Making Channels Single Shot and detecting they have finished
2018-08-02 15:37
oziphantom

Registered: Oct 2014
Posts: 205
Goattracker Making Channels Single Shot and detecting they have finished

So basically I have a GoatTracker SID, and I need to be able to play Sound effects on the Channel I choose however the SFX system can't hack it.
To solve this I have it so I can now play any "channel" from and Song on any voice I want.

The hard part is making them stop ( without stopping something else that may be playing on another voice) and then detecting that they have reached the end.
If I can catch them at the end, then I can probably just make the voice play a "silent" "channel".

Anybody know how I can detect such a thing?
2018-08-02 15:59
Groepaz

Registered: Dec 2001
Posts: 8676
you could use the "sync" command(s) for this
2018-08-02 17:05
oziphantom

Registered: Oct 2014
Posts: 205
I can't find any reference to them in the readme.txt nor the built in help.
There is
Quote:
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.
which we already use however that seems to be per song not per channel. Is the sync documented anywhere?
2018-08-02 18:40
cadaver

Registered: Feb 2002
Posts: 1063
There is no per-channel sync command, just the timing mark. GT2 doesn't officially support what you're doing, so you just need to examine the song / pattern position variables in the playroutine. Or actually modify the player source to support what you're doing. With that you'll have to contend with the esoteric assembler format (from Exomizer)
2018-08-02 18:40
Groepaz

Registered: Dec 2001
Posts: 8676
thats the one i ment...

per channel - perhaps create an empty instrument and select that. then watch the current instrument in the players variable section, that should be per channel
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
Style/Chrome
Krill/Plush
The Human Co../Maste..
blendo75
mad
Bieno/Commodore Plus
Sokrates
Guests online: 81
Top Demos
1 Uncensored  (9.7)
2 Comaland 100%  (9.7)
3 Edge of Disgrace  (9.7)
4 Coma Light 13  (9.6)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 We Come in Peace  (9.6)
8 Lunatico  (9.6)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 FMX Music Demo  (9.6)
2 Party Horse  (9.6)
3 Daah, Those Acid Pil..  (9.5)
4 Pandemoniac Part 2 o..  (9.5)
5 Arok 20 Invitation  (9.5)
6 Treu Love [reu]  (9.5)
7 Merry Xmas 2017  (9.4)
8 Dawnfall V1.1  (9.4)
9 In Memoriam BHF  (9.4)
10 Dawnfall  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Horizon  (9.8)
3 The Mind Slayer  (9.8)
4 The Shadow  (9.7)
5 Stormbringer  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.073 sec.