Credit Andrea with Windows.tex changes based on reading updates in CV manual
[goodguy/cin-manual-latex.git] / parts / Windows.tex
1 \chapter{Interface (the 4+ Windows)}%
2 \label{cha:the_4_windows}
3 \index{interface}
4
5 \begin{figure}[htpb]
6     \centering
7     \includegraphics[width=\linewidth,keepaspectratio]{Fenstergrundposition-en.png}
8     \captionsetup{labelformat=empty, textformat=empty}
9     \caption[The four windows (cc-by-sa Olaf)]{No text}    
10     \label{fig:Fenstergrundposition-en}
11 \end{figure}
12
13 First, it is important to know what an EDL is. When \CGG{} saves a file, it saves the EDL,
14 Edit Decision List, of your project which contains all the settings and locations of edits
15 and pointers to the media so that the media is not modified. The EDL is described 
16 in \nameref{sec:edl_edit_decision_list}.
17
18 Second, for those users who would like to keep all 4 windows together for a better workflow,
19 see \nameref{sec:focus_group}.
20
21 \section{Program Window}%
22 \label{sec:program_window}
23 \index{program window}
24
25 The main window is called the \textit{Program} window and is often just referred to as the \textit{timeline}\index{timeline}.  Here is where you enter the main menu operations.  
26 This timeline consists of a vertical stack of tracks with time represented horizontally on the track. 
27 It is the output of the rendering operations and this is what is saved when you run the \textit{File} pulldown, Save command.
28 Immediately to the left of the timeline is the patchbay\index{patchbay}. The patchbay contains options that affect each track.  
29 These options are described in great detail in \nameref{sec:patchbay}.
30
31 The \textit{Window} pulldown on the main window contains options
32 that affect the 4 main windows. The first 3 options are used to
33 display each of the windows in case one was accidentally closed.
34 You can move or resize the windows as needed, save that particular
35 layout, and revert to the default positions to reposition all 4
36 windows to the original screen configuration.  On dual headed
37 displays, the \textit{Default positions} operation only uses the one
38 monitor to display the windows, but as you can see in the
39 \textit{Window} pulldown you have more options to change that with the
40 2 \textit{tile} options. Usage with dual monitors is explained
41 in~\nameref{sec:playback_a_b}.
42
43 \subsection{Video and Audio Tracks and Navigation}%
44 \label{sub:video_and_audio_tracks_and_navigation}
45
46 The \textit{Program} window (figure~\ref{fig:patchbay}) has many features for navigation and displays the timeline as it is structured in memory. The tracks are stacked vertically with horizontal movement over time.
47 There is a vertical scroll bar which allows for moving across tracks and a horizontal scroll bar for scanning across time. 
48
49 \begin{figure}[htpb]
50     \centering
51     \includegraphics[width=1.0\linewidth]{patchbay.png}
52     \caption{Patchbay  | Timeline with pulldowns, navigation icons, Video/Audio tracks | bottom Zoom Panel}
53     \label{fig:patchbay}
54 \end{figure}
55
56 Video tracks represent the duration of your media, just as if you placed old-fashioned rolls of photographic
57 film one right after the other on a table.
58 Individual images that are drawn on each track are snapshots of what is located at that place on the timeline.
59
60 Audio tracks represent the sound media as an audio waveform, or if you change a preference setting, a rectified audio waveform. 
61 This too looks like old-fashioned digital magnetic tape laid out horizontally across a table.
62 Using the \textit{Zoom Panel} controls at the bottom of the timeline,
63 you can adjust the horizontal and vertical size of the video and audio waveform displays.
64 Each track on the timeline has a set of attributes on its left side in the patchbay which is used to 
65 control some options of that particular track. 
66
67 Track navigation is performed by selecting a video or audio track and moving to a certain time in the track. 
68 Use the vertical scroll bar to scan across tracks, or even easier you can use the mouse wheel. 
69 And use the horizontal scroll bar to scan across time, or again even easier, you can use the mouse wheel with the Ctrl key.  
70
71 Once you have become familiar with many of the graphical tools and pulldowns, you can switch to using more of
72 the keyboard to navigate.  Many of the key equivalences are listed in each of the pulldowns to the right of the option
73  as a shortcut. All of the shortcuts are listed in a document for keyboard 
74 navigation (\nameref{cha:shortcuts}). This includes, for example, shortcuts like the \texttt{Home} and \texttt{End} keys to go to the beginning or end of the timeline.  
75 Another example is in the default cut and paste mode, hold down \texttt{Shift} while pressing \texttt{Home} or \texttt{End} in order to select the region of the timeline between the insertion point and the key pressed.
76
77 \subsection{Transport and Buttons Bar}%
78 \label{sub:transport_buttons}
79 \index{transport buttons}
80
81 This is a short description of what is contained on the \textit{Transport and Buttons Bar} as seen in
82 figure~\ref{fig:insertion-points}.
83 Each of the symbols has an associated tooltip as an easy reminder of its function.  The usage of
84 several is described in a little more detail in other areas of this manual. 
85
86 \vspace{2ex}
87 \begin{longtable}{ll}
88    \hline
89         First set of 3 symbols & Move in the reverse direction on the timeline \\
90         4th symbol & Stop play \\
91         Third set of 3 symbols & Move in the forward direction on the timeline \\
92         Next 2 symbols & Set editing mode \\
93         Generate keyframes while tweaking & Explained in \ref{sec:generate_keyframe_tweaking}\\
94         Allow keyframe spanning & Explained in \ref{sec:allow_keyframes_spanning}\\
95         Lock labels from moving with edits & Toggle to lock or not lock labels from moving \\
96         Next 2 are In and Out pointers & Set or unset In and Out to define an area \\
97         To Clip & Create a clip of the designated area \\
98         Split / Cut & Split/Cut at insertion or selected area \\
99         Next 2 symbols & Usual Copy and Paste functions \\
100         Next 3 symbols & Label manipulation functions  \\
101         Next 2 symbols & Used to move to other edits  \\
102         Next 2 symbols & Fitting video to the display  \\
103         Next 2 symbols & Undo and Redo last operation  \\
104         Manual Go To & Explanation after this table  \\
105         Set Timecode & Explained in \ref{sub:align_timecodes}  \\
106         Gang Modes & Explained in \ref{sub:displaying_tracks_ganged} \\
107    \hline
108 \end{longtable}
109
110 The \textit{Manual Go To} \index{goto} menu is quite versatile as you can see in figure~\ref{fig:goto_menu}.  The
111 options of \textit{=} represents goto the position indicated in the textbox; \textit{+} indicates
112 to goto forward the additional number in the textbox; and \textit{-} means to go in the reverse
113 direction the number in the textbox.  If you use \textit{Enter} in the textbox, the menu will stay
114 up so that you can use it without having to continuously pop it up.  If you use the OK check instead, 
115 the menu will be taken down.  The pulldown arrow to the right of the textbox sets the
116 \textit{Time Format} \index{time format} for the units to be used for position changing.  This lets you change the units
117 without having to modify your Preference. 
118
119 \begin{figure}[htpb]
120     \centering
121     \includegraphics[width=0.4\linewidth]{goto.png}
122     \caption{Goto position menu}
123     \label{fig:goto_menu}
124 \end{figure}
125
126 \textit{Time Format} options are:
127
128 \begin{tabular}{ll}
129    \hline
130         h:mm:ss.sss & hours minutes seconds milliseconds  \\
131         h:mm:ss:ff & hours minutes seconds frames  \\
132         timecode  \\
133         video frames  \\ 
134         audio samples  \\
135         audio samples (hex)  \\
136         ssss.sss & milliseconds.xx  \\
137         video frames (feet)  \\
138    \hline
139 \end{tabular}
140
141 \subsection{Zoom Panel}%
142 \label{sub:zoom_panel}
143 \index{zoom!panel}
144
145 Below the displayed tracks in the timeline, you will find the zoom panel as seen in figure~\ref{fig:patchbay}.
146 In addition to the scrollbars, these options and their values are another set of tools for positioning the timeline.  
147 In order of appearance in the zoom panel as rectangular boxes and either tumbler arrows or a up/down arrow, this next list shows each option along with its tooltip description if available.
148 Then more details are provided in the next paragraphs.
149
150 \vspace{2ex}
151 \begin{tabular}{ll}
152    \hline
153         Sample zoom & Duration visible on the timeline \\
154         Amplitude & Audio waveform scale \\
155         Track audio zoom & Height of audio tracks \\
156         Track video zoom & Height of video tracks \\
157           (type) & Automation Type \\
158         Curve zoom & Automation range minimum and maximum \\
159         Selection change & 3 boxes with starting point, length, and ending point \\
160         Alpha slider & Slider bar to control alpha value for colored assets \\
161    \hline
162 \end{tabular}
163
164 Changing the \emph{sample zoom} changes the amount of time displayed on the timeline 
165 so you can see your media as individual frames or as the entire length of your media. 
166 To see more frames, use a higher setting. 
167 The sample zoom value is not an absolute time reference because it refers to the duration visible on the timeline. It will change as you modify the length of the program window horizontally.
168 You can either use the $\uparrow$ and $\downarrow$ arrows to change the sample zoom by a power of two, or use the mouse wheel on the tumblers to zoom in and out.
169
170
171 The next option is \emph{amplitude} and it only affects the audio waveform \index{waveform} size. \texttt{Ctrl-$\uparrow$} and \texttt{Ctrl-$\downarrow$} are shortcuts used to change the amplitude zoom as an alternative to the down arrow to the right of the numerical size.
172
173 The \emph{track audio and video zoom} affects all tracks of that type and determines the height of each track. 
174 If you change the audio track zoom, the amplitude zoom will be changed also so that the audio waveforms
175 are proportionally sized.
176 Shortcuts, \texttt{Ctrl-Pgup} and \texttt{Ctrl-Pgdown}, change the track zoom to the next level simultaneously for all of the audio and video tracks.
177
178 \emph{Automation type} \index{autos} is used for selecting one of the following: Audio Fade, Video Fade, Zoom, Speed, X, or Y (X and Y are for the compositor's Camera and Projector).  When an auto line is present on
179 the timeline and is being manipulated, a small square the same color as the line will be shown to 
180 the left of the Automation type when the left mouse button (LMB) is pressed.  This is just an indicator to make it easy to see what is being worked.
181  
182 The \emph{curve zoom} \index{autos!zoom} affects the curves for the selected \emph{automation type} in all the tracks of that type and determines the value range for those curves. 
183 Use the tumbler arrows to the left of the numbers for the minimum value and the tumblers to the right for the maximum value, or manually enter the values in the text box. 
184 Good default values for audio fade are -40.0 to 6.0 and for video fade are 0.0 to 100.0. 
185 The tumbler arrows change curve amplitude, but the only way to curve offset is to use the fit curves button on the curve itself.
186
187 The \emph{selection start time}, \emph{selection length}, and \emph{selection end time} \index{timeline!selection} display the current selected timeline values. When there is no selection, both the start and end time are the current
188 position of the timeline and the selection length is 0.
189 The \emph{alpha slider} \index{alpha slider} allows for varying the alpha value when using colors on the tracks as set in your \texttt{Preferences $\rightarrow$ Appearance} for \texttt{Autocolor assets}.  
190 It has no function without that flag set.
191
192 There are 3 additional pieces of information in the line immediately below the \textit{zoom panel}.
193 In the lower left hand corner there could be messages such as "Welcome to \CGG{}" when there is no 
194 need to display a red-colored error message or a line that reads "Rendering took H:MM:SS" after a render
195 has just been completed. Or when working with an auto, a small square the color of the last changed auto line, will be
196 present along with its keyframe type, location on the timeline, and its current value.  This is simply
197 for easy recognition of what is being worked. The second piece of helpful information is all the way to
198 the right which is a long rectangular box indicating the percentage completion of a render. Finally
199 there is an X with the tooltip of "Cancel operation" \index{cancel operation} used to stop an ongoing render
200 (the cancel operation may seem slow due to the amount of data still in the buffer upon cancellation).
201
202 \subsection{Track Popup Menu}%
203 \label{sub:track_popup_menu}
204 \index{track!popup menu}
205
206 Each Track has a popup menu. 
207 To activate the track popup menu, Right mouse click (RMB) on the track. 
208 The popup menu affects the track whether the track is armed on the patchbay or not. 
209 The Track Menu contains a number of options:
210
211 \begin{description}
212     \item[Attach Effect] \index{attach effect} opens a dialog box of effects applicable to the type of track of audio or video.
213     \item[Move up] allows for changing the order of the tracks up; the actual code refers
214 to this as a swap. Disarmed tracks affect the results.
215     \item[Move down]  allow for changing the order of the tracks down; the actual code refers
216 to this as a swap.  Disarmed tracks affect the results.
217     \item[Roll up] moves the tracks one step up in the stack with the top track going to the bottom.  This is applicable to all armed and disarmed tracks.
218     \item[Roll down]  moves the tracks one step down in the stack with the
219 bottom track going to the top.  This is applicable to all armed and disarmed tracks.
220     \item[Delete track]  removes the track from the timeline.
221     \item[Add Track]  adds a track of the same media type as the one selected, audio or video, above the selected track.
222     \item[Find in Resources] \index{find in resources}  the media file on that track at the location of the insert pointer will be highlighted in the media folder in the Resources window. If the 
223         Resources window is closed, media is found and highlighted but the Resources window is not displayed.
224     \item[Show edit] \index{show edit}  will point out the exact start and stop points along with the length of the current edit on
225         that track as well as the media name, track name and number, and edit number.
226     \item[User title] \index{user title}  is used to change the title name.  This is really handy for files that have very long and
227         similar names that would get cut off during edits.  You can use short names to better differentiate the
228         media. In Drag and Drop editing mode, if you select multiple edits all of those clips will have
229 their title name changed.
230     \item[Bar color] \index{bar color} allows the user to select a specific color for the title bar.  This helps to more easily locate a piece of media.
231     \item[Resize Track] \index{resize track} resizes the track; this is only applicable to video tracks.
232     \item[Match Output Size] \index{match output size} resizes the track to match the current output size; this is only applicable to video tracks.
233 \end{description}
234
235
236 \subsection{Insertion Point}%
237 \label{sub:insertion_point}
238 \index{insertion point}
239
240 The insertion point (figure~\ref{fig:insertion-points}) is the vertical hairline mark that spans the timeline in the program window - it can be a solid line but most of the time it will be flashing. 
241 Like the cursor on a word processor, the insertion point marks the place on the timeline where the next
242 operation will begin. It is the starting point of all play operations and is the point where a paste operation will occur. 
243 In some cases, when rendering it defines the beginning of the region of the timeline to be rendered. 
244
245 To move the insertion point, you move the mouse inside the timebar \index{timebar} area and click with the left mouse button. 
246 You can use any place on the timebar to reposition the insertion point as long as that spot is not blocked
247 by In/Out point \index{in/out point} or a label \index{label}. 
248 In cut and paste editing mode, you can also change the position of the insertion point with a simple 
249 left mouse click in the timeline itself.
250 When moving the insertion point, the position is either aligned to frames or aligned to samples. 
251 For best results, \textit{Align cursor on frames} \index{Align cursor on frames} when editing a video track and \textit{Align to samples} \index{Align to samples} when editing audio. 
252 Use the pulldown \texttt{Settings$\rightarrow$Align cursor on frames} to change the alignment by
253 checking the box on for video and off for audio.
254
255
256 \subsection{Editing Modes}%
257 \label{sub:editing_modes}
258 \index{drag and drop}
259 \index{cut and paste}
260
261 There are 2 different editing modes for operations which affect how the insertion point and editing
262 on the timeline operate.  
263 There is:  \emph{drag and drop mode} and \emph{cut and paste mode}. 
264 The editing mode is determined by selecting the \texttt{arrow} \index{arrow}, or immediately to the right of the arrow,
265 the \texttt{I-beam} \index{i-beam} in the Transport and Buttons bar. In figure~\ref{fig:insertion-points} you can see the green colored highlight \protect\footnote{green is used in the default Cakewalk theme, but the highlight color will be different in other themes} on the arrow icon indicating that you are currently in \emph{drag and drop mode}.
266
267 \begin{figure}[htpb]
268         \centering
269         %\includegraphics[width=0.8\linewidth]{name.ext}
270         \begin{tikzpicture}[scale=1, transform shape]
271                 \node (img1) [yshift=0cm, xshift=0cm, rotate=0]
272                 {\includegraphics[width=0.6\linewidth]{insertion-point.png}};
273                 \node [yshift=-5mm, xshift=-1cm,anchor=east] at (img1.north west) (Pulldowns) {Pulldowns};
274                 \node [yshift=-10mm, xshift=-1cm,anchor=east] at (img1.north west) (Transport) {Transport \& Buttons Bar};
275                 \node [yshift=-15mm, xshift=-1cm,anchor=east] at (img1.north west) (Timebar) {Timebar};
276                 \node [yshift=-20mm, xshift=-1cm,anchor=east] at (img1.north west) (Title) {Media Title };
277                 \node [yshift=-28mm, xshift=-1cm,anchor=east] at (img1.north west) (Video) {Video Track};
278                 \node [yshift=-46mm, xshift=-1cm,anchor=east] at (img1.north west) (Audio) {Audio Track};
279                 \draw [->, line width=1mm] (Pulldowns) edge  ([yshift=-5mm] img1.north west);
280                 \draw [->, line width=1mm] (Transport) edge  ([yshift=-10mm] img1.north west);
281                 \draw [->, line width=1mm] (Timebar) edge    ([yshift=-15mm] img1.north west);
282                 \draw [->, line width=1mm] (Title) edge      ([yshift=-20mm] img1.north west);
283                 \draw [->, line width=1mm] (Video) edge      ([yshift=-28mm] img1.north west);
284                 \draw [->, line width=1mm] (Audio) edge      ([yshift=-46mm] img1.north west);
285         \end{tikzpicture}
286         
287         \caption{Insertion point is at 0:00:25:10 in Hr:Mn:Sec:Frames}
288         \label{fig:insertion-points}
289 \end{figure}
290
291 With the arrow highlighted for \emph{drag and drop mode}, a double click with the left mouse button in the timeline selects the edit the mouse pointer is over. 
292 Then dragging in the timeline repositions that edit and this can be used for moving effects,
293 changing the order of playlists, or moving video pieces around. 
294 There are numerous methods to cut and paste in \emph{drag and drop mode} by setting In/Out points to define
295 a selected region or using the Copy/Paste Behavior as outlined in~\ref{sub:copy_paste_behavior}. 
296 In this mode, clicking the LMB in the timeline does not reposition the \textit{Insertion Point}. 
297
298 \begin{figure}[htpb]
299         \centering
300         \includegraphics[width=0.4\linewidth]{i-beam.png}
301         \caption{I-beam + in/out  +  labels}
302         \label{fig:i-beam}
303 \end{figure}
304
305 When the I-beam is highlighted, you are in \emph{cut and paste mode}.
306 In cut and paste mode, clicking the LMB in the timeline does reposition the \textit{Insertion Point}. 
307 Double clicking in the timeline selects the entire edit the cursor is over, i.e.\ that column. 
308 Dragging in the timeline with the LMB pressed down, highlights a selected region and this is the region that is affected by cut
309 and paste operations.  It is also the playback range used for the subsequent playback operation. 
310 Holding down the Shift key while clicking in the timeline extends the highlighted region.
311
312 \subsection{In/Out Points}%
313 \label{sub:in_out_points}
314 \index{in/out point}
315
316 The In/Out points, displayed on the timebar \index{timebar} by [ and ] brackets,  can be set in either of the editing modes to define the selection.
317 In the timebar, a colored bar will show between these 2 brackets to better outline the area selected.
318 In \emph{drag and drop mode} \index{drag and drop}, they are an easy way to define a selected region.
319
320 It is important to remember that a highlighted area overrides the In/Out points. That is, if a highlighted area and In/Out points are both set, the highlighted area is changed by editing operations and the In/Out points are ignored. 
321 But if no region is highlighted, the In/Out points are used. 
322 To avoid confusion, use either highlighting or In/Out points but not both at the same time.
323
324 To set In/Out points, in the timebar move to the position where you want the Insertion point \index{insertion point} and click the In
325 point icon or one of the [ or < keys.
326 Then move the insertion point to a position after the In point and click the ] or > or the Out point icon. 
327 You can use these same icons or keyboard characters to toggle In/Out points on or off.
328
329 If you set the insertion point in another place when In/Out points are already set, that existing point will be
330 repositioned when you click the In/Out icon or keyboard equivalent. 
331 If you click on In/Out points while a region is highlighted, the insertion point will be ignored and In/Out points will be set at the beginning and at the end of the highlighted area.
332
333 When you select either the In or Out point on the timebar, the insertion point will move to that location. Note that when the insertion point is at the exact position of an In or Out point, the bracket will change
334 color making it easy to see that you are exactly at that spot.
335  
336 If only the In point is set, when you click the In point icon the In point will be deleted. 
337 If only the Out point is set, when you click the Out point icon the Out point will be deleted. 
338 Holding the Shift key while clicking on an In/Out point, the area between the insertion point and that
339 In/Out point will be highlighted or extended to that In/Out point if already highlighted. 
340
341 An easy way to turn off the In/Out points if both are set, is to double click on the [ icon in the toolbar. 
342 If you have already set the In and Out points, and then move the insertion point anywhere to the left of
343 the Out point, a LMB click on the [ icon will move the In point to the location of the insertion point.  In the same
344 manner if you move the insertion point anywhere to the right of the In point, a LMB click on the ] icon
345 will move the Out point to that new position.  However, if you move the insertion point for either the
346 In or Out point beyond what makes sense to designate In/Out points, the bracket you clicked on will be
347 moved to the insertion point and the other bracket will be eliminated.  That is obviously because the
348 In point has to come before the Out point on the timeline.
349
350 Some of the useful operations concerning the In/Out pointers are listed next.
351
352 \begin{description}
353     \item[Ctrl-KeyPad\#]  if In/Out set, \texttt{KP 2,3,5,6 + Enter}, play between In/Out points
354     \item[Shift-Ctrl]  loops play between In/Out points
355     \item[Click In/Out] while holding the LMB down, drags In/Out pointer where you drag to
356     \item[Shift-Ctrl] with a transport button (e.g. Fast Forward), loops play between In/Out points
357     \item[Ctrl-t]  clears both In/Out points
358 \end{description}
359
360 \subsection{Guide on timeline}%
361 \label{sub:guide_timeline}
362 \index{guide lines}
363
364 It can be useful to have visual reference points on the timeline to help you position edits relative to other tracks. For example in manual synchronization of audio and video. You can set two points on the timeline with In/Out points or by selecting a range in Cut and Paste mode. Now we use \texttt{Settings $\rightarrow$ Loop Playback} (Shift - L) to make two vertical green lines appear at the edges of the selection. Originally this function is used to limit the playback within this range, but we can take advantage of the fact that the green lines remain even when we move the insertion point or delete the In/Out points or deselect the range. So they can be used as a visual reference when we want to move the edits precisely. To delete these guides press \textit{Shift-L} again.
365
366 \subsection{Labels}%
367 \label{sub:labels}
368 \index{label}
369
370 Labels are used in order to set exact locations on the timeline that you want to be able to easily get to. 
371 To create a label, position the insertion point \index{insertion point} at a location and click on the label icon in the Transport
372 and Buttons bar. The new label is displayed on the timebar \index{timebar} as a down arrow at that location as shown in
373 figure~\ref{fig:i-beam}.  Whenever the insertion point is at the same position as a label, it changes
374 color to emphasize that it is exactly at that spot.
375 Labels make it so you can jump back and forth to exact marked locations on the timeline.
376 Use the lower case letter “\texttt{L}” as a shortcut for the label button.
377
378 You can use labels to reposition the insertion point when that label is selected. They are also
379 especially useful for moving along the timeline to the \textit{Next label} or \textit{Previous label}
380 with the buttons on the Transport and Buttons bar to the right of the Labels button.  
381 When moving along the timeline with the Next or Previous label buttons, if a label is out 
382 out of view the timeline will automatically be repositioned so that the label is visible.
383 If you perform a \textit{Next label} operation and there are no more, the insertion point
384 will go to the End position.  Conversely if you perform a \textit{Previous label} operation
385 and there are no more labels, the insertion point will go to the Home position. 
386 Keyboard shortcuts for label traversal are:
387
388 \begin{description}
389     \item[Ctrl-left] moves the insertion point to the previous label.
390     \item[Ctrl-right] moves the insertion point to the next label.
391 \end{description}
392
393 There is a  Label folder in the Resources window which has a list of every label and its exact location
394 where the label is. The location is based on the timestamp, frame number, or sample number depending on the selected Time Format of your timebar. 
395 You can edit, delete, or goto a label by clicking the RMB on that label in the Resources window which
396 brings up a popup menu with those options.  It can be quite helpful to \textit{edit} the label
397 and add a text string to help identify what the label represents.
398 In addition, RMB clicking the label symbol on the timebar brings up a textbox displaying the current
399 text string and allowing you to change it. If a Label has been given a name, simply mousing over
400 the label symbol on the timebar will display that string.
401
402 With labels you can also select regions:
403
404 \begin{description}
405     \item[Shift-Ctrl-left] highlights the area between the insertion point and the previous label.
406     \item[Shift-Ctrl-right] highlights the area between the insertion point and the next label.
407     \item[Double-clicking] on the timebar between two labels, highlights the area between the labels.      
408     \item[Shift-clicking] on a label, highlights the area between that label and the insertion point.
409         If an area is already highlighted, it extends the highlighted area up to that label.
410 \end{description}
411
412 If you LMB click the label button when an area is highlighted, labels are created at each end of the
413 highlighted area. 
414 When a label is selected, if you click on the label icon, the label will be deleted. 
415 To delete multiple labels, highlight that area, then use the \texttt{Edit $\rightarrow$ Clear $\rightarrow$ Clear labels}
416 function to delete them all. The same precedence rules apply to this operation as mentioned earlier.  That
417 is, if both In/Out points are set and there is a highlighted area also set, the highlighted area's 
418 labels will be cleared and not those between the In/Out points.
419
420 If you enable \emph{Edit labels} in the \textit{Settings} pulldown menu or disable the \emph{Lock labels from moving}
421 button on the Transport and Buttons bar, labels will be cut, copied or pasted along with the selected
422 area of the first armed track. 
423 In the same manner, if a selected area of media is spliced from the viewer to the timeline in a position 
424 before labels, the labels will be moved to the right on the timebar so that the label maintains its 
425 relative position to its edit. 
426 To prevent labels from moving on the timebar, enable the \emph{Lock labels from moving} icon or
427 disable the \emph{Edit labels} option under the \textit{Settings} pulldown.
428
429 \subsection{Color Title Bars and Assets}%
430 \label{sub:color_title_bars_and_assets}
431 \index{bar color}
432 \index{asset!color}
433 In order to visually aid in locating clips on the timeline that are from the same media file, you can have them auto-colored or self-colored.  Auto-color is
434 an automatic system to always color the files on the timeline when loaded. 
435 Self-color is a manual coloring requiring the user to take definitive action.
436 Use of this feature requires additional memory and cpu on every timeline redraw, therefore it is recommended that smaller computers leave it turned off.
437
438 For auto-color the color will be based on a hashed filename so that whenever you load this particular media, it will always have the same color on the title bar even if you use proxy.  
439 To enable auto-color go to \texttt{Settings $\rightarrow$ Preferences, Appearance tab} and check on \texttt{Autocolor assets}. You will see this in the Flags section
440 as shown in Figure~\ref{fig:settings}.  It is disabled by default.  
441 Each media will have a random muted color and there could easily be close duplicates as generated by the program algorithm.  There will be no total black, but some dark shades are possible.  
442
443 To change a specific clip to your own chosen color, right mouse button (RMB) over that clip and an Edits popup will be displayed.  
444 Choose the option \textit{Bar Color} to bring up the color picker and choose a color.   
445 You can also change the alpha value in the color picker and this alpha takes precedence over the current alpha slider bar value unless the color picker's alpha value is set to 1.0.   
446 The color will only change after you click on the checkmark.  
447 The \emph{Bar Color} option works in either Drag and Drop or Cut and Paste editing mode and also works if \textit{Autocolor assets} is not set.  
448 In Drag and Drop editing mode, if you select several clips (reference "Create a 
449 group" in ~\ref{sub:grouping_edits}) and then bring up the Edits popup with the right mouse button over a track, you can use the \emph{Bar Color} option to change all of those selected to the same color.
450
451 To go back to the default colors, uncheck \textit{Autocolor assets} in Preferences, but this does not affect the specially chosen self-colored ones as they are preserved.  
452 To change these individually or selectively, use the Edits popup \emph{Bar Color} option and click on \textit{Default} in the color picker window.  
453
454 And that’s not all!  
455 There is an \emph{alpha fader slider bar} \index{alpha slider} on the bottom of the main window on the right hand side of the Zoom Panel.  
456 With this alpha slider, you can colorize your video and audio tracks to either see only the color at 0.0 or see only the image at 1.0.  
457 This slider bar affects all colored areas of the Autocolor assets and the self-colored ones.  
458 In the case when a specifically changed edit alpha value is set in the color picker
459 to any value except 1, the slider bar will not affect that.  
460 Once you use the slider bar, it is activated so gets first shot at any keystrokes in the main window.  
461 You deactivate this by simply clicking in a different part of the main window.  
462
463 As long as we are on the subject of color, just a note that you can also change the \textit{Highlighting Inversion color} in \texttt{Settings $\rightarrow$ Preferences, Appearance tab}.  You can see this option in Figure~\ref{fig:settings} in the Color section.  
464 That setting defaults to white ($ffffff$) but sometimes this is a little bright so you can put any hex value in that suits you.
465
466 This image (figure~\ref{fig:autocolor_assets_alpha}a) shows an example of the Autocolor assets with alpha set to 0.0 so that you see only the color and no image.
467 In this image (figure~\ref{fig:autocolor_assets_alpha}b), the alpha is set to show the image
468 and waveforms with transluent colors.  The pink media file has been self-colored rather than the autocolor to make it easy to see.
469
470 \begin{figure}[htpb]
471     \centering
472     \begin{minipage}[h]{0.55\linewidth}
473         \center{\includegraphics[width=0.99\linewidth]{autocolor-assets_alpha0.png}} \\ a)
474     \end{minipage}
475     \begin{minipage}[h]{0.4\linewidth}
476         \center{\includegraphics[width=0.99\linewidth]{autocolor-assets_alpha1.png}} \\ b)
477     \end{minipage}
478     \caption{An example of the Autocolor assets}
479     \label{fig:autocolor_assets_alpha}
480 \end{figure}
481
482
483 \subsection{More about Pulldowns}%
484 \label{sub:more_about_pulldowns}
485
486 The main window pulldowns as pointed out in figure~\ref{fig:insertion-points} are quite obvious in their meaning and usage, so here is only a summary.  
487
488 \begin{description}
489     \item[File] \index{file} options for loading, saving, and rendering as described in other sections (\ref{cha:load_save_and_the_EDL}).
490     \item[Edit] \index{edit} edit functions; most of which have shortcuts that you will quickly learn (\ref{cha:editing}).
491     \item[Keyframes] keyframe options which are described in the Keyframe section (\ref{cha:keyframes}).
492     \item[Audio] \index{audio} audio functions such as \textit{Add track}, \textit{Attach effect}
493 and \textit{Attach transition}.  The \textit{Attach effect} is especially useful when
494 you need the effect to be applied to all related audio tracks as a \textit{Shared effect}
495 and is described as an alternative method of application in section \ref{sec:shared_effect_tracks}.
496     \item[Video] \index{video} video functions such as \textit{Add track, Default/Attach transition, Render effect}.
497     \item[Tracks] \index{track} move or delete tracks are the most often used plus \textit{Align Timecodes}.
498     \item[Settings] \index{settings} much of this is described elsewhere with the most frequently used to include
499 Preferences (\ref{cha:configuration_settings_preferences}), Format (\ref{cha:project_and_media_attributes}), 
500 Proxy and Transcode (\ref{sec:proxy_settings}), as well as the others.
501     \item[View] \index{view} for display or modifying asset parameters and values to include Fade, Speed, and Cameras.
502     \item[Window] \index{window} window manipulation functions.
503 \end{description}
504
505
506 \subsection{Window Layouts}%
507 \label{sub:window_layouts}
508  \index{window!layout}
509
510 If you like to use different window layouts than the default for certain scenarios, you can setup, save, and load 4 variations.   
511 First, position your \CGG{} windows where you want them to be and then use the \textit{Window} pulldown and choose \emph{Save layout}. Note the words \emph{Save layout} highlighted in Figure~\ref{fig:window_layouts}a with 4 names shown to the right and below of that highlight. 
512 To use the default name of \textit{Layout \#}, when the popup comes up, just click the green checkmark OK on the Layout popup menu.  
513 If you would like a specific name for your layout so you can remember what its best use case is,
514 keyin 1-8 english characters that are meaningful to you (english characters mean you can not use the German umlaut, the French accent, or the Spanish ñ). 
515 Legal characters are a-z, A-Z, 0-9, \_ (the underscore character) and a limit of 8 total.  
516 If you keyin more than 8, only the last 8 characters will be used.  
517 To rename a currently existing layout, use the \emph{Save layout} option again on the one to rename, and keyin a different name into the text box or leave blank for the default name (figure~\ref{fig:window_layouts}b).
518
519 \begin{figure}[htpb]
520     \centering
521     \begin{minipage}{.49\linewidth}
522         \center{\includegraphics[width=1\linewidth]{window_layout1.png}}\\ a)
523         %TODO High res image replace
524     \end{minipage}
525     \begin{minipage}{.49\linewidth}
526 %begin{latexonly}
527         \vspace{13ex}
528 %end{latexonly}
529         \center{\includegraphics[width=1\linewidth]{window_layout2.png}}\\ b)
530         %TODO Alpha channel
531     \end{minipage}
532     \caption{Window Layouts}
533     \label{fig:window_layouts}
534 \end{figure}
535
536 The files containing the coordinates for your layouts will automatically be saved in the \texttt{\$HOME/.bcast5} directory as \texttt{layout\#\_rc} or \texttt{layout\#\_8chars\_rc}.
537
538 To use the desired layout, keyin the shortcut or use the \textit{Window} pulldown and choose \emph{Load layout} and then make your choice. It is very beneficial to 
539 learn the the associated shortcut layouts (Ctrl+Shift+Fx where x is 1,2,3, or 4)
540 because they can be executed from any of the 4 windows instead of just the main
541 timeline window.
542
543 \subsection{Multi-Pane Support}%
544 \label{sub:multipane_support}
545  \index{multi-pane}
546
547 The main \CGG{} edit window holds the Track Canvas which can be divided into 4 panes of track data: 1 or 2 vertical panes and/or 1 or 2 horizontal panes.  To split the track, use the \textit{Window} pulldown, and then click on \textit{Split X} or \textit{Split Y} depending on how you wish to split the track.  Alternatively, the canvas pane types can be changed using keys \textit{<Ctrl-1>} for toggle split horizontal or \textit{<Ctrl-2>} for toggle split vertical.  Or the track can be split into panes by using the \textit{+ widget} in the lower right hand corner of the track canvas.  Once the track has been divided, you can use the + widget shortcut or the drag bars to change the size of the panes.
548
549 Multi-Pane, or split screen, allows you to look at the first part of a movie at the same time as a part that is a long ways away on the timeline which would have been off the screen.  By having multiple panes, you can see the 2 parts you want to look at simultaneously and drag/drop easily between the 2.  Also, the \textit{X pane split} is extremely convenient for laptop users and computer monitors with small screens since it can be used with horizontal scrolling with the mouse wheel + Ctrl.  The \textit{Y-pane split} makes it easy to see 2 simultaneous drag and drop zones when you have lots of tracks (figure~\ref{fig:multi-pane01}).
550
551 \begin{figure}[htpb]
552         \centering
553         \includegraphics[width=1.0\linewidth]{multi-pane01.png}
554         \caption{Shown are 4 panes that have split in X and Y the main track canvas}
555         \label{fig:multi-pane01}
556 \end{figure}
557
558
559 \subsection{Just Playing!}%
560 \label{sub:just_playing_}
561 What if you are just using \CGG{} to play media and listen to tunes? 
562 After loading your media, just hit the space bar to start playing and then again to stop playing.  
563 Other than that, use the transport buttons on the top bar of the Program window.  
564 Other ways to \textit{play around} are described next. 
565
566 \subsubsection*{Repeat Play / Looping Method}%
567 \label{ssub:repeat_play_looping_method}
568  \index{transport buttons}
569
570 There are 2 methods for repeat play or looping on the timeline and 1 method for both the Compositor and the Viewer.  This works in conjunction with any of the transport buttons or shortcuts in either forward or reverse as usual.  The 1 exception is that the Shift key can not be used to either add or subtract audio within the repeat area.
571
572 \textit{Method 1:} Shift-L on the Timeline, repeats the selection per the algorithm outlined next.
573   
574 When setup, long green lines are displayed across the entire set of tracks which shows the start and end of the loop.
575 \begin{enumerate}
576     \item  Highlighted selection repeats loop and takes precedence over all other possibilities.  
577         If the cursor is before the highlighted area, it will play up to the area and then repeat the highlighted section.  
578         If the cursor is after the highlighted section, play will start at the beginning until you get to the
579         highlighted section and then repeat.
580     \item  When both In and Out pointers are set, it repeats the section between [ and ].
581     \item  If only one of the In or Out pointers is set, it loops the whole media.
582 \end{enumerate}
583
584 \textit{Method 2:} Ctrl+Shift+transport button on the Timeline, Viewer, and Compositor
585
586 \begin{enumerate}
587     \item Repeats entire media if no In or Out pointer set.
588     \item  In and Out pointer set, repeats area between pointers.
589     \item  Only In pointer set, repeats from In to end of media.
590 \end{enumerate}
591
592 \subsubsection*{Last Play Position Memory}%
593 \label{ssub:last_play_position_memory}
594
595
596 When you play media, the start/end playback positions are saved as if they had been made into temporary labels.  
597 They appear on the timeline as purple/yellow hairline markers representing the last start/end labels for the last playback. 
598 They can be addressed as if they are label markers using:
599
600 \begin{description}
601     \item[Ctrl$\leftarrow$]   tab to the label before the cursor, that is \textit{play start}
602     \item[Ctrl$\rightarrow$]   tab to the label after the cursor, that is \textit{play stop}
603 \end{description}
604
605
606 You can use these markers for re-selection.  
607 Additionally, the selection region can be expanded by \textit{pushing} the markers using single frame playback.  
608 Use frame reverse (\texttt{keypad 4}) to push the start play marker backward, or use frame forward (\texttt{keypad 1}) to push the end play marker forward.
609
610 Another handy feature is to use the combination of Ctrl-shift-arrow (left or right) to select the media from the cursor position (red hairline) to the start or end marker by \textit{tabbing} to the label markers.  
611 For example, tab to the beginning of the previous play region using Ctrl-left-arrow to move the cursor to the beginning of last play, then press Ctrl-Shift-right-arrow to tab to the end of the playback region. 
612 Now you can clip/play/expand or edit the previous playback selection.
613
614 \begin{description}
615     \item[Ctrl SHIFT$\rightarrow$]        tab cursor to label right of cursor position and expand selection
616     \item[Ctrl SHIFT$\leftarrow$]         tab cursor to label left of cursor position and expand selection
617 \end{description}
618
619
620 \subsubsection*{Playback Speed Automation Support}%
621 \label{ssub:playback_speed_automation_support}
622  \index{autos!speed}
623
624 The speed automation causes the playback sampling rate to increase or decrease to a period controlled by the speed automation curve.  
625 This can make playback speed-up or slow-down according to the scaled sampling rate, as \textit{time is multiplied by speed} (Speed $\times$ Unit\_rate). For more information on changing
626 the speed, read the section on Speed Automation~\ref{sec:speed_fade_automation_gang}.
627
628 \subsubsection*{Alternative to using Numeric Keypad for Playing}%
629 \label{ssub:alternative_to_using_numeric_keypad_for_playing}
630  \index{keypad}
631
632
633 For the keyboards without a numeric keypad or if you prefer to use keys closer to where you normally type, there are alternative keys for the play/transport functions.  These are listed below.
634
635 \begin{tabular}{lcl}
636         Alt + m&=&stop playback\\
637
638         Alt + j&=&forward single frame\\
639
640         Alt + k&=&forward slow playback\\
641
642         Alt + l&=&forward normal playback\\
643
644         Alt + ;&=&forward fast playback\\
645
646         Alt + u&=&reverse single frame\\
647
648         Alt + i&=&reverse slow playback\\
649
650         Alt + o&=&reverse normal playback\\
651
652         Alt + p&=&reverse fast playback\\
653 \end{tabular}
654 \begin{minipage}{.45\linewidth}
655 + Shift key, single frame forward/reverse will include audio; all others
656 will not include audio.
657 \vspace{1ex}
658
659 + Shift + Ctrl, results in the transport function operating only between the in/out pointers.
660 \end{minipage}
661
662 \section{Compositor Window}%
663 \label{sec:compositor_window}
664  \index{compositor!window}
665
666 \begin{figure}[htpb]
667     \centering
668     \includegraphics[width=0.99\linewidth]{compositor_window.png}
669     \caption{Left hand side are the toolbar functions / bottom bar has many control functions}
670     \label{fig:compositor_window}
671 \end{figure}
672
673 The Compositor window (figure~\ref{fig:compositor_window}) is used to display the timeline output.  Playing and moving along the timeline video in the Program window shows in the Compositor window what the current image is.  Here is where many compositing operations are performed that can change what the timeline will look like and that is why it is called \textit{canvas}. The canvas dimesions correspond, by default, to the W/H values set in the project (\textit{Set Format} window). Canvas size = output size = project size.
674
675 When enabled, you can simply click the LMB in the Compositor window to start and stop play. You can zoom in and out to see small details, pan with the scrollbars, lock the window to prevent changes, add masks, and make changes with the Projector and Camera function operators. These will be explained in more detail in the following sections.
676
677 \subsection{Compositor Controls}%
678 \label{sub:compositor_controls}
679 \index{compositor!controls}
680
681 On the bottom of the window, there are many
682 of the same transport buttons \index{transport buttons} and controls that are available in the Program window.
683 They work the same as in the Program window and also have tooltips that are visible 
684 when you mouse over each of the icons so their use is fairly obvious.  However,
685 of particular note is the button \textit{Click to play} \index{click to play} which is described in~\ref{sub:click_to_play_in_viewer_and_compositor}.  Next is the \textit{Videoscope} \index{videoscope} button which is used to enable the scopes window
686 without having to apply the filter to the tracks/edits.
687
688 Next to all of these controls all the way to the right side, there is a \textit{zoom menu} \index{zoom!menu} and a \textit{tally light}.  The \textit{zoom menu} has a pulldown with different settings that you can choose from
689 or you can just use the tumbler arrows to the right. Generally when just getting started, you
690 will be using the default \textit{Auto} option.  The window size is not changed, but rather
691 the size of the video itself. In addition there are many shortcuts for zooming that you
692 will find in the Shortcuts chapter (\ref{cha:shortcuts}).
693
694 Using a RMB click in the compositor window brings up a menu with several options \index{compositor!RMB options}.  One of these
695 is \emph{Resize Window} which allows for resizing the entire window instead of just the video
696 and if you highlight that, you can choose from several variations for the window size. 
697 Other available options include self-explanatory ones of \emph{Fullscreen} with "f" as a toggle
698 to go to fullscreen and to revert to non-fullscreen and \emph{Zoom Auto}. 
699 As you would expect, whenever the video is zoomed so that only part of the image is visible
700 in the window, scrollbars are automatically added as needed on the bottom, the right hand 
701 side, or both.
702 Other options include \emph{Reset camera} and \emph{Reset projector} which obviously are used
703 to reset the camera and the projector (reference~\ref{sub:camera_and_projector}).  And
704 \emph{Camera/Projector keyframe} will create a keyframe at that point on the timeline for
705 X,Y, and Z without the requirement of being in \textit{Automatic Keyframe Mode}.  More 
706 information is described in the section \nameref{sec:compositor_keyframes}.
707 The \emph{Hide controls/Show controls} option is great for hiding the left hand toolbar and
708 bottom set of controls for a cleaner look. 
709
710 Next to the zoom tumbler arrows, is a \textit{tally light} that will be filled in with some color
711 (often red or blue) when a rendering operation
712 is taking place \index{rendering!operation light}. This is especially helpful when loading a very large video so you know
713 when it is finished loading.  You should pay attention to this \textit{tally light} when performing
714 a particularly time-consuming operation so that you do not keep executing more operations
715 that just have to wait until completion of that CPU intensive operation.  Also, you should look
716 to see if the light is on before assuming that \CGG{} is hung up.
717
718 When the window is unlocked, meaning that it is not in \textit{Protect video from changes} mode on the
719 toolbar, MMB clicking and dragging anywhere in the video pans the view.  Panning can also
720 be accomplished with the bottom and right hand side scroll bars when displayed.
721
722 \subsection{Compositor Toolbar}%
723 \label{sub:compositor_toolbar}
724 \index{compositor!toolbar}
725
726 On the left hand side of the Compositor window, there is a toolbar with several icons that
727 provide functions for viewing and compositing the video. Each of these operational features 
728 will be described in more detail next. 
729 \begin{description}
730     \item[Protect video from changes] this option makes it possible to disable changes to the
731 compositor output when clicking on the Compositor window. It allows for using the
732 \textit{Click to play} button (when enabled) for simply starting and stopping play.  It helps
733 to prevent an accidental click from making unwanted changes. When you enable this option, any
734 of the other enabled tools will automatically be disabled.
735
736      \item[Zoom view / magnifying glass] \index{zoom!slider} when enabled, the \textit{Zoom view} immediately results
737 in the addition of a zoom slider for fine viewing.  
738 The vertically oriented \textit{zoom slider} will be displayed underneath the last icon of the toolbar and extends
739 to almost the end of the toolbar.
740 The slider allows for adjusting the amount of zoom at any level between 0.01 and 100 based on a logarithmic scale.  
741
742 When using the zoom slider, the number by which the view is zoomed can be seen in the textbox 
743 on the bottom controls where the \% zoom is located.  
744 The zoom slider size is in the form of \textit{times}, such as $\times$0.82 which indicates that the picture is zoomed to $\frac{82}{100}^{th}$ of the original size as seen in the \texttt{Settings $\rightarrow$ Format} menu.  
745 Once you have set the zoom to the desired size, use the vertical and horizontal scroll bars to position the view as needed.
746 As mentioned earlier, this
747 variety of zoom only affects the video and not the resizing of the Compositor window.  After
748 utilizing this slider bar for zooming around, you may want to switch back to \textit{Auto} 
749 using the controls on the bottom of the window.
750 This slider bar is also displayed
751 when you click on the icons for \textit{Adjust camera automation} or \textit{Adjust projector automation}.  
752
753 The Compositor window image in figure~\ref{fig:zoom_slider} shows the zoom slider bar with rectangular shaped slider about in the middle.  Note that the magnifying glass is enabled which
754 automatically pops-up the slider and the \textit{Protect video from changes} is disabled.  Also note that
755 there is a scroll bar on the bottom and right side of the image since the image at this magnification
756 does not fit in the window.
757 The Controls zoom textbox shows $\times0.82$ size.  
758 \end{description}
759
760 \begin{figure}[htpb]
761     \centering
762     \includegraphics[width=0.99\linewidth]{zoom_slider.png}
763     \caption{Compositor window zoom slider bar and scroll bars}
764     \label{fig:zoom_slider}
765 \end{figure}
766 \begin{description}
767     \item[Edit mask] \index{mask} brings up a mask editing menu with many versatile options as
768 described in great detail later in this section (\ref{sub:masks}). You may also have to click on
769 \textit{Show tool info} to popup the menu depending on whether or not you dismissed that window previously.
770     \item[Ruler] \index{ruler} this can be a handy tool to get the X,Y coordinates of an exact point or to 
771 measure the distance between 2 points. To use the \textit{Ruler}, move the mouse on the video to
772 get to the desired spot - these X,Y coordinates will be displayed in the \textit{Current} text
773 box.  Clicking the LMB creates Point 1 and then continue to hold down the LMB so that a ruler line is created between
774 this Point 1 and the stopping Point 2.  \textit{Deltas} is the X,Y difference between the 2 points;
775 \textit{Distance} is the number of pixels between the 2 points; and \textit{Angle} is the angle in degrees of the ruler line.  
776 In Figure~\ref{fig:safe_regions} you can see the Ruler menu on the right side of the Compositor window.
777
778 Holding down the Ctrl key while dragging with the LMB on one of the points, will
779 ensure that the line is always at a multiple of a 45 degree angle.  Holding down the Alt key while
780 dragging with the LMB on any of the points, will translate the ruler line to another place on 
781 the video while maintaining its length and angle. For some desktop window managers, such as 
782 \textit{UbuntuStudio 16.4} and \textit{Arch}, the Alt key is already in use by the Operating System
783 so you will have to use Alt+Ctrl instead.
784 If you dismiss the Ruler menu, click on
785 \textit{Show tool info} to get the menu to popup again.  
786     \item[Adjust camera automation] \index{camera} the camera brings up the camera editing tool. Enable \textit{Show tool info} if the popup menu does not appear. More detail for usage is provided in the subsequent
787 section~\ref{sub:camera_and_projector}.
788     \item[Adjust projector automation] \index{projector} the projector brings up the projector editing tool. Enable \textit{Show tool info} to get the menu to popup again. More detail for usage is provided in the
789 subsequent section~\ref{sub:camera_and_projector}.
790     \item[Crop a layer or output] \index{crop} this is a cropping tool used to reduce the visible picture area.
791 More detail for usage is provided in a 
792 subsequent paragraph (\ref{sub:cropping}).  There is also a Crop \& Position plugin that provides
793 a different set of capabilities described in~\ref{sub:crop_position}.
794     Enable \textit{Show tool info} to get the menu to popup if it does not come
795 up automatically.
796     \item[Get color / eyedropper] \index{eyedropper} brings up the eyedropper used to detect the color at a
797 particular spot.  Enable the \textit{Show tool info} if the Color popup menu does not come up 
798 automatically or if that menu was accidentally dismissed.  Click on a specific color in the video
799 output with the LMB to see the selected color. You can then use that color's 
800 value to be applied to some effects depending on how the effect handles the eyedropper.  If you set the \textit{Radius} to a larger number, a square appears
801 around the cross cursor and an average value of the color will be the result.
802 If you \textit{Use maximum}, instead of an average value of the color, the result
803 will be the maximum of all values within that square.
804     \item[Show tool info] \index{tool info} this tool button is used in conjunction with the other tools on the
805 compositor's toolbar. You only need to click on this if one of these tools popup menu does not
806 come up or has been dismissed - Mask, Ruler, Camera, Projector, Crop, or Eyedropper tools.
807 You can also use it when highlighted to dismiss the highlighted tool's dialog box.
808 It is not needed for \textit{Protect video from changes}, \textit{Zoom view}, and \textit{Show safe regions} since they have
809 no dialog popup menus.
810
811 \begin{figure}[htpb]
812     \centering
813     \includegraphics[width=0.9\linewidth]{safe_regions.png}
814     \caption{Note the black outlines showing the safe regions. Also note the Ruler menu}
815     \label{fig:safe_regions}
816 \end{figure}
817
818     \item[Show safe regions] \index{safe region} draws 2 outlines to display the safe regions in the video as you
819 can see in Figure~\ref{fig:safe_regions}.
820 On some particular TVs/monitors/displays, the borders of the image are cut off and that
821 cut off section might not be as square as it appears in the compositor window. 
822 These are especially useful if the device for the output display is an older model TV\@.
823 The outside largest outline is the \textit{action safe overlay}; whereas the inside smallest
824 outline is the \textit{title safe overlay}.
825
826 Using the \textit{Show safe regions} has no affect on the rendered output.
827 The purpose of showing the borders is to make it easy to see where it might be cut off.  This
828 area outside the safe region can then be used as
829 a scratch or vertical blanking space.  Enabling the safe regions makes it really
830 easy to see these borders so that you can make sure 
831 titles are inside the inner outline and actions are inside the outer outline.
832
833 \end{description}
834
835 \subsection{Compositing}%
836 \label{sub:compositing}
837 \index{compositing}
838
839 Much of the editing in \CGG{} involves \textit{compositing} which is the combining of visual
840 elements from different sources into single images.  This includes such things as 
841 speeding up and slowing down the video, changing the resolution, creating a split screen, and fading in and out.
842 Compositing operations are done on the timeline and in the Compositor window (canvas) using various
843 operations and other compositing attributes that are available in the Resources window.
844 When \CGG{} is performing a compositing operation it plays back through the
845 compositing engine, but when not, it uses the fastest decoder that it has.
846
847 \subsection{The Temporary, Track and Output Sizes}%
848 \label{sub:track_and_output_sizes}
849
850 This section explains a few things which help to understand Compositing - especially with relation
851 to the camera, effects, and the projector.
852
853 \subsubsection*{The Temporary}%
854 \label{ssub:output_size}
855 \index{temporary}
856
857 \CGG{}'s compositing routines use a \textit{temporary} which is a single frame of video in memory where graphics processing takes place. By default the size of the temporary is that of the project ($W \times H$); i.e., the output size; i.e, the canvas size. But if the tracks on the timeline have various sizes different from those of the project, then the temporary will take the size of the active track (viewport = green border). We can also change the size of the viewport using the Camera tool, as well as pans and zooms the temporary displayed in it. Effects are processed in the temporary and as such are affected by the temporary size.  In the case of the camera, its viewport is the temporary size.  The size of the temporary and of the output in the compositing pipeline can be different and vary for any particular frame. However, projectors are rendered to the output and so are affected by the output size. The temporary is the basis on which the Projector tool acts to display the canvas on the Compositor window. The canvas always has the size of the project, although with the projector we can make pans and resizes of the red border inside it. When the temporary is smaller than the output, the temporary will have blank borders around the region in the output.  When the temporary is larger than the output, it will be cropped.
858
859 \subsubsection*{Track and Output size}%
860 \label{ssub:track_size}
861 \index{track!size}
862 \index{output size}
863
864 The \textit{Track size} is used to define the temporary size with each track having a different size (viewports). It also serves to conform the input media to a chosen format (aspect ratio). So each track can have a different format (viewport).
865 You can see or set the track size by RMB click on a track and then select \emph{Resize Track} to resize
866 the track to any size. Or select \emph{Match output size} to make the track the same size as the
867 output. Or from the Resources window, RMB on a video media and choose \textit{Info} and then \textit{Resize}. When a track is resized then what it looks like on the compositor changes.  The relationship
868 between the track and the project's output size makes it possible to magnify or reduce the size of
869 a track in regards to the final output. This feature means you can create visual effects such as different aspect ratios, adjust split screens, zooms, and pans in the compositor.
870
871 The \textit{Output size} can be set in \texttt{File $\rightarrow$ New} when creating a new project,
872 or by using \texttt{Settings $\rightarrow$ Format}, or in the Resources window with RMB click on
873 a video asset and choosing \texttt{Match $\rightarrow$ Match project size}. When you \emph{Match project size}, you
874 are conforming the output to the asset. To change the size and aspect ratio of the output (Projector) we have to change the whole project, which will alter all the tracks in the timeline. Once you have set the output size in 1 of these 3 ways,
875 any newly created tracks will conform to the specified output size.  When rendering, the project's
876 output size is the final video track size where the temporary pipeline is rendered into.
877
878 To clarify, let's take an example.
879
880 If we load a media (M) into Resources and adjust the size of the project to the size of M, we will get the canvas size of the media $W_{M} \times H_{M}$). We can see in the Set Format window that the project's default values ($W \times H$) have changed to those of M ($W_{M} \times H_{M}$). The tracks on the timeline can have different sizes, but what we will see on the canvas, that is, in the Compositor window, is always the output size i.e. the size of the project. Tracks with smaller sizes will be seen with black bands; tracks with larger sizes will be cropped. Each track has its own size but we will see it inserted in the output size. If we change the output size the tracks will not change, remaining in their original size. We can only change the size of the tracks by manually acting on each one in the ways seen before. Finally, if we create a new track in a project of size $W \times H$, it will assume the size of the project automatically.
881
882 \subsubsection*{Aspect Ratio (Theory)}%
883 \label{ssub:aspect_ratio_theory}
884 \index{aspect ratio}
885 \index{PAR, DAR, SAR}
886
887 The aspect ratio is the ratio of the sides of the frame (\textit{Width} and \textit{Height}). For example, classically broadcast TV was 4:3 (= 1.33), whereas today it has changed to 16:9 (= 1.78); in cinema we use the 35 mm aspect ratio of 1.375 (Academy aperture), academy flat (1.85 or widescreen) but even more so the super 35 mm (from 1.33 to 2.39). There are also anamorphic formats, i.e. that have no square pixels, like Cinemascope (2.39). The projection must be normalized to have an undistorted view.
888
889 From the film or digital sensors of the cameras, we can extract any frame size we want. We are talking about \textit{viewports}, which we will examine shortly. Also important is the output of the video that will be rendered, because it is what we will see at the cinema, or on TV, or on the monitor of the PC, tablet or smartphone. Referring to figure~\ref{fig:temporary-01}, you can see these two possibilities: with the \textit{Camera} tool you choose the size and aspect ratio of the source file (regardless of the original size); while with the \textit{Projector} tool you choose the size and aspect ratio of the output. Other ways of changing the aspect ratio of assets or tracks we have seen previously (\texttt{Resize track}; \texttt{Match Output Size}; \texttt{Resize asset}). A method of changing the size of the entire project (canvas) is via the \texttt{Set Format} window. The following formula is used to vary the aspect ratio:
890
891 \qquad $\frac{W}{H} =$ frame aspect ratio ($\frac{pixels}{pixels}$)
892
893 For example to obtain an aspect ratio of Super 35 mm (2.35) starting from a FullHD file (1920x1080) whose base extension (1920) we want to keep:
894
895 \qquad $\frac{1920}{H} = 2.35$
896
897 from which: $H = 816$ pixels
898
899 At the same time as changing the \textit{Height} parameter we also need to set \texttt{Display Aspect rati}o to 2.35. In fact, the parameters in Canvas Size are not related to those in Display Aspect ratio, unless we keep the \texttt{Auto} option checked, and we need to set both before we click on the \texttt{Apply} button. To set the aspect ratio to 2.35:1 we can choose from the drop-down menu the value 2.35 or set the value directly in the two input fields. Or again, it can be done automatically via the Auto option. Finally we can click on the Apply button to complete the calculations. Now we have arrived at the desired result: typical Super 35 mm dimensions and aspect ratio, although starting from a 16:9 FullHD. The new canvas, however, lost the pixels of a part of the initial video (crop), to be precise $1080 - 816 = 264$ lines of pixels from top and bottom.
900
901 \CGG{} allows you to vary the input and output aspect ratio in the ways indicated in the previous section: by varying the pixels of the sides (Width/Height) or by setting a multiplication coefficient (W/H Ratio; in this example: placing $H Ratio = 816 : 1080 = 0.7556$) which performs the calculation automatically. If you set \textit{W Ratio} and \textit{H Ratio} at the same time with the same values, they work as multipliers and you get a resizing of the canvas, without altering the initial aspect ratio. If you change them to two different values or change only one of the two parameters, leaving the other at 1, you get an anamorphic video, with the pixels no longer being square (1:1) but becoming rectangular, deforming the image. If you use a non-standard aspect ratio, this has impact on other areas like titles, included stills and included non-anamorphotic footage. To avoid anamorphosis, the \texttt{Display Aspect ratio} must also be adjusted at the same time, for example, with the Auto option. \textit{Anamorphic} format is a complex field that is discussed
902 in Andrea's paper: {\small \url{https://cinelerra-gg.org/download/Anamorphic.pdf}}.
903 as well as in the Raffaella Traniello's guide: {\small \url{http://www.g-raffa.eu/Cinelerra/HOWTO/anamorphic.html}}.
904
905 \subsection{Camera and Projector}%
906 \label{sub:camera_and_projector}
907 \index{camera}
908 \index{projector}
909
910 In the compositor window, \textit{Adjust camera automation} and \textit{Adjust projector automation}
911 are editing tools to control operation of the camera and projector.  In \CGG{}'s compositing
912 pipeline, the camera determines where in the source the \textit{temporary} is copied from while
913 the projector determines where in the output the \textit{temporary} is copied to
914 (figure~\ref{fig:temporary-01}). 
915
916 \begin{figure}[htpb]
917     \centering
918     \includegraphics[width=0.8\linewidth]{temporary-01.pdf}
919     \caption{Compositing pipeline}
920     \label{fig:temporary-01}
921 \end{figure}
922
923 In compositing, each frame can be changed using various options and plugins, such as
924 a color correction plugin (figure~\ref{fig:camera_and_projector}).  After the image has been
925 modified, the final image is projected to the compositor so that you now have a changed original.
926
927 \begin{figure}[htpb]
928     \centering
929     \includegraphics[width=0.8\linewidth]{camera_and_projector.pdf}
930     \caption{Color3way on Temporary}
931     \label{fig:camera_and_projector}
932 \end{figure}
933
934 When editing the camera and projector in the compositing window, the affected track will be the
935 first track that is armed.  If there are multiple video tracks, you can select one specific track
936 for editing with a LMB click on the \textit{Arm track} icon of the desired track. This is called
937 "solo" the track. To reverse this solo-ing, LMB click on the icon again. 
938
939 \subsubsection*{Projector Compositing}%
940 \label{ssub:projector_compositing}
941 \index{projector}
942
943 The purpose of the \textit{projector} is to composite several sources from various tracks into one
944 output track.  The projector alignment frame is the same as the camera's viewport, except that it
945 shows where to put the contents of each temporary on the output canvas.  To get into projector
946 editing mode, click on the \textit{Adjust projector automation} icon in the Compositor toolbar. You
947 will then see red border lines surrounding the image and 2 diagonal lines criss-crossing in the 
948 middle, displayed in the video window.  The red outline indicates the size of the frame that will be
949 sent to the Output. You can easily drag the box with LMB, moving the frame in $x$ and $y$ directions.
950 When moving along the $z-axis$ (i.e.\ the zoom, with SHIFT+Drag) the box exactly follows the movement
951 and the size of the frame. After you position the video with the projector, you may next want to
952 \textit{Adjust camera automation}.
953
954 \subsubsection*{The Viewport}%
955 \label{ssub:viewport}
956 \index{viewport}
957
958 The \textit{viewport} is a window on the camera that frames the area of source video. The size of the current track is used for the initial size of the viewport. A smaller viewport, for example ($640\times480$), captures a smaller area; whereas a larger viewport of ($800\times600$) captures a larger area.  If the captured area is larger than the source video, the empty spaces will be automatically filled with blanks.  To change the size and aspect ratio of the viewport (Camera \index{camera}) of a single track, right-click on the track in the timeline and choose Resize Track. Here we can vary the height and base of the viewport in pixels or choose the multiplication coefficient for each side (Scale). With OK we will see the change in the Compositor window with the new dimensions reflected in the green box. We can have different size viewports for each video track on the timeline. To go back, reset the viewport to the original value. After the viewport is defined, the camera needs to be placed right above the area of interest in the source video. Operations to control the location of the camera are as follows:
959
960 \begin{enumerate}
961     \item  In the compositor window you should see the selected track.
962     \item  LMB click on the \textit{Adjust camera automation} to bring up the editing menu and the 
963 green and yellow colored outlines.
964     \item  Use the LMB to drag the video over the display in the compositor window to the desired
965 placement.
966 \end{enumerate}
967
968 When you drag over the viewport in the compositor window, it looks like you are moving the camera
969 with the mouse.  The viewport moves in the same manner.
970
971 \subsubsection*{Camera Compositing}%
972 \label{ssub:camera_compositing}
973 \index{camera}
974
975 Select the camera button to enable camera editing mode. 
976 In this mode, the guide box shows where the camera position is in relation to past and future camera positions but not where it is in relation to the source video. 
977 The green box is the Viewport; at the beginning it coincides with the size of the source frame. If we move the viewport by dragging it with LMB (moving it in $x/y$), the green box remains fixed to the original size but the frame is moved to the new position.  A yellow frame will appear along the edges of the frame to indicate the displacement with respect to the green box; this behavior differs from that seen for the Projector. Even if we click on the $z-axis$ (SHIFT + Drag, equivalent to the zoom), the frame narrows or widens, moving behind the yellow frame.
978
979 \subsubsection*{Camera and Projector Menu}%
980 \label{ssub:camera_and_projector_menu}
981 \index{tool info}
982 \index{camera}
983 \index{projector}
984
985 The camera and projector have shortcut operations that do not appear in the popup menu and are not represented in video overlays. 
986 These are accessed in the \emph{Show tool info} window.
987 Most operations in the Compositor window have a tool window which is enabled by activating the question mark icon (figure~\ref{fig:camera_tool}).
988
989 \begin{figure}[htpb]
990         \centering
991         \includegraphics[width=0.8\linewidth]{camera_tool.png}
992         \caption{Camera and Projector tool}
993         \label{fig:camera_tool}
994 \end{figure}
995
996 In the \textit{Position} section you can change the $X$, $Y$ and $Z$ coordinates. By either tumbling or entering text directly or by using the slider, the camera and projector can be precisely positioned. There is also a reference to the color of the curve as we see it on the timeline. You can also define the \textit{range} of action which by default is [-100 to 100]. By pressing the Reset button for each coordinate, or the global Reset button, the range is automatically brought to the project size value (HD; 4k; etc), which are usually the most useful limits. Note that the range can also be changed in the \textit{Program} window, in the \textit{zoom bar}, where there are similar input fields to enter the chosen limits.
997
998 In the \textit{Justify} section we can use automatic positioning in the 6 standard coordinates: Left, Horizontal, Right, Top, Center and Bottom.
999
1000 The translation effect allows simultaneous aspect ratio conversion and reduction but is easier to use if the reduced video is put in the upper left of the \textit{temporary} instead of in the center. 
1001 The track size is set to the original size of the video and the camera is centered. 
1002 The output size is set to the reduced size of the video. 
1003 Without any effects, this produces just the cropped center portion of the video in the output.
1004
1005 The translation effect is dropped onto the video track. The input dimensions of the translation effect are set to the original size and the output dimensions are set to the reduced size. 
1006 To put the reduced video in the center subsection that the projector shows would require offsetting out $X$ and out $Y$ by a complicated calculation. 
1007 Instead, we leave out $X$ and out $Y$ at 0 and use the projector's tool window. 
1008 By selecting left justify and top justify, the projector displays the reduced image from the top left corner of the \textit{temporary} in the center of the output.
1009
1010 In the \textit{Curve type} section we can choose between various interpolation algorithms that determine the curve type \index{curve type}:
1011
1012 \begin{description}
1013         \item[smooth:] bezier interpolation which are flat at the endpts
1014         \item[linear:] piecewise linear curve.
1015         \item[tangent:] bezier interpolation with collinear endpts in a specified line.
1016         \item[free:] piecewise bezier, if there is such a thing.
1017         \item[bump:] has 2 values, one viewed from the left/right, discontinuous.
1018 \end{description}
1019
1020 In the \textit{Keyframe} section we can create new keyframes and set them as Bump autos (\textit{Right/Left edges} and \textit{Span} buttons). For further details see \nameref{sec:bump_autos}.
1021
1022 \subsubsection*{Reset to Default}%
1023 \label{ssub:reset_default}
1024
1025 In the compositing window, there is a popup menu of options for the camera and projector. Right click over the video portion of the compositing window to bring up the menu:
1026
1027 \textit{Reset Camera}: causes the camera to return to the center position.
1028         
1029 \textit{Reset Projector}: causes the projector to return to the center.
1030
1031 \subsubsection*{Use Case: Interaction Between Camera And Projector \protect\footnote{Example provided by Sam. The relative video is located at: \url{https://youtu.be/ZQaLZiYY1lg}}}%
1032 \label{ssub:use_case_interaction_camera_projector}
1033 \index{camera}
1034 \index{projector}
1035
1036 \begin{enumerate}
1037     \item Start by shrinking the projector to $z=0.500$ ($\frac{1}{4}$ of the original frame).
1038     \item The next step is to switch to the camera and note that the green box has assumed the size of the projector, i.e.\ the red box. The value of $z$ of the camera is always equal to $1.000$ (default) but the frame is $\frac{1}{4}$ of the original frame, i.e.\ it has the size of the projector that has $z=0.500$. This is the current viewport size.
1039     \item You enlarge the room bringing $z=2.000$. You can see that the dimensions of the viewport (green box) do not change, remaining the same as those of the projector. However, the frame has been enlarged and this variation is indicated by the enlargement of the yellow box. Let's remember that this follows the changes made with the camera tool.
1040     \item We can drag the room so that we can center the frame to our liking. The movement of the yellow box shows well the variation compared to the green box.
1041     \item Finally, if we want, we can switch to the projector tool to move the output frame to the position we want with respect to the size of the source. Of course, we can also work on the $z$, which in the example is at $z=0.500$, if we have decided to change the size of the output.
1042 \end{enumerate}
1043
1044 \subsection{Masks}%
1045 \label{sub:masks}
1046 \index{mask}
1047
1048 Masks can be used to accomplish various tasks but basically are used to select an area of the 
1049 video to be displayed or hidden. 
1050 They can be used in conjunction with another effect to isolate the effect to a certain region.
1051 Another usage is where you slightly delay one video track copy and unmask an area where
1052 the one copy has interference but the other copy does not.  Or use a mask when  color correction is
1053 needed in one part of a frame but not another.  A mask can be applied to just a small section of
1054 a color corrected track while a plain track shows through. 
1055 Removal of boom microphones, license plates, people and airplanes via mask is a very common usage.
1056
1057 The order of the compositing pipeline affects how masks are done. Usually masks are operated on the
1058 temporary, after the effects but before the projector. Because of the way this works, multiple
1059 tracks can be bounced to a masked track and projected with the same mask.
1060
1061 The compositing pipeline graph has a masking stage (figure~\ref{fig:temporary-02}).
1062
1063 \begin{figure}[htpb]
1064     \centering
1065     \includegraphics[width=0.7\linewidth]{temporary-02.pdf}
1066     \caption{Compositing pipeline with mask}
1067     \label{fig:temporary-02}
1068 \end{figure}
1069
1070 \subsubsection*{Compositing pipeline with masks}%
1071 \label{ssub:compositing_pipeline_with_masks}
1072 \index{compositing pipeline}
1073
1074 The Mask popup menu can be overwhelming upon first encounter.  However, if you follow the next
1075 few steps you can create a single simple mask without having to understand every possible parameter.
1076 Be sure you are working in a Format that includes the Alpha channel, YUVA or RGBA, because you need
1077 to have transparency for masking to show or will end up with only a black area.
1078 \begin{enumerate}
1079     \item To define a mask, in the Compositor window click on the \textit{Edit mask} icon to get the popup Mask menu.  If the menu does not come up, click on the \textit{Show tool info}.
1080     \item  On the video, LMB click on the place where you want to start a mask.
1081     \item  Then LMB click on another spot of the image to create each new point of the mask. Once
1082 you have at least 3 points, lines will be drawn between them, but you can just create as many
1083 more points as you need and the lines will be redrawn to cover all points. When you 
1084 create each point of the mask a straight line curve is expanded, altering the shape of the mask.
1085 The mask position will always be in the same position on each image of the video unless you enable 
1086 \textit{Generate keyframes while tweaking} on the Program window Transport and Buttons bar. Then when 
1087 enabled you can move a mask over time.
1088      \item For a mask to be seen or not seen, there must be another video track under the track
1089 that you are viewing in the compositor.  An easy way to see the masked area is to just add an empty track
1090 below the target track and drag the \textit{Gradient} plugin to a highlighted area on that track.
1091      \item  You can move existing points to new locations by simply using the LMB at a point to
1092 drag that point to a different location.
1093     \item  The mask can be translated as a single entity by Alt-dragging the mask.  For some desktop
1094 window managers, such as \textit{UbuntuStudio 16.4} and \textit{Arch}, the Alt key is already in use
1095 by the Operating System so you will have to use Alt+Ctrl instead.
1096     \item To create curved instead of straight lines between the points, use  Ctrl-drag on a
1097 specific point. Using Ctrl-drag activates bezier handles (control points) to create these curves
1098 between the points. For example, on a mask with just two points, you can create a romantic heart mask.     
1099 \end{enumerate}
1100
1101 There are a lot more operations you can do using the Mask menu as shown in 
1102 figure~\ref{fig:mask_window}.  Detailed description is provided here next.  Note that the Mask
1103 window is separated into various sections to make it easier to locate the area of interest.
1104
1105 \begin{figure}[htpb]
1106     \centering
1107     \includegraphics[width=0.5\linewidth]{mask_window.png}
1108     \caption{Mask options window}
1109     \label{fig:mask_window}
1110 \end{figure}
1111
1112 \subsubsection*{Masks on Track section}%
1113 \label{ssub:masks_track_section}
1114
1115 The \textit{Track}: textbox displays the different video tracks for your session which will be initially set to the first armed video track or will be left blank if there are no armed tracks.  A pulldown to the right of the box brings up the names of all of the video tracks allowing you to change to which track the masking applies.  You can also just use the tumbler to easily mouse up/down to get to the desired track. In the pulldown list, any track that has a red colored text name is disarmed so that you can not change it.  A track that contains masks has yellow colored text for easy identification.  Only when there are no masks on the track, do you have the default text color. This textbox is display only and you can not type into it.
1116
1117 The \textit{Solo} button in the Masks on Track section of the Mask window is very handy when working with masks on different tracks.  It displays just that track so that you see only the track you choose, as well as the tracks behind it to show the mask part.  The Solo button is just a convenience to prevent having to mouse over to the patchbay.
1118
1119 \subsubsection*{Masks section}%
1120 \label{ssub:masks_section}
1121
1122 The \textit{Mask}: textbox will show you the mask numbers of $0-7$ or the 8 ascii character name that you have used to designate each mask number.  There is a pulldown on the right side to easily switch to another mask. 
1123
1124 The \textit{Delete} button is used to delete the mask number/name that is selected. The symbol to the right with tooltip of \textit{Delete all masks} can be used to delete all of the current video track masks.
1125
1126 The \textit{Select}: row of checkboxes is used to indicate which mask is currently displayed for that video track in the Compositor.  Numbers that are colored yellow are active masks for that track.  A tumbler to the right allows for quickly changing the mask number displayed.
1127
1128 The \textit{Enable} row of masks makes it so you can enable all or none of the masks, making it possible to look at no masks or at one mask without interference from the other masks. The symbol that looks like an \texttt{eye} can be used to easily check all or none as the tooltip \textit{Show/Hide mask states}.
1129
1130 \subsubsection*{Preset Shapes section}%
1131 \label{ssub:preset_shape_section}
1132
1133 There are 4 shapes that are automatically available for usage as masks – square, circle, triangle, and oval.  In addition, the next 3 symbols in this section are for the purpose of loading, saving, and deleting your own customized shapes.  The first symbol, \textit{Load} preset, will bring up a list of your previously saved presets.  Clicking on \textit{Save} preset brings up a popup window allowing you to provide a name used to identify the preset you want to save, along with a pulldown to see the names of your other saved presets.   Clicking on \textit{Delete} preset also brings up a textbox with a pulldown to choose which one to delete.  There is a file, called \texttt{mask\_rc}, in \texttt{\$HOME/.bcast5} that records your custom masks.  
1134
1135 When you click \textit{Load} preset, keep in mind that it will write the mask number that you have selected so if you already have a mask at that location, it will write over it – just \textit{Undo mask} under the main window \textit{Edit} pulldown (shortcut `z'or `Ctrl-z') to revert to the previous if you made this mistake.
1136
1137 \subsubsection*{Position \& Scale section}%
1138 \label{ssub:position_scale_section}
1139
1140 \textit{Center} mask button allows for quickly centering a mask on the video track. 
1141 \textit{Normalize} mask button makes it easy to normalize the size of the mask based on the scale of the video - about 1/4 the window size in the X and Y 
1142 directions.  Normalization makes the mask fit in the space to avoid having
1143 it wander off of the window, then you can move it around easily before resizing.
1144 The next 3 symbols concern the direction to \textit{drag translate} a mask using the \texttt{Alt+LMB} thus making it easy to preserve the current $X$ or $Y$ value when desirable.  For some desktop window managers,
1145 such as \textit{UbuntuStudio 16.4} and \textit{Arch}, the Alt key is already in use by the Operating System
1146 so you will have to use Alt+Ctrl instead.
1147
1148 \texttt{xlate/scale x}  - drag translate constrained in the $X$ direction
1149
1150 \texttt{xlate/scale y}  - drag translate constrained in the $Y$ direction
1151
1152 \texttt{xlate/scale x/y}        - drag translate in both directions; this is the default and after using the other 2 options, you should reset to this to avoid future confusion while dragging.
1153
1154 \subsubsection*{Fade \& Feather section}%
1155 \label{ssub:fade_feather_section}
1156
1157 The \texttt{Fade}: textbox is used to type in a fade value; the tumbler to the right of the textbox allows you to increase or decrease that number; and the slider bar makes it quick to adjust the fade value.  The fader goes from $-100$ on the left to $+100$ on the right for negative to positive.  Default value is $+100$. The fade slider includes a sticky point at 0 so that it is easy to get to 0 without going too far or not quite far enough -- that way you don’t have to keep jiggling to get there. 
1158
1159 In addition there is a \textit{Gang fader} symbol to allow for having all of the masks fade in unison. The symbol is surrounded by a green colored background \protect\footnote{green is used in the default Cakewalk theme, but the background color will be different in other themes} when it is in effect.  If you have multiple masks with different modes, a decision had to be made on what value to use -- it uses the maximum transparency value of the background to determine the operations results.  To understand how this works, here is a summary:
1160
1161 Note1: The area outside the mask is referred to as the background.
1162
1163 Note2: The operational result is based on the maximum transparency value of that background.
1164
1165 \paragraph{Case 1, Positive Fade:} When the fade for all of the masks is positive, affecting the area inside of the mask, all of the
1166 background colors are at a transparency value of zero. So the largest transparency value is 0,and all masks are drawn with opaque backgrounds, depicted as one would expect.
1167
1168 \paragraph{Case 2, Negative Fade:} When the program computes the background color for any number of masks that includes negative
1169 mask(s), it uses the largest transparency number as the determining factor for the background. Only 1 of the masks can be largest, and wins for the background transparency result.
1170
1171 \vspace{3ex}\textit{Feather}: works in a similar manner to a \textit{gradient Fade} aligned on the mask boundary but is a logical function instead of a mathematical function so will be faster.  The \textit{Gang feather} symbol also works in a similar fashion and is surrounded by a colored background when it is in effect.
1172
1173 \subsubsection*{Mask Points section}%
1174 \label{ssub:masks_points_section}
1175
1176 This section is used to change to a different mask number and manipulate the masks you have created.
1177
1178 The \textit{Point}: textbox provides the ability to change which point number for the current mask that you want to work on.  It has a tumbler to allow for quickly switching the point number.  The \textit{X:} and \textit{Y:} boxes below reflect the current values and allow for modifying the $X/Y$ coordinates and these too have tumblers. The \textit{Delete} button will allow for deleting the selected point number.
1179
1180 The next 6 symbols in 2 columns represent \textit{Smooth} and \textit{Linear} buttons.  Smooth buttons use an algorithm based on the previous point and the next point to create a curved line. The smoothing operation takes three points, A, B, C, and arranges the slope at B to be AC as it moves to the next point for that mask.
1181
1182 \textit{smooth point}   $\rightarrow$ smooth a single point.
1183
1184 \textit{smooth curve}   $\rightarrow$ smooth all points on a mask edge curve.
1185
1186 \textit{smooth all}     $\rightarrow$ smooth all enabled masks on this track.
1187
1188 Linear buttons of \textit{linear point}, \textit{linear curve}, and \textit{linear all}, perform the inverse of the smooth functions.
1189 The control point vectors on the bezier endpoints are set to zero magnitude.
1190
1191 In addition there is a \textit{Markers} and a \textit{Boundary} checkbox which come in handy to turn off the display of the points and the outline of the mask.  Turning off \textit{Markers} is very useful when you have a lot of control points that clutter the display and make it more difficult to see the actual mask.  A helpful feature is available by disabling \textit{Markers} and enabling \textit{Boundary} which results in all masks being displayed in the viewer
1192 even if they are not enabled; for example you can then see mask 0, mask 1 \dots at the same time.
1193
1194 A \textit{gang} symbol on the right hand side of this section, tooltip of \textit{Gang points}, is another useful feature that makes it easy to drag a mask to an exact coordinate using the \textit{X} or \textit{Y} textbox for numerical input or the associated tumblers.  This works like the \texttt{Alt+LMB drag} translate but provides the ability to be precise.
1195
1196 \subsubsection*{Pivot Point section}%
1197 \label{ssub:pivot_point_section}
1198
1199 The \textit{X:} and \textit{Y:} coordinates mark the value of the current \textit{Pivot Point} used for rotation, scaling, and translation.  You can either directly key in numerical values or use the tumblers to change the values as long as the \textit{Focus} checkbox is checked.
1200
1201 The \textit{Focus} checkbox is used in case you want to set a different point in the Compositor for pivoting instead.  And the \textit{Gang} symbol for rotate/scale/translate means that these operations will be performed on all points of the enabled masks.  The gang symbol is surrounded by a colored background when it is in effect.  When performing a rotate operation on a mask with the mouse wheel, \textit{acceleration} is in effect -- this means the faster you wheel, the more space is covered so that you do not have to wheel dozens of time to make a full rotation.  Then when you wheel around slower, you can fine tune the result.
1202 Note that in order to be able to rotate/scale around pointer, the Focus checkbox must be unchecked.
1203
1204 \subsubsection*{Other sections}%
1205 \label{ssub:other_sections}
1206
1207 Finally there are the \textit{Apply masks before plugins} and \textit{Disable OpenGL masking} self-explanatory checkboxes.
1208
1209 Note: Not all OpenGL software can support the current masking methods.  If your opengl implementation does not support Shader Version 4.3 or has trouble with this (it is relatively new to opengl at the time this was implemented), then this checkbox will allow you to use the software masking to avoid any potential issues.  Normally, OpenGL is probed for the shader version and will automatically use the software implementation if required.
1210
1211 The \textit{Help} checkbox can be enabled in order to see a list of the keys used to perform various operations.  If you use Masking infrequently, these are a valuable reminder to which key combinations to use.  Currently they are as follows:
1212
1213 \vspace{2ex}
1214 \begin{tabular}{ll}
1215     \hline                      
1216     Shift+LMB & move an end point \\
1217     Ctrl+LMB & move a control point \\
1218     Alt+LMB & to drag translate the mask \\
1219     Shift+MMB & set Pivot Point at pointer \\
1220     Wheel & rotate around Pivot Point \\
1221     Shift+Wheel & scale around Pivot Point \\
1222     Ctrl+Wheel & rotate/scale around pointer \\
1223     \hline  
1224 \end{tabular}
1225
1226 \subsubsection*{Key Alternatives}%
1227 \label{ssub:key_alternatives}
1228
1229 \vspace{2ex} Note: For some desktop window managers, certain keys may already be in use by the operating system, so you will either have to redefine them in your desktop or use different key combinations.  For example, at least some desktops used with \textit{UbuntuStudio 16.04} and \textit{Arch} field the \texttt{Alt} key, thus requiring alternative key combinations to be needed.  Below are some of these alternatives.
1230
1231 \vspace{2ex}
1232 \begin{tabular}{lp{11cm}}
1233     \hline                      
1234     LMB & move/create an end point (to move the end point the pointer must be above the point) \\
1235     Shift+LMB & move an end point (the pointer may be near the point, not above it) \\
1236     Ctrl+LMB & move/create a control point \\
1237     Alt+Ctrl+LMB & to drag translate the mask \\
1238     Shift+Key Delete & to delete the mask \\
1239     Shift+MMB & Set Pivot Point at pointer \\
1240     Alt+Wheel & zoom in/out the screen (also available in Ubuntu16 but does not exist in all distros) \\
1241     \hline  
1242 \end{tabular}
1243
1244 \vspace{2ex}
1245 Focus checkbox = unchecked:
1246
1247 \vspace{2ex}
1248 \begin{tabular}{ll}
1249     \hline                      
1250     Wheel & rotate around Pivot Point \\
1251     Shift+Wheel & scale around Pivot Point \\
1252     Ctrl+Wheel & rotate around pointer \\
1253     Ctrl+Shift+Wheel & scale around pointer \\
1254     
1255     \hline  
1256 \end{tabular}
1257
1258 \vspace{2ex}
1259 Focus checkbox = checked:
1260
1261 \vspace{2ex}
1262 \begin{tabular}{ll}
1263     \hline                      
1264     Wheel & rotate around Pivot Point (“Custom focus point”) \\
1265     Shift+Wheel & scale around Pivot Point (“Custom focus point”) \\       
1266     \hline  
1267 \end{tabular}
1268
1269 \vspace{2ex}
1270
1271 \subsection{Cropping}%
1272 \label{sub:cropping}
1273 \index{crop}
1274
1275 Cropping is used to reduce the visible picture area by changing the output dimensions, width and
1276 height in pixels, and the $X, Y$ values. An example of cropping and the crop menu is seen in
1277 figure~\ref{fig:cropped_area}.
1278 The easiest way to use cropping is to click with the LMB 
1279 at the spot to begin cropping and while holding down the LMB, drag the mouse. This creates a rectangular
1280 cropping area.  To change the size/location of that area, click on any of the 4 corner points
1281 with the LMB and drag.  While dragging, you will see 
1282 the X1, Y1 coordinates and W for width, H for height, in the Crop tool popup menu
1283 automatically change numerical value to reflect the current position. For precise locations, you
1284 can keyin exact values into those textboxes instead of using the mouse.
1285 Once you have the crop area defined as you want it, then click on the \textit{Apply} button to have
1286 the actual cropping take affect.
1287
1288 There are 3 choices of crop methods to choose in the menu pulldown on the bottom right side.
1289 \begin{enumerate}
1290      \item Reformat - Reformat Session crops and changes the Format for the entire session. 
1291 Because the Format is changed, this is applied to all tracks in the project. 
1292 The part of the image outside the rectangle will be cut off and the projector will make the video fit.
1293 The  \texttt{Settings $\rightarrow$ Format} window will show the new project Width and Height values and
1294 the projector tool window will show the new $X, Y$ values. Track size remains unchanged.
1295 You can undo the cropping by entering the original project dimensions in the
1296 \texttt{Settings $\rightarrow$ Format} window for the Width and Height.  You will also have to use the Projector
1297 tool in the Compositor toolbar to \textit{Ajdust projector automation} by clicking on the Reset icon.
1298      \item Resize - Resize Projector; to undo this, enable \textit{Adjust projector automation} 
1299 and do a Reset.
1300      \item Shrink - Resize Projector and Camera; to undo this, enable each of the \textit{Adjust
1301 projector and camera automation} tools, one at a time, and do a Reset in the menus.
1302 \end{enumerate}
1303 An important note here is that the original aspect ratio will be maintained so if your frame is
1304 rectangular (as many are) and you "crop" by surrounding the region of interest with a square,
1305 the cropped area will be more than you marked in order to keep the aspect rectangular shape.
1306 The Resize and Shrink options are applicable to all video tracks except the disarmed ones. 
1307 This is in contrast to the Reformat option, as mentioned previously, which applies to all tracks even if disarmed because it changes the Format for the session.
1308 One last note of interest, this cropping is keyframable.
1309
1310 \begin{figure}[htpb]
1311     \centering
1312     \includegraphics[width=0.9\linewidth]{cropped_area.png}
1313     \caption{Crop menu and outlined crop rectangle on the right side}
1314     \label{fig:cropped_area}
1315 \end{figure}
1316
1317 An easy to follow step by step usage of the cropping tool is outlined next.
1318 \begin{itemize}
1319     \item Enable the crop tool in the compositor window to display the Crop popup menu.
1320     \item Click-drag in the video to define the crop area which draws a rectangle on the video.
1321     \item Click-drag in the video to start a different rectangle instead.
1322     \item Click-drag on a corner of the rectangle to reposition that corner.
1323     \item Alt-click in crop rectangle to translate the rectangle to a different position without resizing.
1324     \item The crop popup menu allows text entry of the top left coordinates ($X1,Y1$) and width and
1325 height ($W, H$) that define the crop rectangle. 
1326     \item Choose one of the 3 options of Reformat, Resize, or Shrink.
1327     \item When you have the rectangle where you want it,
1328 click on the \emph{Apply} button in the menu to actually perform the crop operation.
1329 \end{itemize}
1330  
1331
1332 \section{Viewer Window}%
1333 \label{sec:viewer_window}
1334 \index{viewer!window}
1335
1336 The Viewer window (figure~\ref{fig:viewer_window}) is convenient for previewing your media and 
1337 clips. It can also be used for editing with cuts and then paste operations into the timeline or
1338 to create a clip.  There are transport buttons \index{transport buttons} to use in the same manner as in the Program
1339 and Compositor windows or you can quickly move through the media by dragging with the LMB in
1340 the timebar above the transport buttons.  
1341
1342 \begin{figure}[htpb]
1343     \centering
1344     \includegraphics[width=0.99\linewidth]{viewer_window.png}
1345     \caption{Viewer Window - the red arrow "Play" button is left of the Videoscope button}
1346     \label{fig:viewer_window}
1347 \end{figure}
1348
1349 In order to view media in the window, you have to load it as follows:
1350
1351 \begin{enumerate}
1352     \item  In the Resources window, highlight the Media folder or the Clip folder.
1353     \item  Drag a file from the folder to the Viewer.
1354     \item  \textbf{Or} double LMB click on a media asset.
1355     \item  \textbf{Or} highlight an asset, RMB to bring up choices, and click on \textit{View} or
1356 \textit{View in new window}.
1357 \end{enumerate}
1358
1359 Note that you can have multiple Viewer windows open with different or even the same media asset.
1360 After the media is loaded you can use the transport buttons to play, rewind, stop, and so on, or
1361 for fast previewing drag with the LMB anywhere on the timebar slider.  There is also the Videoscope \index{videoscope}
1362 button which is to used to enable the scopes window without having to apply the filter to the tracks/edits.
1363 A few more options available in the Viewer window can be accessed with a RMB click on the display \index{viewer!RMB options}.
1364 These functions are listed next.
1365
1366 \begin{enumerate}
1367     \item  Switch to a fullscreen display by choosing \textit{Fullscreen}.  To switch back, click
1368 with the RMB on the display again and choose \textit{Windowed}.
1369     \item  Change the display size by choosing the \textit{Zoom} function to select a zoom level of
1370 25\%, 33\%, \ldots 300\%, or 400\% of the original media size.
1371     \item  To remove the current media from being displayed, choose \textit{Close source}.
1372 \end{enumerate}
1373
1374 The Viewer uses the project's output size output size{entry} format settings to display the media instead of the
1375 original asset's format. Operations performed in the Viewer affect a temporary EDL or a clip rather
1376 than the timeline.  By default, the Viewer window is automatically available but if it gets
1377 accidentally closed you can open it again by using the pulldown \texttt{Window $\rightarrow$ Show
1378 Viewer} to bring it back up.  More details for editing in the Viewer window with the Two Screen
1379 Editing method is explained in~\ref{sec:two_screen_editing}.
1380
1381
1382 \begin{figure}[htpb]
1383     \centering
1384     \includegraphics[width=1.0\linewidth]{viewer_audio.png}
1385     \caption{Viewer window at the top displaying same 5 seconds as seen in the Resources window thumbnail. At the bottom of the screen is the audio loaded on the timeline.}
1386     \label{fig:vieweraudio}
1387 \end{figure}
1388
1389 You can also use the Viewer to listen to media that consists only of Audio.  This is a quick way
1390 to listen to the audio to see if it is what you would like to add to a timeline audio track for
1391 your project.  To do this, you simply drag the audio file from the Resources window in the same
1392 manner as a video file. The viewer was designed to "view" images rather than play audio so in order
1393 to make it obvious that audio media is loaded to the viewer, a waveform \index{waveform} is displayed that is the
1394 same waveform as shown in the Resources window thumbnail when in the \textit{Display Icons} mode.
1395 This waveform only represents the first 5 seconds of the media and will not change or move while
1396 playing in the Viewer window.  But you can play the entire piece of media in the window
1397 and as you do so, you see the play cursor line move along and the timestamp reflect the actual
1398 position. You can also create clips. The entire waveform can only be seen on an actual audio track
1399 on the timeline. An example of what this looks like is shown in figure~\ref{fig:vieweraudio}.
1400
1401 \section{Options in both the Compositor and Viewer Windows}%
1402 \label{sec:options_in_both_the_compositor_and_viewer_windows}
1403
1404 The next sections describe capabilities that are available in both the Compositor and Viewer windows.
1405
1406 \subsection{Click to Play in Viewer and Compositor}%
1407 \label{sub:click_to_play_in_viewer_and_compositor}
1408
1409 In both the Viewer and Compositor windows, there is an arrow on the right hand side of the other
1410 buttons in the edit panel as shown in figure~\ref{fig:viewer_window}.  The "play" button can be
1411 toggled on/off via this arrow, which has a tooltip of \textit{Click to play} \index{click to play}.  When enabled
1412 the arrow is white surrounded by green and when disabled the arrow is red.\protect\footnote{the color and the look will be different for themes other than the default theme of Cakewalk}
1413 The purpose of enabling this capability is to make it really easy to play the media in the window
1414 by just using the left mouse button to start or stop the play.  The entire main canvas surface
1415 becomes a big play button!  Although the default is initially off, a good reason to enable this,
1416 at least temporarily, is so that you can quickly review your video before a render.
1417  
1418 \begin{description}
1419     \item[left click]  forward play or stop forward play if already playing
1420     \item[middle wheel]  single frame forward or back
1421     \item[middle click]  reverse play or stop reverse play if already playing. 
1422         Note that some 3 button mice do not accommodate a middle click for reverse but you can find out by testing from a terminal window with the command \texttt{xev}.
1423 \end{description}
1424
1425 \subsection{Timebar + Preview Region Usage in the Compositor and Viewer}%
1426 \label{sub:timebar_preview_region_usage_in_the_compositor_and_viewer}
1427 \index{preview region}
1428
1429 The Viewer and Compositor each have a timebar \index{timebar} control area with a red indicator
1430 line below the video output. The timebar shows the whole time covered by the
1431 resource. When a video resource is loaded in the main window and you move in the
1432 compositor, the insertion pointer in the main window will reflect those movements.
1433 But in the viewer only that specific media is shown and there is no corresponding movement on the timeline.
1434
1435 \begin{figure}[htpb]
1436         \centering
1437         \includegraphics[width=1.0\linewidth]{timebar1.png}
1438         \caption{The mouse cursor, above the green colored “play forward” transport button, is on the timebar. Further to the right we see the red "indicator line".}
1439         \label{fig:timebar1}
1440 \end{figure}
1441
1442 Both the Compositor and Viewer support labels and in/out pointer which are dis-
1443 played in the timebar. And as with the movements, when you use the labels or
1444 in/out pointer in the compositor timebar, the result will also be reflected in the
1445 main window timebar. Along with that, of course, when you move to a label or
1446 in/out pointer in the compositor, the insertion point in the program window will
1447 go to that position.
1448
1449 The timebar in the compositor and the viewer covers the whole length of the resource
1450 loaded in there. Moving the mouse with the LMB pressed moves the position in the resources as indicated by the indicator line. A complete mouse movement between left and right edges of the window moves the indicator line by default along the whole timebar. With long resources it can be difficult to precisely locate sections in the resource. To make this easier, you can limit the effect of the same window-wide mouse movement to a smaller area of the timebar, this area is defined as the preview region. This region can also be moved along the timebar.
1451
1452 For instance, if you need to get a few 10 second clips from an 60 minute video, you could define a one-minute preview region, move it approximately to a place where a clip needs to be taken, and easily select with the mouse in and out points within the region, because the whole window mouse movement now covers 1 minute instead of 60 minutes.
1453
1454 To create and use a preview region, hold down the right mouse button inside the timebar on either end of the timebar close to the edge until you see the resize pointer.  
1455 While continuously holding the right mouse button down, drag the arrow away from the end towards the middle of the timebar until you have the desired area outlined.  
1456 The slider will be a dark red color while the selected preview region will remain the same initial black color.  
1457 There are either a left or right resize pointer and you can click and drag in either direction to expand or shrink the region.
1458
1459 \begin{figure}[htpb]
1460     \centering
1461     \includegraphics[width=1.0\linewidth]{timebar2.png}
1462     \caption{A left-facing arrow on the right side of the reddish slider bar is used to drag the bar.}
1463     \label{fig:timebar2}
1464 \end{figure}
1465
1466 \begin{figure}[htpb]
1467     \centering
1468     \includegraphics[width=1.0\linewidth]{timebar3.png}
1469     \caption{Here you can see the right-facing arrow used to drag the other end of the slider bar. The black area is the actual preview area.}
1470     \label{fig:timebar3}
1471 \end{figure}
1472
1473 You can slide the preview zone left or right by holding the right mouse button over the preview zone where you will see a fat double headed arrow.  
1474 The selected area will move left or right as you drag and still retains the same size.
1475
1476 \begin{figure}[htpb]
1477         \centering
1478         \includegraphics[width=1.0\linewidth]{timebar4.png}
1479         \caption{Note the double-headed fat arrow in the black preview area used to move the selection over.}
1480         \label{fig:timebar4}
1481 \end{figure}
1482
1483 Settings:
1484
1485 \begin{enumerate}
1486     \item  If no preview region is set, increasing the length of the media on the timeline by inserting media or appending, has no effect on the non-selected preview region.  That is, you will not see the reddish slider bar suddenly mysteriously appear.
1487     \item  If the preview region is set, when you replace the current project or file,  the preview region is automatically disabled.
1488     \item  If the preview region is set, when you append data or change the size of the current project, the preview region may appear to either move, shrink, or grow depending on the new length of the media on the timeline.  
1489     \item  To disable the preview region, you will have to drag both the right and the left blue slider bars completely to their corresponding end so that there is no longer any visible red slider.
1490 \end{enumerate}
1491
1492 A good method for taking advantage of the preview region is described here.  
1493 On the main track canvas, scroll to the beginning of the area of interest.  
1494 When you do that, you will see in the compositor the red indicator line of that location.  
1495 Now in the compositor window, right mouse drag from the left side of the edge of the timebar to create the dark red slider bar line up to the red indicator.  
1496 Back in the main track canvas, move to the location of the area you want to end looking and again you will see the red indicator line in the compositor.  
1497 Use the right mouse drag from the right to stop at that end point.  Using this method is often easier than continuous usage of the single frame move which can be tedious.
1498
1499 One last interesting item of note -- sometimes you may wish to see just a little more that is outside the preview region and you can do so!  You can actually move outside the compositor or viewer window space and view more, at least until you hit the end of the screen space.
1500
1501 \section{Resources Window}%
1502 \label{sec:resources_window}
1503 \index{resources window}
1504
1505 Effects, transitions, labels, clips, proxies, user bins, and media assets are accessed here. 
1506 Most of the resources are inserted into the project by dragging them out of the resource window. 
1507 Management of resource allocation is also performed here.
1508
1509 \begin{figure}[htpb]
1510     \centering
1511     \includegraphics[width=0.8\linewidth]{resource_window.png}
1512     \caption{Folders are in the first column with contents of that folder on the right hand side}
1513     \label{fig:resource_window}
1514 \end{figure}
1515
1516 The resources window is divided into two areas (figure~\ref{fig:resource_window}. 
1517 One area lists folders \index{folders} and another area lists the folder contents \index{folder contents}. 
1518 Going into the folder list and clicking on a folder updates the contents area with the contents of that folder. 
1519 The folders can be displayed as icons or text. 
1520 There are several variations for displaying the contents; select \emph{Display text}, \emph{Display icons}, \emph{Display icons packed}, \emph{Display icons list} as types of display for the assets or plugins. 
1521 Use the letter “\texttt{V}” to easily scroll through the choices and see which you prefer.  
1522 You can also get to these options from the menu by a right mouse click in the window.
1523
1524 A \emph{Search} \index{search resources} option is available for any of the folders in the Resources window (and when using \textit{Attach effect} on the main track canvas for the Plugins).  
1525 As you type in characters a match is made with that substring.  
1526 Names that do not match are filtered out making it a lot easier to find the item you are looking for.  
1527 The characters can be any where within the phrase and it does not matter if upper or lower case. 
1528
1529 Other options you will see if you \textit{right mouse click in the folder} which brings up the menu are described next \index{folders!RMB options}.  
1530
1531 \begin{description}
1532     \item[Load files ]  for convenience to load files same as from the main window so you do not have to move the mouse so far in case you have multiple monitors.
1533     \item[Display text/icons]  as described previously for format variations preference.
1534     \item[Select]  options are All, Used, Unused, and None.  This gives you the capability to have a set of the
1535         contents highlighted for ease of use so you can see what is or is not loaded, or unset the highlight.
1536     \item[Sort items]  to sort the contents of the folder alphabetically.  Especially helpful if you accidentally did a 
1537         drag and changed your mind or dropped suddenly so that the assets no longer look nicely aligned.
1538     \item[Copy/Paste file list]  use to easily copy a set of files or paste a set of files between \CGG{} and other programs or operating system windows.
1539     \item[Snapshot/Grabshot]  use to take a quick snapshot or to grab a specific area on the screen.  These functions are described in detail in section \ref{sub:snapshot_grabshot}).
1540 \end{description}
1541
1542 Using the right mouse click to bring up a menu in the folder area \index{folders!RMB options}, you can also switch from Display text to Display icons, Sort items and create, delete and manipulate user defined folders/bins. Select Folder to create a user Folder or modify an existing folder.
1543
1544 If you \textit{right mouse click on a highlighted/selected resource}, several options are available depending on whether the resource is an effect or transition or a piece of media.  
1545 You can highlight several for some options so that it is applicable to all of them, such as Info.  
1546 Those listed immediately below are the available choices for media assets \index{asset!RMB options}.
1547
1548
1549 \begin{description}
1550     \item[Info] provided basic Asset information; details are described later in this section.
1551     \item[Display text/icons]  same as mentioned previously.
1552     \item[Sort]  same as mentioned previously.
1553     \item[Rebuild index] \index{rebuild index} if you switch from/to using ffmpeg/native for media loading, you should rebuild
1554         indexes.  Or if you get hangs on media or strange looking tracks, you might want to rebuild indexes.
1555     \item[View]  use this option to bring up the media in the Viewer window.
1556     \item[View in new window]  in order to not overwrite your current viewer window, you can open any
1557         number of viewer windows to simultaneously view multiple media.
1558     \item[Open mixers]  when you record with multiple cameras setup, you can work with them most easily
1559         using the mixer mode.  This is described in detail
1560     \item[Paste]  
1561     \item[Match] \index{match format} if you need to change your media parameters you can choose from the following: Match frame
1562         rate, Match project size, Match all 
1563     \item[Remove] \index{remove asset} use to Remove the asset from the project or with caution, to Remove from disk permanently.
1564 \end{description}
1565
1566 In the case of Effects or Transitions \index{effects/transitions info}, a right mouse click on a highlighted selection leads to an \emph{Info} button which gives a short 1 line description of what the effect/transition can be used for.
1567 For Labels \index{label!RMB options}, choices are \emph{Edit}, \emph{Label}, and \emph{Go to}.
1568 For Clips \index{clip!RMB options}, \emph{Nest} and \emph{UnNest} as described elsewhere are available.
1569
1570 \subsection{Info Asset Details}%
1571 \label{sub:info_asset_details}
1572 \index{asset!info}
1573 The asset \emph{Info} window also can be used to display detailed information about the selected/highlighted media file -- available for any loaded media of type mpeg or ffmpeg.  
1574 This is extremely helpful in determining what type of media it is, size, resolution, format, and type/number of audio streams.  It is especially useful for multiple program streams.  You can have the info window popped on several of your assets simultaneously.
1575
1576 \textit{Detail} opens an additional window with more information.
1577
1578 \textit{Sample rate} and \textit{Frame rate} allows you to impose a different sampling or Fps of the audio and video assets.
1579
1580 Another option is \textit{Resize} button, which allows you to change the size (in pixels) of the frame of the asset.
1581
1582 \textit{Asset's interlacing}  is the type of interlacing the asset has: If the file is (H)DV type, recognition and configuration is done automatically. All other media types will be set unknown. So we have to manually set the interlacing \protect\footnote{From Igor ubuntu's mail}.
1583
1584 Figure~\ref{fig:info_asset_details} shows the \textit{Detail} box to click on the left side and a simple, typical output in the Asset Detail window on the right side.  Also, note the highlighted media in the Resources window.
1585
1586 \begin{figure}[htpb]
1587     \centering
1588     \includegraphics[width=0.99\linewidth]{info_asset_details.png}
1589     \caption{Info windows with the “Detail” box}
1590     \label{fig:info_asset_details}
1591 \end{figure}
1592
1593 \subsection{User Folders/Bins}%
1594 \label{sub:user_folders_bins}
1595 \index{user folders/bins}
1596 \index{user media bin}
1597 \index{user clip bin}
1598 \index{folder modify}
1599 \index{folder add filter/search}
1600
1601 Creating folders that are more specific to a particular project is helpful in better organizing your work.  
1602 This can be done by utilizing the files already loaded to the \textit{master} Media or Clips folders in the Resources window.  The general rule is you can only drag clips to a ClipUserBin and you can only drag media to a MediaUserBin. No subfolders can be created within the new folders. Further below, after we populate the new folder, we will see how to use logical operators or other filters to automatically sort the media.
1603
1604 Below are steps illustrating an easy way to set up a new folder.
1605
1606 \begin{enumerate}
1607     \item In the Resources window (figure~\ref{fig:folder_resources}), in the location of the Video/Audio effects and Media folders, bring up the \textit{Folder...} popup by clicking the right mouse button. Highlight, then click \textit{New Media} or \textit{New Clips}. \textit{Modify folder} can be used to change the name of a folder. \textit{Delete folder} can be used to delete a folder.
1608     \item  In the \textit{New folder} popup as shown below (figure~\ref{fig:folder_new}), type in your folder name in the textbox.  Click OK.
1609     \item  Select the \textit{master} Media folder to see which files are currently loaded, figure~\ref{fig:folder_master}. Highlight the files there that you want to copy to your new folder (named \textit{Photos of Garden}). Drag the files to the left and when you see the \textit{Photos of Garden} folder become highlighted, then drop there. You can drag and drop any of the media from the \textit{master} Media at any time. It flashes when the drop is successful.       
1610 \end{enumerate}
1611
1612 \begin{figure}[htpb]
1613         \centering
1614         \includegraphics[width=0.5\linewidth]{folder_resources.png}
1615         \caption{New folder menu}
1616         \label{fig:folder_resources}
1617 \end{figure}
1618
1619 \begin{figure}[htpb]
1620         \centering
1621         \includegraphics[width=0.4\linewidth]{folder_new.png}
1622         \caption{Folder name}
1623         \label{fig:folder_new}
1624 \end{figure}
1625
1626  \begin{figure}[htbp]    
1627         \centering
1628         \includegraphics[width=0.8\linewidth]{folder_master.png}
1629         \caption{The “master” Media folder}
1630         \label{fig:folder_master}
1631 \end{figure}
1632
1633 \subsection{Modify Folder: sorting the media}%
1634 \label{sub:sorting_media}
1635 \index{folder modify}
1636
1637 In \CGG{} all the virtual mediafiles loaded in the \textit{Resources} window are collected in the \texttt{Media} folder without any kind of organization and sorting other than alphabetical. The Media folder is considered a \textit{master} folder because it is the basis for every other new folder we create. Another \textit{master} folder is \texttt{Clips}, and in fact we can create new clips folders as well. If we do editing of large projects containing numerous mediafiles, a rational and selective organization of the source material becomes necessary. In fact, having the sources organized in folders, where they can be found and used easily, makes subsequent editing much faster, as well as minimizing confusion and the possibility of errors. This step, which is fundamental in the pro environment, is called \textit{Logging} and also includes \textit{screening} individual mediafiles in the Viewer window; \textit{renaming} them rationally; and adding labels and descriptions in the \textit{metadata}.
1638
1639 We start by creating one or more new folders (MediaUserBin). These will be empty and we should populate them with the mediafiles contained in the master Media folder. There are two options: manual \textit{Drag and Drop} or automatic populating by setting \textit{filters} (Smart Bins).
1640
1641 \paragraph{Drag and Drop:} you drag mediafiles into the new folder one by one or in selected groups. The starting master folder can only be \texttt{Media} (or \texttt{Clips}, if we have created a new clip folder). Dragging is done by preserving the absolute path of the sources. If you open Modify Folder window you will notice that each imported mediafile occupies a different row characterized by its own path and name. See figure~\ref{fig:modify-target}. The \texttt{Value} field containing paths can contain only 63 characters, and it may happen to find the names cut off. The full path and name can be found by right-clicking on the row, but this is inconvenient and time-consuming. The best solution is to drag the mediafiles while holding down the \texttt{Shift} key; this will return the relative path instead of the absolute path, with space gain.
1642
1643 \begin{figure}[htpb]
1644         \centering
1645         %\includegraphics[width=0.8\linewidth]{name.ext}
1646         \begin{tikzpicture}[scale=1, transform shape]
1647                 \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.7\linewidth]{folder_modify.png}};
1648                 \node [yshift=-20mm, xshift=-1cm,anchor=east] at (img1.north west) (Arrow1) {\parbox{8em}{Here is the filter that was generated with the original drop }};
1649                 \draw [->, line width=1mm] (Arrow1) edge  ([yshift=-20mm] img1.north west);
1650         \end{tikzpicture}
1651         
1652         \caption{Modify Folder}
1653         \label{fig:modify-target}
1654 \end{figure}
1655
1656 \paragraph{Filters:} you do automatic populating using filters (Smart Bins mode). You set the values of the \texttt{Enabled}; \texttt{Target}; \texttt{Op} and \texttt{Value} fields to make up the required filtering. The folder will populate automatically by pulling from the \texttt{Media} master folder. The filter is the result of one row, but we can do more sophisticated filtering by adding more rows. The process will start from the first row propagating to subsequent rows always following the pattern from top to bottom. See figure~\ref{fig:modify_folder}.
1657
1658 \begin{figure}[htpb]
1659         \centering
1660         %\includegraphics[width=0.8\linewidth]{name.ext}
1661         \begin{tikzpicture}[scale=1, transform shape]
1662                 \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.8\linewidth]{modify_folder1.png}};
1663                 \node (img2) [yshift=-1cm, xshift=3.5cm, rotate=0] at (img1) {\includegraphics[width=0.8\linewidth]{modify_folder2.png}};
1664                 \node (img3) [yshift=-1cm, xshift=3cm, rotate=0] at (img2){\includegraphics[width=0.5\linewidth]{modify_folder3.png}};
1665         \end{tikzpicture}
1666         \caption{The available choices for each field. Value field missing.}
1667         \label{fig:modify_folder}
1668 \end{figure}
1669
1670 Let's look in detail at all the options of Modify Folder. 
1671
1672 When you bring up the Modify folder window, if you already have files in that folder, you will see filters that were generated automatically when you did a Drag and Drop. See figure~\ref{fig:modify-target}.
1673
1674 When you click on the \textit{Value} portion of that filter, the entire set of files that are covered by the filter rules pops up.   Now you can highlight a target filename that you would like to remove, and just erase that line and check the green checkmark for OK.
1675
1676 To delete the entire set of files listed on the filter rule, highlight the rule line and hit the \textit{Del} button. 
1677
1678 To add a new filter rule, click on the \textit{Add} button which will automatically add a default line after any current lines.  
1679 The default line will be a line that matches everything in the master Media folder which is \textit{Or  Patterns  Matches   *}.  
1680 Click the right mouse button on the current field underneath the column header to see the choices available for each column.  
1681
1682 Modifications will not be in effect until you click on the green arrow \textit{OK} button or click on the \textit{Apply} button.  
1683 But once you hit Apply, clicking on the red X button will not undo your changes.  
1684 The filter/search rules are applied in the order listed in the Modify folder window.  
1685 You can change the order of the filter rules by highlighting the rule you want to move and then drag and drop to a new location.
1686
1687 Information about the columns and rules for the search filters in the Modify folder window follows \index{folder add filter/search}.
1688
1689 Column headers:
1690
1691 \begin{description}
1692 \item[\textcolor{CinBlueText}{Enable}]  – this column is used to designate the state of that filter rule
1693     \begin{description}
1694         \item[Off]              disable the filter
1695                 \item[And]              narrow your search; all of your search terms must be present
1696                 \item[Or]               broaden your search to include more values
1697                 \item[And Not]  exclude terms that do not contain the given value from your search results
1698                 \item[Or Not]   include terms that do not contain the given value from your search results
1699     \end{description}
1700 \item [\textcolor{CinBlueText}{Target}] – this column designates which media asset attribute to look at
1701     \begin{description}
1702         \item[Patterns] each line contains a filename filter, matches the file path
1703                 \item[Filesize] number of bytes in a file
1704                 \item[Time]             date file was created
1705                 \item[Track Type]       track type of video, audio, or audio video (for both)
1706                 \item[Width]    Format width
1707                 \item[Height]   Format height
1708                 \item[Framerate]        Video framerate
1709                 \item[Samplerate]       Audio samplerate
1710                 \item[Channels] Number of audio channels
1711                 \item[Duration] Playback time in seconds -- it uses the largest of audio or video if contains both
1712     \end{description}
1713 \item[\textcolor{CinBlueText}{Op}] – boolean operators used to narrow or broaden the relationship between your search terms
1714     \begin{description}
1715         \item[Around]   about this value; use \textit{+radius} for a search range: [target–radius$\dots$  target+radius]
1716         \item[Eq        ]       equal to
1717         \item[Ge]       greater than or equal to
1718         \item[Gt]       greater than
1719         \item[Ne]not equal
1720         \item[Le]       less than or equal
1721         \item[Lt] less than
1722         \item[Matches]  exactly matches for strings
1723     \end{description}
1724 \end{description}
1725
1726 \textbf{\textcolor{CinBlueText}{Value}} --- the characteristic you are looking for with expressions that can be written with the following:
1727
1728         \begin{description}
1729         \item[Number] (decimal points are allowed and will be converted to a standard form):
1730         \begin{description}
1731          \item[inf] representing infinity
1732          \item[\#[TtGgMmKk]]  ---  where \# represents a number and the characters mean:
1733         \end{description}
1734
1735     \begin{tabular}{rcl}
1736         inf&=& infinity\\
1737         T&=&1099511627776\\
1738         t&=&1000000000000\\
1739         G&=&1073741824\\
1740         g&=&1000000000\\
1741         M&=&1048576\\
1742         m&=&1000000\\
1743         K&=&1024\\
1744         k&=&1000\\
1745     \end{tabular}
1746
1747 \item[Scalar:] 
1748
1749     \begin{tabular}{l}
1750         Number\\
1751         Number+Number\\
1752     \end{tabular}
1753 \item[Date time:]
1754     \begin{tabular}{rcl}
1755         date&=&year/month\\
1756         date&=&year/month/day\\
1757         time&=&hour:minute\\
1758         time&=&hour:minute:second\\
1759         date\_time&=&date time\\
1760     \end{tabular}
1761
1762   \item[Duration:]
1763       \begin{tabular}{rcl}
1764     day  &=&    \#day     | \#days\\
1765     week &=&    \#week    | \#weeks\\
1766     month&=&    \#month | \#months\\
1767     year &=&    \#year    | \#years\\
1768     delta&=&secs\\
1769     delta&=&mins:secs\\
1770     delta&=&hours:mins:secs\\
1771       \end{tabular}
1772
1773 \item[Around time:]
1774     date time+duration
1775
1776   \item[Around length:]
1777     duration+duration
1778
1779 \end{description}
1780
1781 Table showing the allowed usage:
1782
1783 \begin{lstlisting}[numbers=none]
1784 target:    |  eq  ge  gt  ne  le  lt   matches  around
1785 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1786 patterns   | <---- strcmp ---------> + filter + nearest
1787 file_size  | <---- arithmetic -------+------> + radius
1788 mod_time   | <---- arithmetic -------+------> + radius
1789 track_type | <---- member test ------+--------+------>
1790 width      | <---- arithmetic -------+------> + radius
1791 height     | <---- arithmetic -------+------> + radius
1792 framerate  | <---- arithmetic -------+------> + radius
1793 samplerate | <---- arithmetic -------+------> + radius
1794 channels   | <---- arithmetic -------+------> + radius
1795 duration   | <---- arithmetic -------+------> + radius
1796 \end{lstlisting}
1797
1798 where in the above, the filter can be:
1799
1800 \begin{tabular}{rcl}
1801     filter&=&list\\
1802     filter&=&token\\
1803     list&=&[token]\\
1804     list&=&[token]list\\
1805     string&=&<chars>|<empty>\\
1806     token&=&string\\
1807     token&=&string*token\\
1808 \end{tabular}
1809
1810 Examples with some caveats first:
1811
1812 \begin{enumerate}
1813     \item   \textit{Or} generally includes or adds whereas \textit{And} generally excludes or subtracts.
1814     \item   The filters only work on media in the folder; if there is no media, then there is nothing to search.
1815     \item   The examples below are not meant to be executed as a list of filters in Modify folder, they are just single line examples to indicate what can work.
1816     \item   Sort is by filename base name (directory path not included automatically) except when the \textit{Around} operation is used and then it is sorted by that Target distance first and then filename.
1817 \end{enumerate}
1818
1819 \begin{longtable}{lllm{10em}m{10em}}
1820         \caption{Examples}
1821         \label{tab:label}\\
1822         \toprule
1823         \textbf{Enable} & \textbf{Target} & \textbf{OP} & \textbf{Value} & \textbf{meaning} \\
1824         \hline
1825         %begin{latexonly}
1826         \endhead
1827         %end{latexonly}
1828         Or & Patterns & Matches & * & all files from the Media Folder are included \\
1829         And Not & Filesize & Lt & 160000000 & no files that are less than 160MB in size \\
1830         Or Not & Time & Ge & 2018/07/30 06:13:00 & files not greater than or equal date \\
1831         And & Duration & Eq & 01:00 & files included must have 60 secs. Duration \\
1832         Off & Samplerate & Ne & 44000 & off for now, but may want to include later \\
1833         And & Framerate & Around & 24+1 & files included all have 24 to 25 framerate \\
1834         Or & Patterns & Matches & [*.mp4] & all files with the extension of mp4 \\
1835         Or & Time & Around & 2018/08/02 06:00:00 + 02:00:00 & files at 4 AM to 8 AM \\
1836         \bottomrule
1837 \end{longtable}
1838
1839 \subsection{Vicons \& Aicons – aka Video Icons / Audio Icons}%
1840 \label{sub:vicons_aicons_aka_video_icons_audio_icons}
1841 \index{vicon!video icons}
1842 \index{aicon!audio icons}
1843
1844 Vicons are video icons.  
1845 Aicons are audio icons.  
1846 By default the Resources window will play the first 5 seconds of video or audio waveform looped in the area occupied by the media icons (figure~\ref{fig:vicons1}). 
1847 This is enabled for the Media/Proxy folders in icon mode when the mouse pointer is inside the Resources window. 
1848
1849 \begin{figure}[htpb]
1850     \centering
1851     \includegraphics[width=0.99\linewidth]{vicons1.png}
1852     \caption{Note "Full Play" mode and Vicons and Aicons in Media folder}
1853     \label{fig:vicons1}
1854 \end{figure}
1855
1856 The waveform \index{waveform} in the figure~\ref{fig:vicons2} is displayed in the Resources window in the color green for the 3 audio tracks. 
1857 There is a colored bar \index{color bar aicons} on the top of each a-icon where the color is based on the Color Spectrum -- the smaller the time duration, the redder the color; then as the time duration goes up, the color goes up so that you will go to green, then yellow, then blue, then really dark blue, then purple for the audio files 1 hour and over.  
1858 There are various other colors between these colors same as that seen in the color spectrum in the screenshot below.  
1859 Colors are utilized from the hue wheel in the counter-clockwise direction.  
1860 Note that the horizontal line in the middle of the a-icon is yellow/red representing the 2 audio tracks and is only red for mono.
1861
1862
1863
1864 \begin{figure}[htpb]
1865     \centering
1866     %\includegraphics[width=0.8\linewidth]{name.ext}
1867     \begin{tikzpicture}[scale=1, transform shape]
1868         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.99\linewidth]{vicons2.png}};
1869         \node (img2) [yshift=0cm, xshift=2.8cm, rotate=0] at (img1.south west) {\includegraphics[width=0.3\linewidth]{hue_wheel.png}};
1870         \node [yshift=-5mm, xshift=1cm,anchor=west] at (img2.east) (Arrow1) {\parbox{18em}{Color hue wheel. For illustration only}};
1871         \draw [->, line width=1mm] (Arrow1) edge  ([yshift=-5mm] img2.east);
1872     \end{tikzpicture}
1873     \caption{Draw Vicons   |            Screenshot display various audio file lengths; red is shortest.}
1874     \label{fig:vicons2}
1875 \end{figure}
1876
1877 Note that if in \texttt{Settings $\rightarrow$ Preferences} under the Appearance tab, you have unchecked \textit{Use thumbnails in resource window} you will only have default icons and none of the above capabilities.
1878
1879
1880 \subsection{Resources Window Preview Mode}%
1881 \label{sub:resources_window_preview_mode}
1882 \index{resources preview}
1883
1884
1885 Preview mode can be used to pop up a window which draws the vicons/aicons thumbnails in a larger size.  
1886 Preview or \textit{draw vicons} mode is a helpful feature of \CGG{} that lets you see and/or hear the first 5 seconds of the video for identification purposes. 
1887 The Preview mode/playback toggle is to the right of the Visibility label as seen in the screenshot above. 
1888 Preview mode is available for the Media, Proxy, Media User Bins, and Clips but clips are only 1 image.
1889
1890 When \textit{Preview/draw vicons} is enabled/active, if you click on one of the video icons or an audio waveform icon, a view pops up that increases the size to 4 times the surface area larger. 
1891 This makes it easier to see or hear if it is the media you are looking for in case you have many similar media files. 
1892 To conserve memory, the video is stored 8\,bits per pixel which results in low image quality while the audio is 16\,bit. 
1893 The reason for playing 5 seconds of a video for a vicon is that until the first I-frame, the media frequently does not decode properly.  
1894 In other words, a lot of media does not begin at the \textit{beginning} point and will not be properly rendered until enough data has been read to assemble a picture.  
1895 You can increase the thumbnail size, clarity of pixels (memory size) and color mode but it takes a lot more memory.  
1896 Change these values in \texttt{Settings $\rightarrow$ Preferences}, Appearance tab, right hand side of the Layout section -- be aware that when you click OK, your session will re-initialize.  
1897 You can also temporarily increase the preview mini-window by use of the mouse wheel up or down for media but not for clips.
1898
1899 There are 4 options for the preview mode.
1900
1901 \begin{enumerate}
1902     \item  \emph{Full Play} \index{full play} is the default mode.  
1903         This means all of the media will automatically play when the mouse is in the Resources window and you can use the left mouse button to click on specific media to see it pop up in a larger view.  
1904         Audio only files do not play the audio until the icon is clicked on and the waveform aicon pops up into the 4x larger mode. 
1905         \emph{Full Play} includes the \emph{Mouse Over} capabilities as described below as well as the Inter-View \emph{Src Target} functions.
1906
1907         \item  \emph{No Play} \index{no play} mode is especially useful on smaller computers and for users who find the constant loop play to be somewhat distracting.
1908
1909         \item  \emph{Mouse Over} \index{mouse over} mode is activated by a single click on one of the vicons/aicons and deactivated with another single click over any of the icons.  
1910     Once activated, whenever you just move the mouse over an icon, it automatically pops up the increased size preview.  
1911     The first time in your session that you enable this feature, it may take a few seconds to load all of the icon previews into memory so be patient and just wait.  
1912     \emph{Mouse Over} mode makes it quick and easy to preview without having to drag the media to the viewer.  
1913     You can still drag the media same as without preview enabled.  
1914
1915         \item  \emph{Src Target} \index{source target} mode gives easy access to the Inter-View source target available by using the middle mouse button on media.  
1916     There are 2 advantages to this mode -- there is no 5 second play loop taking up cpu time and the popup allows for the use of the letter “\texttt{f}” on that popup to have it go to fullscreen mode.  
1917     \emph{Src Target} mode in any scenario never plays sound as that is nonsensical usage.  
1918     After the initial click to pop media in this mode, you also have the \emph{Mouse over} feature.
1919 \end{enumerate}
1920
1921 For any of the options, but not \emph{No Play}, you can temporarily turn off that option by clicking on the button using the middle mouse button.  
1922 This helps to avoid having the thumbnail get in the way of dragging or other functions.  
1923 When you do, a line will be drawn through the current preview mode so that you are aware that it is in \emph{No Play} mode until click it again.
1924
1925 Note that if in \texttt{Settings $\rightarrow$ Preferences} under the Appearance tab, you have unchecked \textit{Use thumbnails in resource window} you will only have default icons and no active previews.
1926
1927 \begin{figure}[htpb]
1928     \begin{minipage}{.69\linewidth}
1929         \centering
1930         \includegraphics[width=0.99\linewidth]{preview_icon_mode.png}
1931         \caption{The location of the Preview/Draw Icons mode.}
1932         \label{fig:preview_icon_mode}
1933     \end{minipage}
1934     \hfill
1935     \begin{minipage}{.29\linewidth}
1936         \vspace{2ex}
1937         \centering
1938         \includegraphics[width=0.7\linewidth]{line_through_mode.png}
1939         \caption{Note the line through the mode.}
1940         \label{fig:line_through_mode}
1941     \end{minipage}
1942 \end{figure}
1943
1944
1945
1946 \subsection{Moving clips/media from/to Resources window}%
1947 \label{sub:moving_clips_media_from_to_resources_window}
1948 \index{copy/paste from/to resources window}
1949
1950 If you have several media files loaded into the Resources window of one instance of \CGG{} and want to load some of the same ones into another instance or just want a listing to save in a file for later use, you can do this with these set of steps:
1951
1952 Copy or paste a list of files in the Media Resources window:  
1953
1954
1955 \begin{enumerate}
1956     \item  create a highlighted selection of the desired media files in the media Resources window
1957     \item    right click on an unused portion of that window to bring up the popup menu
1958     \item     select the \textit{Copy file list} item and a file list box will appear that contains the full path filenames
1959     \item     wipe the textbox using your standard copy/paste method to put the list of files in the copy buffer
1960     \item     in another \CGG{} instance, choose the \textit{Paste file list} of the media Resources window
1961     \item     paste the list of files, again using your standard paste method, into the new file list box; press OK
1962     \item    the status bar of the main window will be updated as the file list is loaded to the media folder (the purpose of displaying the status is simply to show that the load is progressing normally).
1963 \end{enumerate}
1964
1965 Obviously this \textit{Paste file list} feature means you can create a list of files outside of \CGG{} using an editor, wipe the names, and then use \textit{Paste file list} to load them into the media Resources window.  
1966
1967 It is important to note that in the steps above, the Operating System cut and paste capabilities are in use for steps 4 and 6 as opposed to \CGG{}’s c/v shortcuts.  
1968 Since the procedure varies among the distros, you will have to adapt to your specific one.  For example, a usage for ubuntu consists of:
1969 \begin{enumerate}
1970     \setcounter{enumi}{3}
1971     \item   Ctrl-c to copy the list of files; open gedit; Ctrl-v to paste the list of files into gedit
1972     \item   Ctrl-c or the standard way using the right click to copy this list from gedit
1973     \item Ctrl-v paste the list of files into the new file list box, and press OK
1974 \end{enumerate}
1975
1976 \begin{figure}[htpb]
1977     \centering
1978     \begin{minipage}{.9\linewidth}
1979     \centering
1980         \includegraphics[width=0.99\linewidth]{copy_files1.png}
1981     \end{minipage}
1982     \vfill
1983     \begin{minipage}{.5\linewidth}
1984     \centering
1985         \includegraphics[width=0.99\linewidth]{copy_files2.png}
1986     \end{minipage}
1987     \caption{Example of copy file list}
1988     \label{fig:copy_files1}
1989 \end{figure}
1990
1991 In the Figure~\ref{fig:copy_files1}, one instance of \CGG{} has 3 items in the Media area highlighted that were copied to the file list.  
1992 Note how it includes the full pathname.
1993
1994 In this screenshot on another instance of \CGG{}, there are only 2 items in the media but the \textit{Paste file list} box is ready to have the items inserted via the standard text box paste method.  When that is done, the additional 6 media files will be available on this other instance too.
1995
1996
1997 Another possible usage of this capability:
1998
1999 \begin{enumerate}
2000     \item  Right Click on the Clips Resources window and use the \textit{Paste Clip} option to paste the Copy selection as a clip.  
2001     \item  Similarly, by highlighting a clip in the Resources window and selecting its copy popup menu item using the right mouse button, that copy buffer can now be loaded onto the timeline.
2002 \end{enumerate}
2003
2004
2005 \subsection{Snapshot / Grabshot}%
2006 \label{sub:snapshot_grabshot}
2007 \index{snapshot}
2008 \index{grabshot}
2009
2010 \begin{figure}[htpb]
2011     \centering
2012     \begin{minipage}{.49\linewidth}
2013     \centering
2014     \includegraphics[width=0.8\linewidth]{snapshot.png}
2015     \caption{Snapshot menu and choices}
2016     \label{fig:snapshot}
2017     \end{minipage}
2018     \begin{minipage}{.49\linewidth}
2019     \centering
2020     \begin{tikzpicture}[scale=1, transform shape]
2021         \node (img1) [yshift=0cm, xshift=0cm, rotate=0] {\includegraphics[width=0.65\linewidth]{grabshot.png}};
2022         \node (img2) [yshift=2cm, xshift=-1cm, rotate=0] {\includegraphics[width=0.07\linewidth]{reticle.png}};
2023     \end{tikzpicture}
2024     \caption{Grabshot reticle \& orange box}
2025     \label{fig:grabshot_recticle}
2026     \end{minipage}
2027 \end{figure}
2028
2029 To take a snapshot, perform the following steps:
2030
2031 \begin{enumerate}
2032     \item set your timeline insert marker where you want the snapshot -- this frame shows in the compositor
2033     \item  right click in an empty spot in the media folder and the popup shows snapshot as the $5^{th}$ item down
2034     \item  highlight that and the submenu comes up allowing you to choose png, jpg, ppm or tiff
2035 \end{enumerate}
2036
2037 The snapshot shows up in the Media folder.  
2038 It is saved by default in \texttt{/tmp} as
2039
2040 \texttt{snap\_date-time.ext} BUT you can change the default directory path in \texttt{Settings $\rightarrow$ Preferences $\rightarrow$ Interface tab} in the right hand side of the Editing section.
2041
2042 Grabshot is the $6^{th}$ menu item.  
2043 A red circle reticle can be moved to the area to grab; use left mouse drag to surround an area; and right click to grab.
2044
2045
2046
2047
2048 \section{Other Options and Other Windows}%
2049 \label{sec:other_options_and_other_windows}
2050
2051 \subsection{Transport Controls}%
2052 \label{sub:transport_controls}
2053 \index{transport buttons}
2054
2055 Transport controls are useful for navigation and for playing media.  
2056 Each of the Viewer, Compositor, and Program windows has its own transport panel.  
2057 The controls generally all contain a colored tooltip when you mouse over the control, providing a hint of their function and shortcuts for usage.
2058
2059 The transport panel is controlled by the keyboard as well as the graphical interface. 
2060 For each of the operations it performs, the starting position is the position of the insertion point in the Program window and the slider in the Compositor and Viewer windows. 
2061 The ending position is either the end or start of the timeline or the end or start of the selected region if there is one.
2062
2063 The orientation of the end or start depends on the direction of playback. 
2064 If it is forward the end position is the end of the selected region. 
2065 If it is backward the end position is the start of the selected region.  
2066 The insertion point moves to track playback. 
2067 When playback stops, the insertion point stays where playback stopped. 
2068 Thus, by playing back you change the position of the insertion point. 
2069 The keyboard interface of either the numeric pad or alternative keys has more speeds with the addition of \emph{Forward Slow}(2) and \emph{Reverse Slow} (5).  
2070 Hitting any key on the keyboard twice pauses it. 
2071 The shortcuts section of this manual as well as a Shell Command available from the \CGG{} main window has a listing of each of the keys.
2072
2073 When using frame advance functions the behavior may seem odd. 
2074 If you frame advance forward and then frame advance backward, the displayed frame does not change. 
2075 This is because the playback position is not the frame but the time between two frames. 
2076 The rendered frame is the area that the playback position crosses. 
2077 When you increment the time between two frames by one and decrement it by one, you cross the same frame both times and so the same frame is displayed.  
2078 There is an option in \texttt{Settings $\rightarrow$ Preferences, Appearance tab} to \textit{Always show next frame} that may help make this clearer for some users.
2079
2080 The transport behavior changes if you hold down Ctrl when issuing any of the transport commands. This causes the starting point to be the In point if playing forward and the Out point if playing backward. If playing forward, the Out point becomes the ending point and if playing backward, the In point becomes the ending point. If no In/Out points are specified, the behavior falls back to using the insertion point and track boundaries as the starting and ending points.
2081
2082 The transport behavior also changes if you hold down the Shift key along with KeyPad 1--6.  
2083 If normally audio is included in the play, it will be removed and if normally audio is not included in the play, it will be added.
2084
2085
2086 \subsection{Zoombar}%
2087 \label{sub:zoombar}
2088 \index{zoom}
2089
2090 The compositor has zoom capability. 
2091 The pull-down menu on the bottom of the compositor window has a number of zoom options. 
2092 When set to Auto the video is zoomed to match the compositor window size as closely as possible. 
2093 When the video is zoomed bigger than the window size,  you can use scrollbars to scan around or if the zoom icon is enabled, the middle mouse button can be used to zoom in or out the video.
2094
2095 The zoom toggle also causes the Compositor window to enter zoom mode. 
2096 In zoom mode, clicking in the video output zooms in while a Ctrl-click in the video output zooms out. 
2097 If you have a wheel mouse, rotating the wheel zooms in or out too. 
2098 Zooming in or out with the zoom tool does not change the rendered output. 
2099 It is merely for scrutinizing video or fitting it in the desktop. Playing video on the compositor when zoomed to any size other that 100\%, the original size, requires \CGG{} to do extra processing steps. 
2100 This could affect performance on slower systems
2101
2102 \subsection{Show Overlays}%
2103 \label{sub:show_overlays}
2104 \index{show ovelays window}
2105
2106 Color Coded Keyframe Curves are a big feature in the \textit{Show Overlays} window because by changing the colors to suit the user, it helps to remove confusion from multiple curves on the track canvas.  
2107 They can be viewed from the pulldown menu of \texttt{Window $\rightarrow$ Show overlays} but they will operate the same as when used from the \textit{View} pulldown menu.  
2108 The \textit{Color Coded Keyframe Curves} have distinct colors associated with each type for ease of identification.  
2109 By clicking LMB on the \textit{Color Ball} to the right of any keyframe type in the \textit{Show overlays} menu you have the ability to change the colors to whatever works best for your video.  
2110 The color ball changes made will be retained across sessions.
2111
2112 There is a line separating the first 4 items, which are just non-automation type settable values as opposed to \textit{auto} keyframe types.  
2113 The color is not changeable for the 3 items of Mode, Pan, and Mask which simply display their symbol icon.
2114
2115 Figure~\ref{fig:overlays_window} displays the Show overlays popup with all of its options and color coded types such as yellow for Speed and blue for Camera Z.  
2116 Upon clicking on the associated \textit{color ball} to the right of any keyframe type, for example \textit{Fade} in this screenshot, the color wheel palette window pops up so that you can manipulate the color as desired.
2117
2118 \begin{figure}[htpb]
2119     \centering
2120     \includegraphics[width=0.85\linewidth]{overlays_window.png}
2121     \caption{Show Overlays window on the left with the Color ball window to the right to set color}
2122     \label{fig:overlays_window}
2123 \end{figure}
2124
2125 Figure~\ref{fig:overlays1} shows several color coded lines for different keyframes along with the Fade slider for manipulation.  
2126 The slider is in the same color as the color coded keyframe type line which is the same color as in the \textit{Show overlays} window.
2127
2128 \begin{figure}[htpb]
2129     \centering
2130     \includegraphics[width=1.0\linewidth]{overlays1.png}
2131     \caption{Lines are colored here on the timeline as designated in Show Overlays}
2132     \label{fig:overlays1}
2133 \end{figure}
2134
2135 Overlays Window Nuances:
2136
2137 The Overlays window is an alternative to the main track canvas \textit{View} pulldown, and thus the order is mostly maintained to match each other.  
2138 To make it easier to get a quick temporary look at a specific option, there is a shortcut of Shift-LMB (left mouse button) that can be used as opposed to having to uncheck everything that is currently checked and then having to recheck them on when done.  
2139 Here is a list of how they work.  Keep in mind that if the Expander on the patchbay is enabled, you still see the track.
2140
2141 \begin{itemize}
2142     \item  Shift+LMB (left mouse button) in the Overlays Window on a checkbox will turn off all other
2143         checkboxes except for the one you are on.  Then this named box will have outline for a  \textit{hot} spot.
2144     \item  Shift+LMB on this \textit{hot} spot will return to \textit{cool} of the previous settings with all of the previous
2145         checkboxes checked again.
2146 \end{itemize}
2147
2148 \begin{figure}[htpb]
2149         \begin{minipage}{.29\linewidth}
2150                 \centering
2151                 \includegraphics[width=0.99\linewidth]{overlays_list1.png}
2152                 \caption{Original Settings --- cool spot}
2153                 \label{fig:overlays_list1}
2154         \end{minipage}
2155         \hfill
2156         \begin{minipage}{.29\linewidth}
2157                 \centering
2158                 \includegraphics[width=0.99\linewidth]{overlays_list2.png}
2159                 \caption{Note Titles box hot spot  }
2160                 \label{fig:overlays_list2}
2161         \end{minipage}
2162         \hfill
2163         \begin{minipage}{.29\linewidth}
2164                 \centering
2165                 \includegraphics[width=0.99\linewidth]{overlays_list3.png}
2166                 \caption{Cam/Proj XYZ toggle to fine tune}
2167                 \label{fig:overlays_list3}
2168         \end{minipage}
2169 \end{figure}
2170
2171 \begin{itemize}
2172     \item  Shift+LMB on a non-\textit{hot} spot will simply check or uncheck a box and there is no previous state.
2173     \item This all works in conjunction with the \textit{View} pulldown menu which, of course, has no hot spots.
2174     \item  Caveat \#1 - Shift+LMB on the top 4 choices of Assets, Titles, Transitions, Plugin Keyframes will turn
2175         off all of the checkboxes below because it makes sense to do so.
2176     \item  Caveat \#2 - Shift+LMB on the Autos will not turn off Assets, Titles, Transitions, or Plugin Keyframes
2177         because you need to be able to see what is going on.
2178         \item Caveat \#3 - XYZ toggle on/off of Camera and Projector are not affected.
2179 \end{itemize}
2180
2181
2182
2183
2184 \subsection{Sound Level Meters Window}%
2185 \label{sub:sound_level_meters_window}
2186 \index{sound level meters window}
2187
2188 An additional window, the levels window, can be brought up from the \textit{Window} pulldown.  
2189 The levels window displays the output audio levels after all mixing is done.  
2190 The visible range of the sound level meters is configurable in \texttt{Settings $\rightarrow$ Preferences, Interface tab} under the Operations section.
2191
2192 \begin{wrapfigure}[18]{O}{0.3\linewidth} 
2193         \centering
2194         \vspace{-2ex}
2195         \includegraphics[width=0.5\linewidth]{volume_meter.png}
2196         \caption{Sound Level Meters Window}
2197         \label{fig:volume_meter}
2198 \end{wrapfigure}
2199
2200 Sound level meters can be toggled in the viewer and compositor windows with the show meters button.  
2201 They also appear in the patchbay when the track is expanded and in the recording monitor when audio is being recorded. 
2202
2203 The sound levels in the levels window, compositor, and viewer correspond to the final output levels before they are clipped to the sound card range.  
2204 In the record monitor they are the input values from the sound card.  
2205 In the patchbay they are the sound levels for each track after all effects are processed and before down-mixing for the output.  
2206 Most of the time, audio levels have numerical markings in dB but in the patchbay there is not enough room.
2207
2208 The sound level is color coded as an extra means of determining the sound level.  
2209 Even without numerical markings, the sound level color can distinguish between several ranges and overload.  
2210 Look at the color codings in a meter with numerical markings to see what colors correspond to what sound level.  
2211 Then for meters in the patchbay in expanded audio tracks, use the color codings to see if it is overloading.
2212
2213 Be aware that sound levels in \CGG{} can go above 0 dB.  
2214 This allows for not only seeing if a track is overloading but how much information is being lost by the overloading.  
2215 Overloading by less than 3 dB is usually acceptable.  
2216 While overloading is treated as positive numbers in \CGG{}, it is clipped to 0 when sent to a sound card or file.
2217
2218
2219 %%% Local Variables:
2220 %%% mode: latex
2221 %%% TeX-master: "../CinelerraGG_Manual"
2222 %%% End: