### Configure Logo in Front Matter (TOML) Source: https://github.com/dsu-digital-sound-design/dad-498-audio-forensics/blob/master/content/test-slides/_index.md This TOML snippet shows the basic configuration for adding a logo to a presentation slide. It specifies the source file for the logo. ```toml +++ title = "Logo presentation example" outputs = ["Reveal"] [logo] src = "github-logo.png" +++ ``` -------------------------------- ### Add Custom CSS for Logo Styling (HTML Partial) Source: https://github.com/dsu-digital-sound-design/dad-498-audio-forensics/blob/master/content/test-slides/_index.md This example shows how to add custom CSS to override default logo styling for a specific presentation or globally. It involves placing a CSS file within the Hugo project's layout structure. ```html layouts/partials/{section}/reveal-hugo/body.html ``` -------------------------------- ### Set Default Logo in Site Configuration (TOML) Source: https://github.com/dsu-digital-sound-design/dad-498-audio-forensics/blob/master/content/test-slides/_index.md This TOML snippet demonstrates how to set a default logo for all presentations by configuring it in the site's main configuration file. This allows for a consistent branding across the site. ```toml [params.logo] src = "/img/logo.png" ``` -------------------------------- ### Hugo CLI Commands for Building and Serving Source: https://context7.com/dsu-digital-sound-design/dad-498-audio-forensics/llms.txt Provides essential Hugo Command Line Interface (CLI) commands for managing the website. This includes installing Hugo on macOS, cloning a repository with submodules, serving the site locally with live reload, and building the site for production. ```bash # Install Hugo (macOS) brew install hugo # Clone repository with submodules git clone --recurse-submodules # Serve locally with live reload hugo server -D # Build for production hugo --minify ``` -------------------------------- ### Customize Logo Placement and Appearance (TOML) Source: https://github.com/dsu-digital-sound-design/dad-498-audio-forensics/blob/master/content/test-slides/_index.md This TOML snippet illustrates advanced customization for logo placement and appearance on presentation slides. It includes parameters for size, position, and alternative text. ```toml [logo] src = "github-logo.png" # Location of the file displayed. alt = "" # Alt text. width = "15%" # Size of the file. diag = "1%" # How far from the top right should the file be. top = "1%" # Overrides diag. right = "1%" # Overrides diag. ``` -------------------------------- ### Markdown Usage for PDF Shortcode Source: https://context7.com/dsu-digital-sound-design/dad-498-audio-forensics/llms.txt Demonstrates how to use the 'pdf' shortcode within markdown files to embed PDF documents. It shows basic usage with just a URL and advanced usage with options to hide the paginator and specify a starting page. ```markdown {{< pdf url="dad-498-syllabus.pdf" >}} {{< pdf url="chapter4.pdf" hidePaginator="true" renderPageNum="5" >}} ``` -------------------------------- ### Markdown Structure for Lab Content Source: https://context7.com/dsu-digital-sound-design/dad-498-audio-forensics/llms.txt Defines the front matter and structure for lab content pages. It includes metadata like 'title', 'date', and 'draft' status, followed by markdown content detailing the lab's overview, installation steps, and required materials. ```markdown --- title: "Lab: Introduction to Adobe Audition for Forensic Audio Analysis" date: 2024-01-15 draft: false --- ## Overview **Duration**: ~30 minutes **Objective**: Learn to use Adobe Audition's essential tools for forensic audio examination: waveform view, spectrographic view, and critical listening techniques. ## Part 1: Installing Adobe Audition ### Installation Steps 1. Go to [https://creativecloud.adobe.com/](https://creativecloud.adobe.com/) 2. Click "Sign In" and select "Company or School Account" 3. Find "Adobe Audition" and click "Install" ## Part 2: Download Lab Materials ### Required Files - [forensic_speech_clean.wav](/media/handling-forensic-audio-lab/forensic_speech_clean.wav) - [forensic_speech_clean.mp3](/media/handling-forensic-audio-lab/forensic_speech_clean.mp3) - [forensic_with_artifacts.wav](/media/handling-forensic-audio-lab/forensic_with_artifacts.wav) ## Part 3: Waveform Analysis **Zoom Controls**: - Horizontal zoom: Use `=` to zoom in, `-` to zoom out - Vertical zoom: Mouse wheel - Fit to window: Press `\` (backslash) **What to Look For**: - **Clicks**: Sharp vertical spikes - **Dropouts**: Sudden drop to silence - **Discontinuities**: Abrupt waveform changes ``` -------------------------------- ### Initialize PDF Rendering with PDF.js Source: https://github.com/dsu-digital-sound-design/dad-498-audio-forensics/blob/master/layouts/shortcodes/pdf.html This JavaScript code initializes the PDF rendering process using the PDF.js library. It sets up the worker source, retrieves PDF document URL and rendering options from the DOM, and prepares the canvas and paginator elements for display. It handles initial page rendering and asynchronous loading of the PDF document. ```javascript window.onload = function () { // If absolute URL from the remote server is provided, configure the CORS // header on that server. var url = "{{.Site.BaseURL}}" + '{{ .Get "url" }}'; var hidePaginator = "{{ .Get " hidePaginator " }}" === "true"; var hideLoader = "{{ .Get " hideLoader " }}" === "true"; var selectedPageNum = parseInt("{{ .Get " renderPageNum " }}") || 1; // Loaded via