How to Edit Poly Aftertouch?

Author
Resort Records
Max Output Level: -86 dBFS
  • Total Posts : 234
  • Joined: 2003/12/22 02:07:16
  • Location: Incline Village, NV
  • Status: offline
2016/05/17 01:57:17 (permalink)

How to Edit Poly Aftertouch?

Hi all,
 
I'm trying to figure out how to best edit MIDI poly AT data in Sonar.  It appears we can edit it in the Event List but not in the Piano Roll, so it's sufficient in a pinch but, clearly, it's not ideal:
 

 
So, what are our options?  I've scoured the docs and forums and found nothing.  I figure there must be some CAL scripts or other workarounds - maybe a script that separates poly AT onto note-specific CCs for temporary graphical editing in the Piano Roll and then another one to put 'em back?  I looked at the default CAL scripts but didn't see anything obvious.
 
Any assistance is greatly appreciated.

David Delbridge
Resort Records Inc
#1

6 Replies Related Threads

    promidi
    Max Output Level: -66 dBFS
    • Total Posts : 1220
    • Joined: 2014/11/21 18:46:39
    • Location: South Australia
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/17 02:33:12 (permalink)
    I feel your pain as I have a MIDI card that responds to key aftertouch events (SW1000XG).  The event viewer is really the only way to edit poly aftertouch events. 

    I really wish Cakewalk would change this to add key aftertouch events editing in the PRV.  I notice the channel aftertouch events greys out the area to the right of the dropdown when selecting "Type".  This area could contain the note you which to edit key aftertouch events.
     
    I have written a Cal script that converts channel aftertouch events to key aftertouch events. Note: this was written for Cakewalk Pro audio 9.

    The way it works is you select one note along with the channel aftertouch events and then run the Cal script.  This converts the channel aftertouch events to key aftertouch events that act on the note that you selected.

    I suppose this script could be written to do the reverse

    Windows 10 64bit fully patched, 16 gig ram . 
    PCR-800 Controller.  (Working in Win 10 1809 64bit)
    CPU: i5 4670. 
    Video: Nvidia GTX560ti (latest drivers).
    Audio IF: Focusrite 2i2 2nd Gen

    Internet always on.

    Software
    : Cakewalk by Bandlab (2018.09 B29)
    ASIO mode. 24bit 48khz 256 samples 
    Rapture Pro, AAS GS2, VS-3, EP-4, VA-2, Chromophone 2, Z3TA+ 2, Addictive drums 2, Addictive Keys, Mpowersynth (latest), Iris 2, GPO5, Sampletank 3,
    #2
    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/17 05:56:20 (permalink)
    I can try to write AZ Lua preset to do the conversion, the difference with CAL is that it can work "real time" (you can hear the modification without bouncing/processing first).
     
    But I do not have any good idea to what should I convert it for editing. Key After-touch requires 2 value, the key and the value. So either it will "consume" the whole normal key range (not practical since continuous) or the whole CC range (can clash with "normal" CC, creates one "CC lane" for every note with KA).

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #3
    FZ1
    Max Output Level: -90 dBFS
    • Total Posts : 41
    • Joined: 2014/11/13 06:18:25
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/17 09:57:18 (permalink)
    Hi Promidi
    Could you please post your channel to poly aftertouch cal routine?
    I would be interested in using it.
    I havent seen a cal for this. I thought it may have not been possible with cal.
     
    Thanks
    Futz
    #4
    promidi
    Max Output Level: -66 dBFS
    • Total Posts : 1220
    • Joined: 2014/11/21 18:46:39
    • Location: South Australia
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/17 10:18:02 (permalink)
    FZ1
    Hi Promidi
    Could you please post your channel to poly aftertouch cal routine?


    Here you go.  Remember, save often.  I have had some CAL crash sonar inexplicably for some unknown reason. Usual disclaimers apply. I am not responsible if this crashes your sonar, sets your cat on fire and blows up your power supply, etc..

    Copy and paste the text between "begin code" and "end code" and save the file as a *.cal and you're good to go.

    Note: I did test this in Sonar Platinum and it worked fine.  The best way to see the conversion is to have an event viewer window open while running the CAL to ensure correct conversion.

    _____________begin code__________________ (do not include)
    ; Translate CHannel To Key Aftertouch.CAL
    ;
    ; Author : Paul Williamson  
    ;        
    ;          
    ;
    ; A CAL program to translate data from Channel aftertounch to Key Aftertouch.
    ;
    ;Uses selected note as source .  If no note selected then prompts for note number to convert to

    (do
      (int notenumber 64)
      (int number_of_notes 0); counter for notes
      (int number_of_aftertouch_events 0); counter for aftertouch events

    ; find single selected note
       (forEachEvent
            (if (== Event.Kind NOTE)
                        (do
                            (= notenumber Note.Key)
                            (++ number_of_notes)
                        )
                )
        )      
      ; if there is no note selected then ask user for note number
            (if (== number_of_notes 0)    
                (getInt notenumber "No note selected.  Please enter note number for resulting key aftertouch events" 0 127)  
          )    
     
      ; see if there are more than 1 notes selected

    (if (> number_of_notes 1)    
        (do
            (pause "Too many notes selected. Please only select 1 note")
            (exit)
        )  
    )    
                                     
    (forEachEvent
        (if (== Event.Kind CHANAFT)
            (do
                (insert Event.Time Event.Chan KEYAFT notenumber ChanAft.Val)
            (delete); delete original Channel aftertouch events
            (++ number_of_aftertouch_events); count events that have changed
        )
        )
    )
        (if (== number_of_aftertouch_events 0)
            ;then
            (do
                (pause "There were no Channel Aftertouch events to modify")
            )
            ;else
            (do
                (pause "Note number " notenumber "affected. Number of Aftertouch events modified "  number_of_aftertouch_events)
            )
        )
    )
    _____________end code__________________(do not include)
     

    Windows 10 64bit fully patched, 16 gig ram . 
    PCR-800 Controller.  (Working in Win 10 1809 64bit)
    CPU: i5 4670. 
    Video: Nvidia GTX560ti (latest drivers).
    Audio IF: Focusrite 2i2 2nd Gen

    Internet always on.

    Software
    : Cakewalk by Bandlab (2018.09 B29)
    ASIO mode. 24bit 48khz 256 samples 
    Rapture Pro, AAS GS2, VS-3, EP-4, VA-2, Chromophone 2, Z3TA+ 2, Addictive drums 2, Addictive Keys, Mpowersynth (latest), Iris 2, GPO5, Sampletank 3,
    #5
    Resort Records
    Max Output Level: -86 dBFS
    • Total Posts : 234
    • Joined: 2003/12/22 02:07:16
    • Location: Incline Village, NV
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/17 14:08:08 (permalink)
    promidi
    I really wish Cakewalk would change this to add key aftertouch events editing in the PRV.  I notice the channel aftertouch events greys out the area to the right of the dropdown when selecting "Type".  This area could contain the note you which to edit key aftertouch events.



    Context-sensitive controller editing?  Dude, that's brilliant.
     
    It could also be implemented as Channel AT already is - with a dedicated MIDI data lane, but displaying only the AT events relating to a selected note, above.  Other Poly AT data would be invisible or grayed out.

    David Delbridge
    Resort Records Inc
    #6
    Resort Records
    Max Output Level: -86 dBFS
    • Total Posts : 234
    • Joined: 2003/12/22 02:07:16
    • Location: Incline Village, NV
    • Status: offline
    Re: How to Edit Poly Aftertouch? 2016/05/18 18:49:18 (permalink)
    azslow3
    But I do not have any good idea to what should I convert it for editing. Key After-touch requires 2 value, the key and the value. So either it will "consume" the whole normal key range (not practical since continuous) or the whole CC range (can clash with "normal" CC, creates one "CC lane" for every note with KA).



    Can CAL copy and paste data between tracks?  If so, then I'd go with the latter approach - copy just the notes and Poly AT data to a new track for temporary editing.  This way, you can put the AT data for each note in its own CC lane without fear of conflict.  When done editing, another CAL script would be required to convert the data back and merge the tracks.
     
    Just a thought.
     
    Thanks for looking at it.

    David Delbridge
    Resort Records Inc
    #7
    Jump to:
    © 2025 APG vNext Commercial Version 5.1