Designing a Music Scripting Language - PowerPoint PPT Presentation

About This Presentation
Title:

Designing a Music Scripting Language

Description:

Designing a Music Scripting Language. Casey Mihaloew. Computer ... i(volume $forte)} {$i(test)} {(tuba,trumpet,horn)( ([C2:1/2],[D2:7/2]), ([C4:1],[B3:3] ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 8
Provided by: caseymi
Learn more at: https://www.tjhsst.edu
Category:

less

Transcript and Presenter's Notes

Title: Designing a Music Scripting Language


1
Designing a Music Scripting Language
Casey Mihaloew Computer Systems Lab 2008-2009
2
Introduction
  • Turn a formatted text file into a sound file
  • Take into account 4 parameters
  • Volume
  • Tempo
  • Pitch
  • Tone
  • Have instant and gradual changes

3
Similar Projects
  • LilyPond
  • JMusic
  • CMusic
  • ChucK

4
Mapping
  • Shortens music file
  • Shown with parentheses
  • Repeats

Example (C21,C21,C21,C21)(staccato,
tenuto) (C21 staccato, C21 tenuto,
C21 staccato, C21 tenuto)
5
Example Input
  • import tempos
  • import volumes
  • def i (tuba,trumpet,horn)
  • (initInstr)ii
  • i(noteType basic)
  • i(timeSignature 44)
  • i(tempo allegro)
  • i(volume forte)
  • i(test)
  • (tuba,trumpet,horn)(
  • (C21/2,D27/2),
  • (C41,B33),
  • (G34 tenuto),
  • (C23,D21),
  • (E42,G42),
  • (F31,E31,D31,C31)
  • )
  • i(play)
  • Separate Line
  • Imports
  • Define Constants
  • Instruments
  • Notes

6
Example Output
  • Current Output
  • Parsed Program
  • List of notes
  • Instrument
  • Start/end time
  • Length
  • Pitch
  • Modifiers
  • initInstr,tuba,tuba,...horn,play,tuba ins.
    tempo 120.0. volume 0.6. time signature 4
    4trumpet ins. tempo 120.0. volume 0.6. time
    signature 4 4horn ins. tempo 120.0. volume
    0.6. time signature 4 4tuba ins. Start 0.0 .
    Stop 0.25 for note 1/2 counts of
    C2(65.40639132514966)tuba ins. Start 0.25 .
    Stop 2.0 for note 7/2 counts of
    D2(73.4161919793519)tuba ins. Start 2.0 . Stop
    3.5 for note 3 counts of C2(65.40639132514966)tub
    a ins. Start 3.5 . Stop 4.0 for note 1 counts
    of D2(73.4161919793519)trumpet ins. Start 0.0 .
    Stop 0.5 for note 1 counts of C4(261.625565300598
    6)trumpet ins. Start 0.5 . Stop 2.0 for note 3
    counts of B3(246.94165062806206)trumpet ins.
    Start 2.0 . Stop 3.0 for note 2 counts of
    E4(329.6275569128699)trumpet ins. Start 3.0 .
    Stop 4.0 for note 2 counts of G4(391.995435981749
    27)horn ins. Start 0.0 . Stop 2.0 for note 4
    counts of G3(195.99771799087463) tenutohorn ins.
    Start 2.0 . Stop 2.5 for note 1 counts of
    F3(174.61411571650194)horn ins. Start 2.5 .
    Stop 3.0 for note 1 counts of E3(164.813778456434
    96)horn ins. Start 3.0 . Stop 3.5 for note 1
    counts of D3(146.8323839587038)horn ins. Start
    3.5 . Stop 4.0 for note 1 counts of
    C3(130.8127826502993)

7
Future Plans
  • Generate sound
  • Fix mapping (differentiating between , and
    )()
  • Gradual changes
  • More flexibility in note parsing
Write a Comment
User Comments (0)
About PowerShow.com