Finding the track for a selection

Author
DuncanBrinsmead
Max Output Level: -90 dBFS
  • Total Posts : 2
  • Joined: 2004/06/12 19:55:15
  • Status: offline
2004/11/04 18:34:29 (permalink)

Finding the track for a selection

When stepping through the list of selected events, it is possible to find the track number of the selected event?

Duncan
#1

6 Replies Related Threads

    SergeD
    Max Output Level: -88 dBFS
    • Total Posts : 149
    • Joined: 2004/06/07 22:29:56
    • Status: offline
    RE: Finding the track for a selection 2004/11/10 17:38:46 (permalink)
    Duncan,

    you are lucky, I found this somewhere in the web. It's a feature not documented in the cakewalk documents.

    (pause "The Current Track Is Number :- " (+ (GetCurrentTrack) 1) )

    SergeD
    #2
    Andy H
    Max Output Level: -89 dBFS
    • Total Posts : 65
    • Joined: 2003/11/08 00:45:49
    • Location: Bolton, Lancashire, UK
    • Status: offline
    RE: Finding the track for a selection 2004/11/11 23:34:57 (permalink)
    Although (GetCurrentTrack) is a useful function (thanks Serge), it only get's the number of the currently selected track. I think Duncan's looking for a function which returns the track number for a selected event.
    < Message edited by Andy H -- 11/11/2004 11:43:31 PM >
    #3
    SergeD
    Max Output Level: -88 dBFS
    • Total Posts : 149
    • Joined: 2004/06/07 22:29:56
    • Status: offline
    RE: Finding the track for a selection 2004/11/12 12:32:04 (permalink)
    Hum, I see.

    I tried to find a way but Cal does not collaborate.

    SergeD
    #4
    gugliel
    Max Output Level: -82 dBFS
    • Total Posts : 449
    • Joined: 2004/08/09 16:30:07
    • Status: offline
    RE: Finding the track for a selection 2004/11/16 06:55:07 (permalink)
    Cal seems to work with the channel number , Event.Chan . So I have resorted to setting channel numbers in a meaningful way when using many tracks. Then, one can modify events on a channel basis in cal.

    www.soundclick.com/guglielmo
    #5
    DuncanBrinsmead
    Max Output Level: -90 dBFS
    • Total Posts : 2
    • Joined: 2004/06/12 19:55:15
    • Status: offline
    RE: Finding the track for a selection 2004/11/16 19:17:23 (permalink)
    Thanks for the help, fellows.
    I think I will be able to use "GetCurrentTrack".
    I'm not sure about using the channel number.. this would mean I would need to make all my events in the channel of the same number as the track, which seems a bit awkward. I try to keep everything in the first channel, although I admit to being somewhat confused as to how to take advantage of channels( currently they are more nuisance for me than anything else ).

    I tried to work around the problem by creating a panel with buttons that launch my track editing function on a particular track( so I don't need to enter it ). The panel button has a cal script that includes a variables file, sets the variables, then includes the main file (One of the variables is track number).

    If I could get the track for the event, however, that would be best.

    I've noticed people bemoaning not having arrays in CAL. Has anyone tried using a designated temporary scratch track for this purpose? One could store any number of events in different channels of a scratch track. These events could stand for real events, or could simply be abstract array data.

    Duncan
    #6
    gugliel
    Max Output Level: -82 dBFS
    • Total Posts : 449
    • Joined: 2004/08/09 16:30:07
    • Status: offline
    RE: Finding the track for a selection 2004/11/18 08:43:08 (permalink)
    Interesting idea, Duncan ... I'll keep thinking about that. For my recent project, which is to create instrument-specific, key-specific, and time-specific pitch adjustments, I simply used a crude programming style where everything is put into the code in big nested if's. Works fine, as long as no critics every look at the programming style.

    www.soundclick.com/guglielmo
    #7
    Jump to:
    © 2024 APG vNext Commercial Version 5.1