Font size
WorksheetsEarSketch Chapters 1 - 5
Total questions: 35
Worksheet time: 18mins
A _____ instructs the computer to execute a code section repeatedly.
for loop
fit media
control flow
print function
A for loop consists of:
loop counter, range, loop body
loop body, loop counter, range
range, loop body, loop counter
loop body, range, loop counter
_____ displays the data in the console and is useful for debugging.
fitMedia( )
forLoop( )
print( )
makeBeat( )
_____, _____, and _____ can all be used to debug code.
loops, makeBeat, and fitMedia
syntax, punctuation, and camel case
control flow, printing, and the console
printing, commenting out code, and the console
Common coding errors include:
misspelling
case sensitivity
punctuation
initializing variables
Which of the following is NOT a component of a for loop?
loop body
loop interpreter
loop counter
loop range
Which of the following is NOT a good use of loops in a musical composition?
Repeating a beat on several consecutive measures
Creating a beat pattern that never repeats
Placing musical clips on every third measure
Placing musical clips on odd measures
Which of the following is NOT a recommended technique for debugging?
Printing variable values to the console
Looking at error lines identified in the console
Asking others for help
Copying and pasting code into Google
Which of the following is NOT something that can be printed to the console?
Code Comments
Strings
Mathematical Expressions
Variables
Which of these options is a string?
5
Five
"Five"
FIVE
What does "0" represent in a beat pattern string?
Rest
Start playing the clip
Extend the clip
End the clip
To use the makeBeat( ) function, what is the order of the parameters you need to provide?
clip name, track, start measure, beat string
clip name, start measure, end measure, beat string
beat string, track, start measure, clip name
tempo, track, start measure, end measure
What does setTempo( ) allow you to do?
Change the qualities of sound within a project
Create a drum beat
Add a sound to a track
Specify the tempo of a song
What can you use comments for?
Organizing your code
Making your code easy to read for other programmers
Writing a description of your script at the beginning of your script
Initialize running the script
How do you get a copyright?
By buying a patent
By joining a secret organization
By choosing a license for your work
By creating and publishing any new work
Which of the following is NOT a panel in the EarSketch workspace?
The code editor
The DAW
The console
The effects browser
One script corresponds to _____
One EarSketch song
One programming language
One programmer
One line of code
Where in the EarSketch workspace can you get information about your bugs?
The sound browser
The console
The DAW
The script browser
_____ allow us to change qualities of sounds.
Effects
Envelopes
Parameter
Value
Arguments
Call
Execute
Parameters
API
Floating point
whole numbers, like 0, 5, or -26
rational numbers, like 0.125 or -21.0
represents text, like "0000----0000----"
sound bouncing off the walls and returning to your ears
Reverb (short for reverberation)
sound bouncing off walls and returning to your ears
function allowing you to slow the tempo
function allowing decrescendo
ambience
_____ allow us to define how an effect changes over time.
Envelopes
Ramp
Optional parameters
Automated effects
A _____ is the line created between the points in an envelope.
reverb
optional parameters
effect
ramp
_____ creates an echo
Volume
Delay
Reverb
Panning
_____ makes it feel like the sound is played in a large room.
Panning
Volume
Reverb
Delay
_____ places your music on the left or right side.
Volume
Delay
Reverb
Panning
_____ contain instructions for the computer to execute.
Arguments
Calls
Functions
Effects
Data is sent to functions by _____, which affect how the function executes.
functions
arguments
call
effects
The syntax of a function _____ with two arguments is myFunction(argument1, argument2).
call
argument
effect
envelope
What does an effect allow you to do in EarSketch?
Add a sound to a track
Change the qualities of sound within a project
Change the tempo of the song
Create a drum beat
Which of these is NOT a setEffect( ) argument?
Track number
Effect name
Clip name
Effect value
How would you set the delay time of a delay effect on track 3 to 50 milliseconds?
setEffect(50, DELAY_FEEDBACK, 1)
fitMedia(DELAY, 3, DELAY_TIME, 50.0)
setEffect(DELAY, 3, DELAY_TIME, 50.0
setEffect(3, DELAY, DELAY_TIME, 50.0)
Which of the following is not a parameter used with setEffect( ) envelopes?
Start value
Effect
Clip length
Track number
What would the following function do?
setEffect(1, DISTORTION, DISTO_GAIN, 0, 1, 50, 11)
Decrease the volume on track 1 over 50 measures
Increase the amount of distortion on track 1 over 10 measures.
Decrease the amount of distortion on track 1 over 50 measures.
Increase the volume of track 1 over 10 measures.
