1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Genrish500 [490]
2 years ago
10

Assignment 10: Create a Song of the Summer edhesive

Computers and Technology
2 answers:
USPshnik [31]2 years ago
6 0

Answer: This is not mine.

from earsketch import *

from random import *

init()

setTempo(120)

genre = readInput("Pick a genre: Hiphop, RNB, or Rock.")

if genre == ("Hiphop"): measure = []

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 1, 5)

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 7, 11)

fitMedia(CIARA_SET_DRUMBEAT_5, 3, 7, 11)

fitMedia(CIARA_SET_BASSLINE_2, 2, 7, 11)

setEffect(1, VOLUME, GAIN, 0, 4, -60, 6)

setEffect(1, VOLUME, GAIN, -60, 6, 0, 7)

fillDrum = CIARA_SET_DRUMBEAT_5

beat = "0+++0+++0-000+00"

index = randint(1,5)

for measure in range (1, 7, 1):

  for index in range (index):

       makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(7, 11)

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 10, 16)

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 18, 22)

fitMedia(CIARA_SET_DRUMBEAT_5, 3, 18, 22)

fitMedia(CIARA_SET_BASSLINE_2, 2, 18, 22)

for measure in range(11, 18, 1):

   makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(17, 22)

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 23, 27)

fitMedia(CIARA_SET_THEME_ATMOS_2, 1, 29, 33)

fitMedia(CIARA_SET_DRUMBEAT_5, 3, 29, 33)

fitMedia(CIARA_SET_BASSLINE_2, 2, 29, 33)

for measure in range(22, 29, 1):

 makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(29, 33)

if genre == ("RNB"): measure = []

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 1, 5)

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 7, 11)

fitMedia(CIARA_SET_DRUMBEAT_1, 3, 7, 11)

fitMedia(CIARA_SET_BASSLINE_2, 2, 7, 11)

setEffect(1, VOLUME, GAIN, 0, 4, -60, 6)

setEffect(1, VOLUME, GAIN, -60, 6, 0, 7)

fillDrum = CIARA_SET_DRUMBEAT_1

beat = "0+++0+++0-000+00"

index = randint(1,5)

if measure in range (1, 7, 1):

   for index in range (index):

       makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(7, 11)

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 10, 16)

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 18, 22)

fitMedia(CIARA_SET_DRUMBEAT_1, 3, 18, 22)

fitMedia(CIARA_SET_BASSLINE_2, 2, 18, 22)

for measure in range(11, 18, 1):

   makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(17, 22)

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 23, 27)

fitMedia(CIARA_SET_THEME_ATMOS_1, 1, 29, 33)

fitMedia(CIARA_SET_DRUMBEAT_1, 3, 29, 33)

fitMedia(CIARA_SET_BASSLINE_2, 2, 29, 33)

for measure in range(22, 29, 1):

   makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(29, 33)

if genre == ("Rock"): measure = []

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 1, 5)

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 7, 11)

fitMedia(RD_ROCK_POPELECTRICBASS_1, 3, 7, 11)

fitMedia(CIARA_SET_BASSLINE_2, 2, 7, 11)

setEffect(1, VOLUME, GAIN, 0, 4, -60, 6)

setEffect(1, VOLUME, GAIN, -60, 6, 0, 7)

fillDrum = RD_ROCK_POPELECTRICBASS_1

beat = "0+++0+++0-000+00"

index = randint(1,5)

for measure in range (1, 7, 1):

   for index in range (index):

       makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(7, 11)

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 10, 16)

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 18, 22)

fitMedia(RD_ROCK_POPELECTRICBASS_1, 3, 18, 22)

fitMedia(CIARA_SET_BASSLINE_2, 2, 18, 22)

for measure in range(11, 18, 1):

   makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(17, 22)

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 23, 27)

fitMedia(RD_ROCK_POPELECTRICLEAD_2, 1, 29, 33)

fitMedia(RD_ROCK_POPELECTRICBASS_1, 3, 29, 33)

fitMedia(CIARA_SET_BASSLINE_2, 2, 29, 33)

for measure in range(22, 29, 1):

   makeBeat(fillDrum, 3, measure, beat)

def myFunction(startMeasure, endMeasure):

   fitMedia(CIARA_SET_BASSLINE_1, 4, startMeasure, endMeasure)

myFunction(29, 33)

finish()

Explanation:

Marrrta [24]2 years ago
3 0

