From f8e8f8db2f23a7dc4db49458981f6ce71dc31b5e Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Sun, 18 Feb 2018 14:06:12 -0800 Subject: [PATCH] NO-OP: whitespace --- STYLE_GUIDE | 3 + include/lua-scripting.html | 116 ++++++++++++++++++++++------------ include/midi-list-editor.html | 3 +- include/processor-box.html | 40 ++++++++---- include/sidechaining.html | 53 ++++++++++++---- 5 files changed, 150 insertions(+), 65 deletions(-) diff --git a/STYLE_GUIDE b/STYLE_GUIDE index 5c3c383..491794c 100644 --- a/STYLE_GUIDE +++ b/STYLE_GUIDE @@ -50,6 +50,9 @@ Watch out for the ampersand "&" and angle brackets "<" and ">". They will render your XHTML invalid, and must be replaced by their named entities "&", "<", and ">". +Keep line lengths within 108 characters so that additions or changes are easy to view in github pull requests. +Code examples that are supposed to be all one line are an exception in which case the
 tag should be
+used to to tell the browser to display the code as one line.
 
 3. Custom classes
 =================
diff --git a/include/lua-scripting.html b/include/lua-scripting.html
index f3d835c..974a50a 100644
--- a/include/lua-scripting.html
+++ b/include/lua-scripting.html
@@ -10,11 +10,12 @@ This Documentation is Work in Progress and far from complete. Also the documente
 
 

Preface

-There are cases that Ardour cannot reasonably cater to with core functionality alone, either because they're session specific or user specific edge cases. +There are cases that Ardour cannot reasonably cater to with core functionality alone, either because they're session specific +or user specific edge cases.

Examples for these include voice-activate (record-arm specific tracks and roll transport depending on signal levels), -rename all regions after a specific timecode, launch an external application when a certain track is soloed, generate automation curves -or simply provide a quick shortcut for a custom batch operation. +rename all regions after a specific timecode, launch an external application when a certain track is soloed, generate +automation curves or simply provide a quick shortcut for a custom batch operation.

Cases like this call for means to extend the DAW without actually changing the DAW itself. This is where scripting comes in.

@@ -24,15 +25,16 @@ Lua is a tiny and simple language which is easy to learn, yet allows for compreh Lua is also a glue language it allows to tie existing component in Ardour together in unprecedented ways, and most importantly Lua is one of the few scripting-languages which can be safely used in a real-time environment.

-A good introduction to Lua is the book Programming in Lua. The first edition is available online, -but if you have the means buy a copy of the book, it not only helps to support the Lua project, -but provides for a much nicer reading and learning experience. +A good introduction to Lua is the book Programming in Lua. The first edition is +available online, but if you have the means buy a copy of the book, it not only helps to support the Lua project, but provides +for a much nicer reading and learning experience.

Overview

-The core of Ardour is a real-time audio engine that runs and processes audio. One interfaces with an engine by sending it commands. -Scripting can be used to interact with or modify the active Ardour session, just like a user uses the Editor/Mixer GUI to modify the state or parameters of the session. +The core of Ardour is a real-time audio engine that runs and processes audio. One interfaces with an engine by sending it +commands. Scripting can be used to interact with or modify the active Ardour session, just like a user uses the Editor/Mixer +GUI to modify the state or parameters of the session.

Doing this programmatically requires some knowledge about the objects used internally. Most Ardour C++ objects and their methods are directly exposed to Lua and one can call functions or modify variables: @@ -56,19 +58,22 @@ Most Ardour C++ objects and their methods are directly exposed to Lua and one ca

You may notice that there is only a small syntactic difference in this case. -While C++ requires recompiling the application for every change, Lua script can be loaded, written or modified while the application is running. -Lua also abstracts away many of the C++ complexities such as object lifetime, type conversion and null-pointer checks. +While C++ requires recompiling the application for every change, Lua script can be loaded, written or modified while the +application is running. Lua also abstracts away many of the C++ complexities such as object lifetime, type conversion and +null-pointer checks.

Close ties with the underlying C++ components is where the power of scripting comes from. A script can orchestrate interaction of lower-level components which take the bulk of the CPU time of the final program.

-At the time of writing Ardour integrates Lua 5.3.2: Lua 5.3 reference manual. +At the time of writing Ardour integrates Lua 5.3.2: Lua 5.3 reference +manual.

