1 / 6

Scribbler Music

Scribbler Music. Web Design. Notes. Your robot can play music by “beeping” the correct notes. 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.

kiele
Télécharger la présentation

Scribbler Music

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scribbler Music Web Design

  2. Notes • Your robot can play music by “beeping” the correct notes. • 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. • beep(1, 440) -- Beep note A4

  3. Scribbler Music • Programming music by frequency is difficult! • 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

  4. Scribbler music e .25 d .25 c .25 d .25 e .25 e .25 e .25 d .25 d .25 d .25 e .25 g .25 g .25 e .25 d .25 c .25 d .25 e .25 e .25 e .25 e .25 d .25 d .25 e .25 d .25 c .25 • That 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:

  5. Songs… • Once you have the notes you need to add the timing. Easiest is to default a whole note to 1 and the .5 for half note, etc. • Now you create a song!

  6. Playing a song from myro import * robot=Scribbler() s=readSong("chariots of fire.txt") robot.playSong(s)

More Related