SlideShare a Scribd company logo
1 of 13
Using setEffect() Function
D
A
Y
5
1MAGIC Presenter : Fatemeh Jamshidi. June 17-22 1/13
2/32
N
Description
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 2/13
● In music production we can use effects such as
Volume, Pan, Distortion, Delay, and Pitch to change
the properties of the sounds on tracks.
● With these effects we can add color and variety to
the musical samples.
● This lesson will describe the use of the setEffect()
function and demonstrate the effects of Volume,
Pan, and Distortion.
2/32
N
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 3/13
Effect: A tool to manipulate, process, shape, ad change the sound oftracks.
Parameter: The particular value of the effect changed by the envelope.
Examples include GAIN, LEFT_RIGHT,and MIX
Envelope: The values of the Effect parameter asmeasured over time.
This controls the change of effect over time.
Function for setting effects:
setEffect(track, effect, parameter, startValue, startMeasure, endValue,
endMeasure)
Example:
setEffect(1, VOLUME, GAIN, -40, 1, 5, 5)
Vocabulary
3/32
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 4/13
Volume Effect
● In one example, we want track 3 to ‘fade in’ from the beginning.
Therefore we need to use VOLUME effect and parameters.
Effect: VOLUME
Parameter: GAIN
Values: -60 (all the way quiet) to 12 (all the way loud) (we
will use -40 to 5) (Note that 0 is ‘unity’ or standard volume
gain setting)
Setting Volume Effects as following:
setEffect(track, VOLUME, GAIN, level, start, level2, end)
4/32
Assignment
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 5/13
Add the following code to call VOLUME effect:
1/5/32
Decreasing Volume
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 6/13
● Let us say we want the volume to decrease from measures 7 to
9 on track three. Write this code to decrease the volume:
6/32
Pan Effect
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 7/13
● Another effect we will experiment with is the PAN. This controls the
audio mix between the left and right channels. We will write an effect
envelope for track 2 that will do the following:
Effect: PAN
Parameter: LEFT_RIGHT
Values: -100 (all the way left)
100 (all the way right)
0 (evenly balanced)
7/32
Assignment
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 8/13
● Add these lines of code for PAN on track 2
8/32
Group Assignment
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 9/13
● We want the pattern of LEFT on measure 1 and
right on measure 2 to continue for the 9 measures.
Change the code to use a for loop to repeat this
pattern.
9/32
Distortion Effect
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 10/13
● We will now set distortion for track 1. Distortion adds color to
the sound by creating more ‘edge’ to the sound. The values
are:
Effect: DISTORTION
Parameter: DISTO_GAIN
Value: 20
Range: 0 to 50
Assignment
10/32
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 11/13
● Write this code to add distortion:
Assignment
10/32
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 12/13
● Create a section of music from measures 9 to 17. This
section should use at least one effect on each track.
Requirements:
1. Measures 9 to 17 have at least 3 tracks of music.
2. Each track must have at least one effect with
parameters that change over time.
3. You must use at least 2 effects other than VOLUME,
PAN, and DISTORTION.
HintforAssignment
10/32
D
A
Y
5
MAGIC Presenter : Fatemeh Jamshidi. June 17-22 13/13
Effect Parameter Min to Max Values
VOLUME GAIN -60 to 12
DELAY DELAY_TIME 0 to 300.0
CHORUS CHORUS_LENGTH 1.0 to 15.0
CHORUS CHORUS_NUMVOICES 1.0 to 8.0
DISTORTION DISTO_GAIN 0.0 to 50.0
FILTER FILTER_FREQ 20.0 to 20000.0
PAN LEFT_RIGHT -100 to 100 (Left
to Right)

More Related Content

Recently uploaded

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Day 5( magic camp)

  • 1. Using setEffect() Function D A Y 5 1MAGIC Presenter : Fatemeh Jamshidi. June 17-22 1/13
  • 2. 2/32 N Description D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 2/13 ● In music production we can use effects such as Volume, Pan, Distortion, Delay, and Pitch to change the properties of the sounds on tracks. ● With these effects we can add color and variety to the musical samples. ● This lesson will describe the use of the setEffect() function and demonstrate the effects of Volume, Pan, and Distortion.
  • 3. 2/32 N D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 3/13 Effect: A tool to manipulate, process, shape, ad change the sound oftracks. Parameter: The particular value of the effect changed by the envelope. Examples include GAIN, LEFT_RIGHT,and MIX Envelope: The values of the Effect parameter asmeasured over time. This controls the change of effect over time. Function for setting effects: setEffect(track, effect, parameter, startValue, startMeasure, endValue, endMeasure) Example: setEffect(1, VOLUME, GAIN, -40, 1, 5, 5) Vocabulary
  • 4. 3/32 D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 4/13 Volume Effect ● In one example, we want track 3 to ‘fade in’ from the beginning. Therefore we need to use VOLUME effect and parameters. Effect: VOLUME Parameter: GAIN Values: -60 (all the way quiet) to 12 (all the way loud) (we will use -40 to 5) (Note that 0 is ‘unity’ or standard volume gain setting) Setting Volume Effects as following: setEffect(track, VOLUME, GAIN, level, start, level2, end)
  • 5. 4/32 Assignment D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 5/13 Add the following code to call VOLUME effect:
  • 6. 1/5/32 Decreasing Volume D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 6/13 ● Let us say we want the volume to decrease from measures 7 to 9 on track three. Write this code to decrease the volume:
  • 7. 6/32 Pan Effect D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 7/13 ● Another effect we will experiment with is the PAN. This controls the audio mix between the left and right channels. We will write an effect envelope for track 2 that will do the following: Effect: PAN Parameter: LEFT_RIGHT Values: -100 (all the way left) 100 (all the way right) 0 (evenly balanced)
  • 8. 7/32 Assignment D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 8/13 ● Add these lines of code for PAN on track 2
  • 9. 8/32 Group Assignment D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 9/13 ● We want the pattern of LEFT on measure 1 and right on measure 2 to continue for the 9 measures. Change the code to use a for loop to repeat this pattern.
  • 10. 9/32 Distortion Effect D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 10/13 ● We will now set distortion for track 1. Distortion adds color to the sound by creating more ‘edge’ to the sound. The values are: Effect: DISTORTION Parameter: DISTO_GAIN Value: 20 Range: 0 to 50
  • 11. Assignment 10/32 D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 11/13 ● Write this code to add distortion:
  • 12. Assignment 10/32 D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 12/13 ● Create a section of music from measures 9 to 17. This section should use at least one effect on each track. Requirements: 1. Measures 9 to 17 have at least 3 tracks of music. 2. Each track must have at least one effect with parameters that change over time. 3. You must use at least 2 effects other than VOLUME, PAN, and DISTORTION.
  • 13. HintforAssignment 10/32 D A Y 5 MAGIC Presenter : Fatemeh Jamshidi. June 17-22 13/13 Effect Parameter Min to Max Values VOLUME GAIN -60 to 12 DELAY DELAY_TIME 0 to 300.0 CHORUS CHORUS_LENGTH 1.0 to 15.0 CHORUS CHORUS_NUMVOICES 1.0 to 8.0 DISTORTION DISTO_GAIN 0.0 to 50.0 FILTER FILTER_FREQ 20.0 to 20000.0 PAN LEFT_RIGHT -100 to 100 (Left to Right)