Integration

-Like Control surfaces and the GUI, Lua Scripts are confined to certain aspects of the program. Ardour provides the framework and runs Lua (not the other way around). +Like Control surfaces and the GUI, Lua Scripts are confined to certain aspects of the program. Ardour provides the framework +and runs Lua (not the other way around).

In Ardour's case Lua is available: @@ -86,7 +91,8 @@ In Ardour's case Lua is available: There are is also a special mode:

-
Commandline ToolReplaces the complete Editor GUI, direct access to libardour (no GUI) from the commandline.
+
Commandline ToolReplaces the complete Editor GUI, direct access to libardour (no GUI) from the + commandline.
Be aware that the vast majority of complex functionality is provided by the Editor UI.
@@ -115,9 +121,11 @@ Apart from scripts included directly with Ardour, this includes

Script Layout

@@ -138,10 +146,12 @@ Apart from scripts included directly with Ardour, this includes

-The common part for all scripts is the "Descriptor". It's a Lua function which returns a table (key/values) with the following keys (the keys are case-sensitive): +The common part for all scripts is the "Descriptor". It's a Lua function which returns a table (key/values) with the following +keys (the keys are case-sensitive):

- + @@ -149,12 +159,15 @@ The common part for all scripts is the "Descriptor". It's a Lua function which r
type [required]one of "DSP", "Session", "EditorHook", "EditorAction" (the type is not case-sensitive)
type [required]one of "DSP", "Session", "EditorHook", + "EditorAction" (the type is not case-sensitive)
name [required]Name/Title of the script
authorYour Name
licenseThe license of the script (e.g. "GPL" or "MIT")

-Scripts that come with Ardour (currently mostly examples) can be found in the Source Tree. +Scripts that come with Ardour (currently mostly examples) can be found in the +Source Tree.

Action Scripts

-

Action scripts are the simplest form. An anonymous Lua function is called whenever the action is triggered. A simple action script is shown above.

-

There are 10 action script slots available, each of which is a standard GUI action available from the menu and hence can be bound to a keyboard shortcut.

+

Action scripts are the simplest form. An anonymous Lua function is called whenever the action is triggered. A simple action +script is shown above.

+

There are 10 action script slots available, each of which is a standard GUI action available from the menu and hence can be +bound to a keyboard shortcut.

Session Scripts

Session scripts similar to Actions Scripts, except the anonymous function is called periodically every process cycle. @@ -199,7 +212,8 @@ end

Action Hooks

-

Action hook scripts must define an additional function which returns a Set of Signal that which trigger the callback (documenting available slots and their parameters remains to be done).

+

