Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Computing with Music: Creating Musical Patterns John Peterson No Longer.

Slides:



Advertisements
Similar presentations
Class 4A Wed only Guitar I and Guitar II
Advertisements

Chapter 2: Rhythm and Pitch
Final Review 8th grade Band 4th quarter Time Signature Indicates the of beats per measure.
Lessons in Mr. Boyes Middle School Music Click for Menu.
MUSIC Elements, History, and Performance. Timbre- Sound Quality Instrument Families STRINGS Violin Viola Cello Bass Harp Guitar Banjo Piano WIND Saxaphone.
What is the purpose of learning musical elements?
Elements of Music Finish Start Tempo and Dynamics Timbre Harmony Form
The Language Of Music Music Theory Staff, Clefs, Time, Notation By Mr. White.
Welcome to Sight Singing 101
Instruments of the Orchestra
Yr 11 Vocab Test You are about to answer 30 questions about the vocabulary you need to know for the GCSE listening exam. You will see a key word or a.
LMMS is a digital audio workstation that allows you to produce instrumental songs. LMMS stands for Linux MultiMedia Studio. The software was originally.
Elements of Music. Harmony Two or more notes together Two or more notes together Chord – three or more notes at one time Chord – three or more notes at.
Chapter 2: Rhythm and Pitch Pitch. Key Terms Pitch Scale Interval Octave Diatonic scale Chromatic scale Flat Sharp Half step Whole step Playing in tune.
MUSIC 1000A Lecture 2 Review and announcements Attend more than one concert before the concert report is due. Course objective Introduction to effect.
Something’s Coming – From West Side Story
Classical Music Higher Music.
Instruments of the Orchestra. There are FOUR families of instruments Just like human families, instrumental families come in all shapes and sizes The.
ElementsSoundHistory Note equal in value to 1/4 that of a whole note.
Musical Instruments.
A brief reference and explanation Instrument Transposition.
Lesson 4. Piano Man Verse A.  GO: For 10 points, Login immediately and go to Piano I: Lessons: Lesson 4a. Use this PowerPoint Slide to learn each hand.
The Language Of Music Music Theory Part 2 Staff, Clefs, Time, Notation By Mr. White.
What is Music? Music is Organized Sound Sound with a purpose or meaning.
Freddie The Freeloader
Getting Ready to Play AOA Page 2 Getting Ready to Play 1.Instrument needs to be ready 2.Properly put instrument together AOA Page 2.
Have discovered the music of the organ Have been introduced to the concept of ground bass Have been introduced to the concept of pedal BY THE END OF THIS.
‘EINE KLEINE NACHTMUSIK’
Music Core Content.
Christmas Final Review 2nd quarter Band Time Signature Indicates the number of beats per measure.
Making music Consider music as structured sound Components include –Pitch –Duration –Instrument –Stereo direction Each attribute has a set of possible.
An Introduction to Music Grade 3
Elements of Music & More!
Final Review 7th grade Band 4th quarter Time Signature Indicates the number of beats per measure.
When Miss Jaques needs your attention (give her your eyes, freeze, give her all of your attention, and do not talk) Chill can happen by saying Chill,
S IGHT -R EADING V OCAL M USIC Dr. J.E.Neighbours.
Which instruments are members of the percussion family? A.) violin, viola, cello B.) xylophone, snare drum bass drum C.) oboe, bassoon, clarinet,
The Orchestra.
Musical Instruments.
Elements of Music. When you listen to a piece of music, you'll notice that it has several different characteristics; it may be soft or loud, slow or fast,
Year 7.  Music Theory (Pitch and Rhythm)  Melody Writing Rules  Instruments of the Orchestra, including their families and pitch range  Benjamin Britten’s.
MUSIC in E.S.O. 1st Course Linguistic Innovation Project.
Unit 1.2 By Cheyenne Morgan. Sequencing projects 1 This one is based on vocals,drums, bass, clavinet and lead synth. This one is the one with different.
James Hornsby Connor Bradshaw 1168 Unit 1. Unit Unit  I will use Garageband because it has simple user interface, it is easy to use.
We call : etc. at the beginning of the music the _____ signatures Question 1.
What’s that scale?? 1 Note Grades should be available on some computer somewhere. The numbers are based on the total number of correct answers, so 100%
MUSC 1000 Intro to Music MWF10-10:50. Some General Questions: What is Music? Where do we listen to music? Are there any composers or bands you know or.
The of SOUND What is it? There are two ingredients for sound. First, we need a VIBRATION, then a MEDIUM.
Unit 1: Elements Music Notation. Notating Pitch  Notation – a system of writing music  Pitches are notated by notes on a staff  Staff – set of five.
6th Grade Keyboard Unit Essential Music Terms
Today We Begin... Make sure you have notebook and staff paper – you will want to take notes so you have a reference for your homework (it will be a couple.
Helen Jane Long Biography, Composition History, and Listening Guides Megan Koplin - Music 1010 Semester Project - 07/08/2013.
Things to Consider When Writing Melodies Vital Elements  Two most vital elements - rhythm and melody.  Harmonic structure of your composition will.
What makes a song…?.
Music Review Before we get started on the instrument we need to go over a few things to know beforehand. First….what is a beat?
The Music Staff How we read and write music Music is made up of sounds that we hear. We can make the sounds by singing or by playing instruments.
Music Core Content Instrument Families Voice Parts Brass S oprano Woodwind A lto String T enor Percussion Bass How each instrument or voice sounds.
Each corner of the room is a different answer (A, B, C, or D)
The Violin is the smallest and highest pitched of all the String instruments. String Instruments The order of the String instruments from highest pitched.
KS3 End of Year Exams Music Revision.
Chapter 2: Rhythm and Pitch
Elements of music All forms of music from all societies and cultures have common characteristics and elements Rhythm - How the beat is broken down Melody.
How are the elements of music shared through notation?
Instruments and Clefs Families Ranges Clefs.
Chapter 2: Rhythm and Pitch
Music Appreciation Musical Instruments.
The Basic Symbols of Music Notation
Introduction to the Major Scale
Introduction Welcome to MyTunes You will learn to make
Chapter 2: Rhythm and Pitch
Presentation transcript:

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Computing with Music: Creating Musical Patterns John Peterson No Longer At Yale University

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Play Some Music Copy “haskore” from my shared to C: Click on “output.mid” and make sure you hear something then close the player. Use TextPad to open “test1.hs” Change the e3 to ef3 Save this file and then double click it. If everything is OK, type “play music1” Open output.mid again to see if it worked. Change something, save it, and type “:r” to reload Play it again!

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Notation The computer wants you to write down definitions in a very particular way: name = thing melody = c4 & d4 & e4 chord n = n ! up 4 n ! up 7 n These have to start in the first column!

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University About Haskore A program is like a dictionary: it is a set of definitions, each starting in the leftmost column, in any order you want. There is a built-in vocabulary that you use to build new definitions You “load in” a program and can then perform any piece of music defined in the program using “play”

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University A Vocabulary of Music Instead of nouns, verbs, or adjectives our language will have the following “types” of things: Music - something you can listen to Music glue - something that combines music together Music changer - something that modifies music Numbers - things like 2 or 5+7 or 3.4 Lists – a sequence of things like [c4, d4, e4] In addition we’ll also add our own functions which can use these objects.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Notation We write “f x” instead of “f(x)” and “f x y” instead of “f(x,y)”. We still use parens for grouping: “f (g 1) (h 2)”. Function application happens before operators like “+”: “f x + g y” means “(f x) + (g y)” You have to say “0.2” instead of “.2”

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Note Names The basic vocabulary gives names to the notes of the scale. Notes are the letters a - g. We add a number to them to give an “octave number”. Notes can also be flat (f) or sharp (s). These notes are all “whole notes”. c3 e4 af4 gs7There are lots of C notes so we need the number too

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Rests There is a special note called a rest” – it doesn’t have a sound but it’s still useful. Use “r” for a rest note.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Naming Music Names allow you to use the same bit of music over and over. Like “naming a song” and asking the DJ to play it for you. As you do exercises, you will give names to pieces of music. Use any name you want but you can’t use the same name twice. As you go on to other exercises you can use these named pieces of music again.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Music Glue We can “glue” pieces of music together in two ways: play one first and then the other, or play both at the same time. We use “&” for playing sequentially and “!” for playing at the same time. You can glue any two pieces of music, not just single notes. Exercise 1: Write three phrases, each with three notes. One sequential, one all together, and one using both & and !. Put a rest in one of them Add these to your “MyMusic” file and play them. Give each a different name.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Changing Music There are lots of ways to change a piece of music: Play it faster or slower Play it higher or lower Play on different instruments All of these things are in our music vocabulary.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Faster / Slower (Tempo) Musicians use “whole notes”, “half notes”, “quarter notes”, and so on to tell a performer how long to play a note. A half note is 1/2 as long as a whole note (duh), and so on. We use music changers to make any piece of music (not just notes!) go faster or slower.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Simple Tempo Changers Here are the names of our tempo changers: h - turns whole notes into half notes (go twice as fast) q - quarter notes (4x as fast) e - eighth notes (8x as fast) s - sixteenth notes (16x as fast) dh, dq, de, ds – dotted notes (Adds an extra ½ beat)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Any Speed You Want! You can also say “faster” or “slower”. For example, “h” is just “faster 2”. Exercise 2: write a 4 note phrase that uses a half, quarter, and two eighth notes and play it. Then write another definition that plays the phrase twice at different speeds.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Moving music up and down The “up” and “down” functions change the pitch in a piece of music. You tell these functions how many “piano keys” to move the music. m1 = c3 & d3 & e3 m2 = up 2 m1 m3 = m1 ! m2 ! up 4 m1

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Different Instruments There are a lot of different instruments you can play music with. piano, harpsichord, vibes, organ, guitar, electric, bass, violin, viola, cello, trumpet, trombone, horn, sax, oboe, bassoon, clarinet, flute, panFlute, kalimba, woodblock m = oboe (c4 & g4) Exercise 3: take a piece of music you have already written and play it three times, each with a different instrument and starting with a different note.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Reversing You can reverse a piece of music with the “rev” function. m1 = q (c4 & e3 & g3) m2 = rev m1

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Activity 1: A Simple Pattern Write a piece of music from 2 different musical patterns, each containing just 4 notes. Use naming, reversal, tempo changes, and transposition to create a short bit of music. A small example to get you started is in MyMusic.hs Guidelines: * not too long! * think of a nice pattern for your piece

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Functions Definitions often are parameterized. That is, they contain names that are “filled in” when the definition is used. Example: a major chord built on a note n is n played with the notes 4 and 7 steps higher than n. majchord n = n ! up 4 n ! up 7 n parameter

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Play it Again Here’s a really simple pattern: play something twice. We express this by giving “twice” a parameter: the music to be played. twice music = music & music Here’s how it’s used: m2 = twice m1

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Exercise 4 Many songs are in “ABA” form. Write a function that has two parameters, the A and B parts of the song, and puts them all together. Test this with two phrases you’ve already written.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University What Just Happened? Our computer language allows us to give names to musical patterns and use them to make it easier to write music. You can’t do that using regular sheet music (well, you can do simple patterns like twice or ABA …)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University General Repetition We can use a counter to repeat “n” times instead of just twice: rpt 0 m = empty rpt n m = m & rpt (n-1) m Use it like this: m1 = rpt 3 m2

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Exercise 5 Use rpt to add a repeating bass to a piece of music. Define two fragments: a slow one with 4 whole notes another one with 4 quarter notes. Play them at the same time, repeating the one with quarter notes so they last the same amount of time. p1 = … p2 = … ex5 = p1 ! (rpt 4 p2)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University One More Music Function The “invert” function turns music upside down. You need to give it the note that won’t change; notes above go below and notes below go above. invertPhrase = q (c4 & d4 & e4 & g4) invertDemo = invert c4 invertPhrase This is in MyMusic – try it out

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Functions in Functions Function arguments need not be just notes – they can be functions that change notes. Here’s a function that repeats and changes music: rptChange 1 f m = m rptChange n f m = m & rptChange (n-1) f (f m)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Using rptChange What do these do? m1 = rptChange 10 (up 1) (q c4) m2 = rptChange 10 (faster (5/4)) (q c4) addNote m = q c4 & up 2 m m3 = rptChange 5 addNote (q c4)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Exercise 6 Write a short phrase (1 - 4 notes) and then use repeatChange to do something new with it. Some possibilities: add a new note each time add an echo reverse the music each time invert the music each time

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Pattern Music We’ll conclude with two ways of creating simple musical patterns rseq n seed [m1, m2, m3, …mn] This creates a random seqence of n selections drawn from m1.. mn. The “seed” determines which specific sequence you get – use any integer you want here. If you don’t like the music you get maybe changing this helps.

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Example p1 = e (d4 & e4 & g4) p2 = s (c5 & a4 & g4 & e4 & d4) p3 = q (c4 ! e4 ! g4 ! a4) p4 = q (e4 & a4) rm = rseq [p1, p2, p3, p4]

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Random Mutation A more involved way of generating random patterns is to start with a piece of music and then randomly apply some sort of music transformation repeatedly You need: * number of mutations * random seed * a list of music changers * a piece of music to start with

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Random Mutation Example ch1 = up 4 ch2 = up 3 ch3 m = s c4 & m ch4 = faster (5/4) rm2 = rchange [ch1, ch2, ch3, ch4] (s e4)

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Activity 2 Using a phrases of no more that three notes write a musical pattern. You can use any of the functions we’ve already seen like rpt or rptChange or rseq or or rchange you can define your own pattern function. Use both & and ! Use different instruments Write a new function if you want

Computing with Music: Creating Musical Patterns Campy, 2005 Quinnipiac University Homework #1 Create an interesting piece of music – make it abstract, not something you need to key a lot of notes for. Make a wiki page with your music on it – upload the audio file too. Read about “Extreme Programming” for Wednesday.