To create a song of the Summer edhesive you can use the Python Code,

which will help you create sections based on the music genre.

<h3 /><h3>What is Python code?</h3>

It corresponds to a programming language that enables the development of various media platforms, such as games, social networks and artificial intelligence applications.

Therefore, the Python code helps to automate tasks as it is an open-source language, allowing communication and adaptation of different objectives.

Find out more about Phython code here:

brainly.com/question/16397886

#SPJ1

You might be interested in
define a function named quarter_num that has one parameter number and return quarter of the number. For example: if we called th
IgorLugansk [536]
Idk what programming language you use so

private int quarter_num(int num) {
return num / 4;
}
3 0
3 years ago
A technician looks at a motherboard and sees a 24-pin connector. What component would connect to the motherboard through the use
Firlakuza [10]
<h2>Power supply connects to the motherboard through the use of the 24 pin connector.</h2>

Explanation:

Power supply

  • is an electrical device
  • source of it come from electrical grid
  • ability to convert different form of energy (solar, mechanical & chemical) to electrical energy
  • Converts main AC voltage to low-voltage current
  • 3 types - linear voltage, switch, unregulated
  • It is also called PSU unit (Power supply unit)
  • have to protect from over current, high voltage, etc
  • Mandatory for laptop to charge and use later
4 0
3 years ago
A program asks the user to enter the unit price of a chair and the quantity he is buying. It calculates and displays the total p
Shtirlitz [24]

Answer:

The c++ program for the given scenario is shown below.

#include <iostream>

using namespace std;

int main() {

   // variables declared for unit price, quantity, total price

// price is taken as double

// quantity is taken as integer

   double chair_price, total_price;

   int chair_qty;

   cout << " Enter the unit price of the chair : " << endl;

   cin >> chair_price;

   cout << " Enter the number of the chairs to be bought : " << endl;

   cin >> chair_qty;

   total_price = chair_price * chair_qty;

   cout << " The total price for " << chair_qty << " chairs is " << total_price << endl;

   return 0;

}

OUTPUT

Enter the unit price of the chair  

23.4

Enter the number of the chairs to be bought  

10

The total price for 10 chairs is 234

Explanation:

 

1. The variables for unit price, quantity of chairs and total price of chairs are declared. The reason for data type is explained below.

double chair_price, total_price;

   int chair_qty;

2. The variables are not initialized since their values is to be entered by the user.

3. First, the user is prompted to enter the unit price of the chair. This is stored in a double variable since price can be in decimals.

cin >> chair_price;

4. Next, the user enters the number of chairs to be bought. This value is stored in an integer variable since quantity can not be a decimal number.

cin >> chair_qty;

5. The total price is computed as the product of the unit price and the quantity of chairs. The total cost is also stored in a double variable since unit price can be in decimals.

total_price = chair_price * chair_qty;

6. Lastly, this total price is displayed to the standard output.

7. The keyword endl is used to insert new line.

4 0
3 years ago
( BRAINLIEST QUEATIONS)
GuDViN [60]

Answer:

the answer for this is automatic printing switcher

5 0
3 years ago
Installing a program is the process of
kenny6666 [7]

Installing a program is the process of  getting a given program ready for execution.

What is program installation?

Installation is known to be the setup of any computer program and it is made up of device drivers and plugins.

Note that it is said to be an act that entails the making of any program ready for execution as it used some specific configuration of a software or hardware.

Learn more about program installation from

brainly.com/question/1538272

#SPJ1

5 0
2 years ago
Other questions:
  • "A Windows laptop is being used by a teacher in an outdoor (but protected by an overhang) setting. What setting would ensure tha
    5·1 answer
  • Help 30 points I will mark brainliest!!!!!!!!!!!
    10·1 answer
  • Explain the design and development proccess?
    15·1 answer
  • Among the web programming languages, css is used to define _____ of the web page
    5·1 answer
  • Please help me please and thank you!
    14·1 answer
  • After which problem-solving stage should you take action?
    12·1 answer
  • Which group and tab do you need to be in to separate text into two columns? Paragraph group and Insert tab Page Layout group and
    8·1 answer
  • After an attacker has successfully gained remote access to a server with minimal privileges, which of the following is their nex
    15·1 answer
  • The greater the profit motive in an economic system , the greater the likelihood of a.Innovation b.Equity c.Security d.Governmen
    15·1 answer
  • Looking for similarities between concepts or problems is referred to as
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!