Action hook scripts must define an additional function which returns a Set of Signal that which trigger the +callback (documenting available slots and their parameters remains to be done).


 ardour {
@@ -247,53 +261,72 @@ end
 

See the scripts folder for examples for now.

Some notes for further doc:

    -
  • required function: dsp_ioconfig (): return a list of possible audio I/O configurations - follows Audio Unit conventions.
  • +
  • required function: dsp_ioconfig (): return a list of possible audio I/O configurations - follows Audio + Unit conventions.
  • optional function: dsp_dsp_midi_input (): return true if the plugin can receive midi input
  • optional function: dsp_params (): return a table of possible parameters (automatable)
  • optional function: dsp_init (samplerate): called when instantiation the plugin with given samplerate.
  • optional function: dsp_configure (in, out): called after instantiation with configured plugin i/o.
  • -
  • required function: dsp_run (ins, outs, n_samples) OR dsp_runmap (bufs, in_map, out_map, n_samples, offset): DSP process callback. The former is a convenient abstraction that passes mapped buffers (as table). The latter is a direct pass-through matching Ardour's internal ::connect_and_run() API, which requires the caller to map and offset raw buffers.
  • +
  • required function: dsp_run (ins, outs, n_samples) OR dsp_runmap (bufs, in_map, out_map, n_samples, + offset): DSP process callback. The former is a convenient abstraction that passes mapped buffers (as table). The + latter is a direct pass-through matching Ardour's internal ::connect_and_run() API, which requires the caller + to map and offset raw buffers.
  • plugin parameters are handled via the global variable CtrlPorts.
  • -
  • midi data is passed via the global variable mididata which is valid during dsp_run only. (dsp_runmap requires the script to pass raw data from the buffers according to in_map)
  • -
  • The script has access to the current session via the global variable Session, but access to the session methods are limited to realtime safe functions
  • +
  • midi data is passed via the global variable mididata which is valid during dsp_run only. + (dsp_runmap requires the script to pass raw data from the buffers according to in_map)
  • +
  • The script has access to the current session via the global variable Session, but access to the session methods are + limited to realtime safe functions

Accessing Ardour Objects

The top most object in Ardour is the ARDOUR::Session. Fundamentally, a Session is just a collection of other things: -Routes (tracks, busses), Sources (Audio/Midi), Regions, Playlists, Locations, Tempo map, Undo/Redo history, Ports, Transport state and controls, etc. +Routes (tracks, busses), Sources (Audio/Midi), Regions, Playlists, Locations, Tempo map, Undo/Redo history, Ports, Transport +state and controls, etc.

Every Lua interpreter can access it via the global variable Session.

-GUI context interpreters also have an additional object in the global environment: The Ardour Editor. The Editor provides access to high level functionality which is otherwise triggered via GUI interaction such as undo/redo, open/close windows, select objects, drag/move regions. It also holds the current UI state: snap-mode, zoom-range, etc. -The Editor also provides complex operations such as "import audio" which under the hood, creates a new Track, adds a new Source Objects (for every channel) with optional resampling, creates both playlist and regions and loads the region onto the Track all the while displaying a progress information to the user. +GUI context interpreters also have an additional object in the global environment: The Ardour Editor. The Editor +provides access to high level functionality which is otherwise triggered via GUI interaction such as undo/redo, open/close +windows, select objects, drag/move regions. It also holds the current UI state: snap-mode, zoom-range, etc. +The Editor also provides complex operations such as "import audio" which under the hood, creates a new Track, adds a new +Source Objects (for every channel) with optional resampling, creates both playlist and regions and loads the region onto the +Track all the while displaying a progress information to the user.

Documenting the bound C++ methods and class hierarchy is somewhere on the ToDo list. -Meanwhile luabindings.cc is the best we can offer. +Meanwhile luabindings.cc is the best we +can offer.

Concepts

    -
  • There are no bound constructors: Lua asks Ardour to create objects (e.g. add a new track), then receives a reference to the object to modify it.
  • -
  • Scripts, once loaded, are saved with the Session (no reference to external files). This provides for portable Sessions.
  • -
  • Lua Scripts are never executed directly. They provide a "factory" method which can have optional instantiation parameters, which returns a Lua closure.
  • -
  • No external Lua modules/libraries can be used, scripts need to be self contained (portable across different systems (libs written in Lua can be used, and important c-libs/functions can be included with Ardour if needed).
  • +
  • There are no bound constructors: Lua asks Ardour to create objects (e.g. add a new track), then receives a reference + to the object to modify it.
  • +
  • Scripts, once loaded, are saved with the Session (no reference to external files). This provides for portable + Sessions.
  • +
  • Lua Scripts are never executed directly. They provide a "factory" method which can have optional instantiation + parameters, which returns a Lua closure.
  • +
  • No external Lua modules/libraries can be used, scripts need to be self contained (portable across different systems + (libs written in Lua can be used, and important c-libs/functions can be included with Ardour if needed).

-Ardour is a highly multithreaded application and interaction between the different threads, particularly real-time threads, needs to to be done with care. -This part has been abstracted away by providing separate Lua interpreters in different contexts and restricting available interaction: +Ardour is a highly multithreaded application and interaction between the different threads, particularly real-time threads, +needs to to be done with care. This part has been abstracted away by providing separate Lua interpreters in different contexts +and restricting available interaction:

  • Editor Actions run in a single instance interpreter in the GUI thread.
  • -
  • Editor Hooks connect to libardour signals. Every Callback uses a dedicated Lua interpreter which is in the GUI thread context.
  • +
  • Editor Hooks connect to libardour signals. Every Callback uses a dedicated Lua interpreter which is in the GUI thread + context.
  • All Session scripts run in a single instance in the main real-time thread (audio callback)
  • DSP scripts have a separate instance per script and run in one of the DSP threads.

-The available interfaces differ between contexts. For example, it is not possible to create new tracks or import audio from real-time context; while it is not possible to modify audio buffers from the GUI thread. +The available interfaces differ between contexts. For example, it is not possible to create new tracks or import audio from +real-time context; while it is not possible to modify audio buffers from the GUI thread.

Current State

@@ -305,7 +338,8 @@ Fully functional, yet still in a prototyping stage:
  • Further planned work includes:
    • Built-in Script editor (customize/modify Scripts in-place)
    • -
    • convenience methods (wrap more complex Ardour actions into a library). e.g set plugin parameters, write automation lists from a Lua table
    • +
    • convenience methods (wrap more complex Ardour actions into a library). e.g set plugin parameters, write + automation lists from a Lua table
    • Add some useful scripts and more examples
    • Documentation (Ardour API), also usable for tab-exansion, syntax highlighting
    • bindings for GUI Widgets (plugin UIs, message boxes, etc)
    • @@ -315,7 +349,8 @@ Fully functional, yet still in a prototyping stage:

      Examples

      -

      Apart from the scripts included with the source-code here are a few examples without further comments... +

      Apart from the scripts included with the source-code +here are a few examples without further comments...

      Editor Console Examples

      @@ -385,7 +420,8 @@ ARDOUR.LuaAPI.set_processor_param (proc, 2, 1.0)

      The standalone tool luasession allows one to access an Ardour session directly from the commandline. Interaction is limited by the fact that most actions in Ardour are provided by the Editor GUI.

      -luasession provides only two special functions load_session and close_session and exposes the AudioEngine instance as global variable. +luasession provides only two special functions load_session and close_session and +exposes the AudioEngine instance as global variable.

      diff --git a/include/midi-list-editor.html b/include/midi-list-editor.html index 1326f74..d6369b0 100644 --- a/include/midi-list-editor.html +++ b/include/midi-list-editor.html @@ -29,7 +29,8 @@ NumThe MIDI number of the note NameThe MIDI name of the note, made of its English name and octave (e.g. "C4") Velthe velocity of the note (i.e. its intensity, between 0 and 127) - Lengthduration of the note, either expressed as a number (in ticks, related to the tempo) or as a text (fraction of a beat, also related to the tempo) + Lengthduration of the note, either expressed as a number (in ticks, related to the tempo) or as a text + (fraction of a beat, also related to the tempo)

      diff --git a/include/processor-box.html b/include/processor-box.html index d910dd9..fa4d20d 100644 --- a/include/processor-box.html +++ b/include/processor-box.html @@ -5,19 +5,27 @@

      - In Ardour terminology, a processor is anything which treats the signal in some way and gets plugged into a mixer strip. Ardour provides several builtin processors such as the fader or panners. Processors can also be plugins used for effects or as instruments, as well as sends or inserts which affect signal routing. + In Ardour terminology, a processor is anything which treats the signal in some way and gets plugged into a mixer + strip. Ardour provides several builtin processors such as the fader or panners. Processors can also be plugins + used for effects or as instruments, as well as sends or inserts which affect signal routing.

      - The arrangement of processors is arbitrary, and there is no limit to how many there can be. The Processor Box will automagically add a scrollbar to itself if there are more processors in it than can be shown in the given space. + The arrangement of processors is arbitrary, and there is no limit to how many there can be. The Processor Box will + automagically add a scrollbar to itself if there are more processors in it than can be shown in the given space.

      - The main box in the top half of a mixer strip shows the processor box. Processors are shown as colored rectangles, with a small LED beside them that lights up when the processor is enabled. The color of the processor depends on its location in the sequence; processors that are pre-fader are colored in red, and post-fader processors are colored green (in the default theme). + The main box in the top half of a mixer strip shows the processor box. Processors are shown as colored rectangles, + with a small LED beside them that lights up when the processor is enabled. The color of the processor depends on its location + in the sequence; processors that are pre-fader are colored in red, and post-fader processors are + colored green (in the default theme).

      - The processor box will always contain a blue Fader processor. This indicates where in the processor chain the main channel fader is located; this is the fader shown in the lower half of the strip. It can be enabled and disabled like any other processor. + The processor box will always contain a blue Fader processor. This indicates where in the processor + chain the main channel fader is located; this is the fader shown in the lower half of the strip. It can be enabled and + disabled like any other processor.

      Adding Processors

      @@ -37,17 +45,20 @@

      - Processors can also be dragged and dropped from the Favorite Plugins window to an appropriate spot in the Processor Box. + Processors can also be dragged and dropped from the Favorite Plugins window to an + appropriate spot in the Processor Box.

      - The Favorite Plugins window can be populated via the Plugin Manager, or by dragging and dropping an existing processor from the processor box to the Favorite Plugins window. + The Favorite Plugins window can be populated via the Plugin Manager, or by dragging + and dropping an existing processor from the processor box to the Favorite Plugins window.

      To Reorder (Move) Processors

      - Processors can be re-ordered using drag and drop. Dragging a processor allows it to be moved around within the chain, or copied to another processor list on another track or bus. + Processors can be re-ordered using drag and drop. Dragging a processor allows it to be moved around within the chain, or + copied to another processor list on another track or bus.

      To Enable/Disable a Processor

      @@ -58,22 +69,29 @@

      - To the left of the name of each processor is a small LED symbol; if this is lit-up, the processor is active. Clicking on it will deactivate the processor and effectively bypass it. + To the left of the name of each processor is a small LED symbol; if this is lit-up, the processor is active. Clicking on it + will deactivate the processor and effectively bypass it.

      - Some processors have their own bypass controls that are independent of the one that Ardour provides; this can make it appear that the plugin is non-responsive when its independent bypass control is active. + Some processors have their own bypass controls that are independent of the one that Ardour provides; this can make it appear + that the plugin is non-responsive when its independent bypass control is active.

      Selecting Processors

      - A processor in the processor box can be selected with a Left-click on it; it will be highlighed in red. Other processors can be selected at the same time by Left-clicking on them while holding down the key, and ranges can be selected by Left-clicking on them while holding down the key. + A processor in the processor box can be selected with a Left-click on it; it will be + highlighed in red. Other processors can be selected at the same time by Left-clicking on them while + holding down the key, and ranges can be selected by Left-clicking on them + while holding down the key.

      Removing Processors

      - Context-click on the processor to be removed, and select Delete; or Right-click on it; or Left-click on it and press the Delete key. If multiple processors are selected, they will all be deleted at the same time. + Context-click on the processor to be removed, and select Delete; or + Right-click on it; or Left-click on it and press the + Delete key. If multiple processors are selected, they will all be deleted at the same time.

      diff --git a/include/sidechaining.html b/include/sidechaining.html index e4e6bcc..4cc5674 100644 --- a/include/sidechaining.html +++ b/include/sidechaining.html @@ -1,24 +1,36 @@

      - Dynamic Processors—such as compressors—in general use the the original input signal for analysis and operate on the same signal. Side-chaining uses the signal level of another input to control the compression level of the original signal. + Dynamic Processors—such as compressors—in general use the the original input signal for analysis and operate on + the same signal. Side-chaining uses the signal level of another input to control the compression level of the + original signal.

      - Effect Processors which have a side-chain input (sometimes also called key input) have an additional input pin to receive a signal from an external input. In Ardour that extra input can be connected in the plugin's Pin Configuration dialog: the signal from one track can be tapped off and used as an input to a plugin on a different track. This dialog is accessed via the plugin's context-menu > Pin Connections…. + Effect Processors which have a side-chain input (sometimes also called key input) have an additional input pin to + receive a signal from an external input. In Ardour that extra input can be connected in the plugin's Pin + Configuration dialog: the signal from one track can be tapped off and used as an input to a plugin on a different + track. This dialog is accessed via the plugin's context-menu > Pin Connections….

      - In case a plugin has a dedicated sidechain input, Ardour automatically creates a port for the input. This is a normal I/O port which can be fed by any external signal. The Pin Configuration dialog is not limited to processors with a dedicated sidechain input, it also allows to manually create (or remove) a sidechain input port and provides for flexible connection of the signal to plugin pins. + In case a plugin has a dedicated sidechain input, Ardour automatically creates a port for the input. This is a normal I/O + port which can be fed by any external signal. The Pin Configuration dialog is not limited to + processors with a dedicated sidechain input, it also allows to manually create (or remove) a sidechain input port and + provides for flexible connection of the signal to plugin pins.

      - The operational flow in the Ardour GUI starts at the processor which is to receive the signal: a sidechain source is selected, and Ardour creates a dedicated send-processor in the source processor box, the level of which can be adjusted either in the Pin Configuration window or directly on the source's send. + The operational flow in the Ardour GUI starts at the processor which is to receive the signal: a sidechain source is + selected, and Ardour creates a dedicated send-processor in the source processor box, the level of which can be adjusted + either in the Pin Configuration window or directly on the source's send.

      A simple example: Sidechain compression

      - One example is the use of a bassdrum track to trigger the compression on a bass track. The sidechain compressor (a-Compressor) will be placed on the bass track, and will need to receive the signal from the bassdrum track as a way to trigger the compression. + One example is the use of a bassdrum track to trigger the compression on a bass track. The sidechain compressor + (a-Compressor) will be placed on the bass track, and will need to receive the signal from the bassdrum track as a way to + trigger the compression.

      @@ -31,21 +43,29 @@

      - Here, on the bass track, an a-Compressor has been added, and the Drum track has been set as the sidechain source. The mixer reflects this by showing an SC-send processor in the drum track, very similar to a send. The bass track also shows an arrow as one of the a-compressor input. + Here, on the bass track, an a-Compressor has been added, and the Drum track has been set as the sidechain source. + The mixer reflects this by showing an SC-send processor in the drum track, very similar to a + send. The bass track also shows an arrow as one of the a-compressor input.

      - As a result, in the editor, each peak in the kick drum track triggers the compression on the bass track and the resulting track shows the compression kicking in on each kick drum peak, hence reducing the gain. The compression is applied to the bass, but only based on the level of the drum track. + As a result, in the editor, each peak in the kick drum track triggers the compression on the bass track and the resulting + track shows the compression kicking in on each kick drum peak, hence reducing the gain. The compression is applied to the + bass, but only based on the level of the drum track.

      - This is commonly used for ducking effect, when e.g. a radio speaker's voice triggers the compression on the audio playing. + This is commonly used for ducking effect, when e.g. a radio speaker's voice triggers the compression on the audio + playing.

      MIDI Sidechaining

      - Ardour allows the sidechain sources to be either audio or MIDI tracks/busses. This is particularly useful when a MIDI signal is used to control an audio effect, like a vocoder or an auto-tuner, like fat1, the LV2 port of Fons Adriaensen's Zita AT1 by Robin Gareus: + Ardour allows the sidechain sources to be either audio or MIDI tracks/busses. This is particularly useful when a MIDI signal + is used to control an audio effect, like a vocoder or an auto-tuner, like fat1, + the LV2 port of Fons Adriaensen's Zita + AT1 by Robin Gareus:

      @@ -56,11 +76,14 @@

      - Here, the MIDI track is inputed to the plugin's MIDI IN pin through a sidechain, indicating to the plugin what note should the source audio be corrected to. + Here, the MIDI track is inputed to the plugin's MIDI IN pin through a sidechain, indicating to the plugin what note should + the source audio be corrected to.

      - Notice that in the example above, the output of the "Vocals" track is connected to the input of the "Corrected" track. We could have chosen to insert the "Vocals" track content as an audio sidechain too, totally disconnecting the input from the plugin, and connecting the plugin's input pin to the audio sidechain port. + Notice that in the example above, the output of the "Vocals" track is connected to the input of the "Corrected" track. We + could have chosen to insert the "Vocals" track content as an audio sidechain too, totally disconnecting the input from the + plugin, and connecting the plugin's input pin to the audio sidechain port.

      Pre-processing the sidechained signal

      @@ -70,10 +93,14 @@

      - In the first example above, if the entire drum part is on one track, then compressing with this signal as a sidechain will result in every peak triggering the compression, be they bass drum kicks or snare, cymbals, etc. + In the first example above, if the entire drum part is on one track, then compressing with this signal as a sidechain will + result in every peak triggering the compression, be they bass drum kicks or snare, cymbals, etc.

      - In this case, adding an EQ to the drum track with a low pass filter would filter out the peaks created by the high pitched instruments of the drum kit, and allow for a better triggering, though to avoid damaging the original drum track, a send to an intermediary track would be better suited to place the EQ on. This track won't be connected to the Master, as its content is of no musical interest except for its use as a trigger, allowing for some extreme EQ. + In this case, adding an EQ to the drum track with a low pass filter would filter out the peaks created by the high pitched + instruments of the drum kit, and allow for a better triggering, though to avoid damaging the original drum track, a send to + an intermediary track would be better suited to place the EQ on. This track won't be connected to the Master, as its content + is of no musical interest except for its use as a trigger, allowing for some extreme EQ.