GitHub and Git; Intro to Sound unit
Texts to have read/watched:
- Git and GitHub for Poets, starting at least with the Introduction
Work to have achieved:
- Download and install what you need to use Git: at the command line and, optionally, using the Desktop app
Plan for the day
- GitHub for Poets review (15-25 min)
- First project assignment: Soundscape Narrative (10-15 min)
- Audacity Tour, by way of a past-semester example (10-15 min)
- Git Beyond GitHub (10 min)
- Multiple views of the same files
- HW Preview
1. GitHub for Poets review (25 min)
EXT: What do you think are the limitations of the GitHub interface? What are some things you might want to do with Git that you haven’t yet seen? Conversely, what do you think GitHub, as a website, might do better than Git at the command line?
Okay, so back to full-class discussion. What are your takeaways? Your remaining questions?
2. First project: Soundscape Narrative (20 min)
As I explained in the syllabus, your first project is to arrange layers of sound to convey a sense of place and story. In assigning this, I have two main goals for you:
- to learn how to capture sound and edit it using digital tools, and
- to explore the affordances of sound as a medium,
with particular attention to its ability to communicate
- immersive environment and
- narrative pacing and change.
Let’s read through this together.
3. Audacity Tour, by way of a past-semester example (10-15 min)
I want to start with a behind-the-scenes view of one of the finished soundscapes I’ll ask you to listen to for homework.
This is Tyller Barner’s “Coffeeshop Conversations,” from Spring 2019. I’m very happy to talk at some point about the piece itself, but for now, let’s see what it can show us about this new application, Audacity.
Initial questions to ask:
- How is the space of the app laid out?
- What’s given the most prominent visual focus?
- What features/tools do you have quick access to?
Now let’s play
Project files vs. rendered files
NB: You should never need to manipulate the files in the _data folder directly: just let Audacity handle them.
4a. Git Beyond GitHub (10 min)
The number of files in the _data folder can get quite large – easily into the hundreds. And the GitHub web interface, as great as it is, cannot handle that many files at once. Trying might well break your project.
So we’ll need another solution.
Luckily, we have one! As you’ll have learned from the videos, GitHub as a (mostly web-based) file-sharing and project-management platform is built on top another system – Git – which runs mostly on text commands.
And Git can handle quite a bit more than GitHub can… and then share it seamlessly to GitHub, with all the hard work taken care of.
In particular:
- Git lets you "stage" multiple files at once and wrap them in a single commit.
- Git lets you keep track of changes locally (on your own computer) before you're ready to share them with the world – and then to "push" multiple commits all at once.
- If you use the command line, you can also access and activate more features of Git than the GitHub defaults allow.
Clone Warriors
All of that depends on getting your files from GitHub onto your own computer, while still keeping them linked and tracked.
Which means it’s now time to clone the repository you just created: that is, let’s download it and make sure we’re still tracking it with the same Git commit history.
There are three ways…
5. Multiple Views of the Same Files
Where do the files go when you clone them? You could use Windows Explorer or Mac Finder to open the folder you just saved to…
… but how to do commits there? How to see file history?
The command line: behind the scenes
See also the “Git and GitHub for Poets” episode 1.5, intro to the command line.
Much as a repository is just another name for a file folder you’re tracking, the command line is just another way of seeing the files you’re used to seeing in windows. (Note the lowercase ‘w.’) Instead of a graphical interface, everything here will be text.
The command line goes by many names: a.k.a. Terminal on Mac, or GitBash (or PowerShell) on Windows. If you’re not sure how to open it, try these instructions.
To get where you’re going:
cd path/to/your/folder # change directory
pwd # print working directory (i.e. where am I?)
ls # list directory contents
cd .. # go up one directory level
cd ~ # go to home folder
open . # open the current directory in Finder/Explorer
NB: As a shortcut to the folder path in step one above, you can type cd
(note the space) and just drag-and-drop the folder from Finder/Explorer into the command line.
NB: You can also press tab
to autocomplete a partial file or folder name.
Basic git workflow:
git status # see what git is tracking / what's changed
git pull # download changes from GitHub
git status # start of loop
# here you make changes to your files
git add %filename% # optionally repeat
git status
git commit -m "your headline commit message - note the quotes" -m "your optional extra details, if you want them, just go in a second message."
# repeat add/commit loop as desired
git push # publish your changes
NB: Git may present you with some error messages, especially the first time you try to use it. Don’t panic: read what the error message has to say! Most of the time, they’ll give you some clear instructions on what to do to fix the problem.
Yet another view
Alternately, if you’ve downloaded GitHub Desktop, you can use a visual interface to accomplish all of those local commands. And it’ll also generously prompt you to push changes when you’ve finished committing them.
(NB: If you haven’t tried GH Desktop in a few years, it’s vastly improved since then.)
4b. Back to Git Beyond GitHub
- rename the README.md file to ASSIGNMENT.md, and
- create a new README.md file that describes, in your own words, what you think you might make in this space. (Don't worry, you can always change it later.)
Atom editor would be especially useful here!
EXT: If you’re already good with all this – e.g. if you’ve used Git before – please help others who are catching up.
HW for next time:
- Download the Audacity audio editor, or update to the latest version if you already have it.
- Optionally also download the separate FFmpeg import/export library
-
Bring headphones – we should have time to practice using it!
- Listen to the following recordings made by students in response to a similar prompt:
- Barner, Tyller. “Coffee Shop Conversations.” Digital Media and Pedagogy Showcase Spring 2019. http://dmap.pitt.edu/node/248.
- Funke, Taylor. “Soundscape - Day In: Day Out.” Digital Media and Pedagogy Showcase Spring 2018. http://dmap.pitt.edu/node/177.
- Quaid, Fatema. “A Haunted Halt.” Digital Media and Pedagogy Showcase Fall 2019. http://dmap.pitt.edu/node/295.
- Wick, Thomas. “Soundscape - Expedition to Planets Unknown.” Digital Media and Pedagogy Showcase Spring 2018. http://dmap.pitt.edu/node/178. (NB: starts loud; turn volume down)
- Listen, as well, to the following audio tracks from the first few minutes of successful TV dramas:
- Breaking Bad. Sound extracted from https://www.youtube.com/watch?v=D-G8weg2Ndg under Fair Use, for instructional purposes.
- Battlestar Galactica. Sound extracted from https://www.youtube.com/watch?v=9VBTcDF1eVQ under Fair Use, for instructional purposes. (NB: starts very quiet)
- Write a short blog post to the appropriate thread on the issue queue: What do you notice, i.e. what stands out while reading or listening? What does that suggest, or what does it make you wonder?
- Optional: This will be part of the homework for the weekend, but if you want to get a head start, read the following advice on sound recording, listening to the embedded clips:
- Fowkes, Stuart. “The Top 5 Things You Need to Make a Great Field Recording.” Cities & Memory: Field Recordings, Sound Map, Sound Art, 13 Aug. 2014, https://citiesandmemory.com/2014/08/top-5-things-need-make-great-field-recording/.
- MacAdam, Alison. “6 NPR Stories That Breathe Life into Neighborhood Scenes.” NPR Training, 30 Oct. 2015, https://training.npr.org/audio/six-npr-stories-that-breathe-life-into-neighborhood-scenes/. (Note the time skips she recommends: sometimes a long clip is embedded, but not meant to be listened to in full.)