12
Scribbler Music Web Design

Scribbler Music

  • Upload
    ova

  • View
    39

  • Download
    0

Embed Size (px)

DESCRIPTION

Scribbler Music. Web Design. Notes. Your robot can play a note by “beeping” Every note in music has a “frequency” Physics of Frequencies: ( http ://www.phy.mtu.edu/~ suits/notefreqs.html ) Notes can be controlled by beeping the correct frequency. - PowerPoint PPT Presentation

Citation preview

Scribbler Music

Scribbler MusicWeb DesignNotesYour robot can play a note by beepingEvery note in music has a frequencyPhysics of Frequencies:(http://www.phy.mtu.edu/~suits/notefreqs.html)Notes can be controlled by beeping the correct frequency.beep(1, 440) -- Beep note A4 (Thats an A in the 4th octave)Scribbler MusicProgramming music by frequency is difficult!Its a lot of numbers!Scribbler has set of functions that help go from notes to frequencies.Scribbler has a range of 8 octaves (same as a piano)Scribbler has all the notes. They are denoted:C C#/Db D D#/Eb E F F#/Gb G G#/Ab A A#/Bb B

Scribbler musicThat is also the default octave which is the 5th octave.You can create a song in python/scribbler by simply giving the note and length of the note:e .25d .25c .25d .25e .25e .25e .25d .25d .25d .25e .25g .25g .25e .25d .25c .25d .25e .25e .25e .25e .25d .25d .25e .25d .25c .254HarmonyScribbler Robots can play 2 notes simultaneously. Simply list the 2 notes on the line. F G .25F G .25F G .25F G .25F G .25F G .25

E G .25E G .25E G .25E G .25E G .25E G .25

D B .25D B .25D B .25D B .25D B .25D B .25

C C6 .5C C6 .25C C6 .25D B .25E A .25

F G .25F G .25F G .25F G .25F G .25F G .25

E G .25E G .25E G .25E G .25E G .25E G .25

D B .25D B .25D B .25D B .25E A .35D B .25

C C6 .25F G .25C C6 .25

C1 .25C1 .25C6 E6 .25B D6 .50A C6 .25G B .50F A .25E G .25E G .25E G .25E G .25F A .25E G .25D F .25D F .25D F .25D F .25E G .25D F .25C E .25D F .25E G .25

REST .50C6 E6 .25B D6 .50A C6 .25G B .50F A .25E G .25E G .25E G .25E G .25F A .25E G .25D F .25D F .25D F .25D F .25E G .25D F .25C E .25

F G .25F G .25F G .25F G .25F G .25F G .25

E G .25E G .25E G .25E G .25E G .25E G .25

D B .25D B .25D B .25D B .25D B .25D B .25

C C6 .5C C6 .5C C6 .5D B .25E A .25

F G .25F G .25F G .25F G .25F G .25F G .25

E G .25E G .25E G .25E G .25E G .25E G .25

D B .25D B .25D B .25D B .25E A .35D B .25

C C6 .25F G .25C C6 .505SongsOnce you have the notes you need to add the timing. A whole note is 1 and half note is .5, etc. Normally a whole note is about .5 secs. You can change the tempo but sending a parameter in playSong() function.Now take the notes and the timing and you create a song!Listen

Music

Chariots of FireDb 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 0.5Db F 0.5

Db 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 1

Db 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 0.5Db F 0.5

F 0.25Db Gb 0.25F 0.25Db 0.25Gb4 Db 1

Db 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 0.5Db F 0.5

Db 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 0.5Db F 0.5

Db 0.25Db Gb 0.25Ab 0.25Bb 0.25Db Ab 0.5Db F 0.5

F 0.25Db Gb 0.25F 0.25Db 0.25Gb4 Db 1

Db6 .25C6 .25Bb .25Ab .25F C6 .375Ab .125Db Bb .375Gb .125Db Ab .375Db Db6 .125Db C6 .25Db Bb .25Db Ab .25F C6 1C Gb 1F 2

Db6 .25C6 .25Bb .25Ab .25F C6 .375F Ab .125Db Bb .375Db Gb .125Db Ab .375Db F .125Db Gb .25Db F .25Db .25Db 1Playing a songfrom myro import *robot=Scribbler()s=readSong("chariots of fire.txt")robot.playSong(s)

Your ProjectFind a song. You need the music to the song!Code a minute of the song correctly in scribbler musicEveryone needs to do their own song! There are enough robots for everyone.

MusicWhole note/restHalf note/restQuarter note/restEighth note/rest

Notes of the scaleIf you dont understand Ks and Hs, talk to me and Ill try and explain!