Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

EarSketch Asg 8.3 Sonification Convert the example above so that 1. The tempo is

ID: 3709577 • Letter: E

Question

EarSketch Asg 8.3 Sonification Convert the example above so that 1. The tempo is 100 2. Instead of PITCHSHIFT on track 1, setEffect() changes the VOLUME for both tracks 1 and 2 o the GAIN should be mapped between -20 and 0 3. Track 2 uses nakeBeat() instead of fitMledia). A clip should play for each line of data using ?the OSSNARE04 dip when the stock price is above 700 o the OS OPENHATO6 clip otherwise. Note: To make a single beat, use the nakeBeat) function as follows: makeBeat (OS OPENHAT06, 2, start, " 000 1033 4) -. ? fffffffffftifr trrfffi friff 8.6. Chapter 8 Project: Final Composition Create an original song in EarSketch using what you've learned in this course Make a 1 minute long song. A first word py fierst word (1lpy OLL

Explanation / Answer

copy code :

from earsketch import *

def unit_convert(in_val, in_min, in_max, out_min, out_max):

norm_val = float(in_val - in_min) / float(in_max - in_min)

return (norm_val * (out_max - out_min)) + out_min

init()

setTempo(100) #instead of 120, put 100

fitMedia(Y31_SYNTH_HARP_1,1,1,15)

fileData = importFile("http://earsketch.gatech.edu/itec2120/datargoog-data.csv")

lines = fileData.split(" ")

start = 1

for line in lines:

     values = line.split(',')

     price = float(values[-1])

     if price > 700: #makeBeat based on stock price

          makeBeat(OS_SNARE04, 2, start , "0+++")

     else:

          makeBeat(OS_OPENHAT06, 2, start , "0+++")

     setEffect(1, VOLUME, GAIN, -20, 1, 0, 1) #for track 1

     setEffect(2, VOLUME, GAIN, -20, 1, 0, 5) #for track 2

     start += 0.25 # increase by 1 beat per line of data

finish()

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote