Introducing M usic to NooJ

33
Introducing Music to NooJ Kristina Kocijan Sara Librenjak Zdravko Dovedan Han University of Zagreb Faculty of Humanities and Social Sciences Department of Information and Communication Sciences {krkocijan, slibrenj, zdovedan}@ffzg.hr 05.06.2013. International NooJ Conference 2013

description

Introducing M usic to NooJ. Kristina Kocijan Sara Librenjak Zdravko Dovedan Han University of Zagreb Faculty of Humanities and Social Sciences Department of Information and Communication Sciences {krkocijan, slibrenj, zdovedan}@ffzg.hr. Introduction. - PowerPoint PPT Presentation

Transcript of Introducing M usic to NooJ

Page 1: Introducing  M usic to NooJ

Introducing Music to NooJ

Kristina KocijanSara Librenjak

Zdravko Dovedan Han

University of ZagrebFaculty of Humanities and Social Sciences

Department of Information and Communication Sciences

{krkocijan, slibrenj, zdovedan}@ffzg.hr05.06.2013. International NooJ Conference 2013

Page 2: Introducing  M usic to NooJ

Introduction

This is what happens when you spend months working in NooJ

so it becomes almost the part of you and everything you do is

think how to make a NooJ grammar that would describe

this and that and everything...

And than you spend days singing to your little daughter and question just pops out:

hmmm – how about NooJ and music?

05.06.2013. 2International NooJ Conference 2013

Page 3: Introducing  M usic to NooJ

More questions!

1. Could NooJ read notes?

2. How can we make NooJ read notes?

So what if we make NooJ read notes! What do we do with that?

1. Can we check what notes single composer uses the most?

2. What octave does s/he prefere?

3. Could we compare the music by different composers?

4. Could we discover the musical period the composition is from?

5. ? ? ? ? ? ? ? ?

Page 4: Introducing  M usic to NooJ

So... Let me procceed with another question

b’4

Have you ever seen this?

05.06.2013. 4International NooJ Conference 2013

Page 5: Introducing  M usic to NooJ

Don’t go away! There are more questions coming up after this slide...

c’4 d’8

And howabout this?

05.06.2013. 5International NooJ Conference 2013

Page 6: Introducing  M usic to NooJ

And now something a bit more challenging...

g8_"1/8"[ g g g] s16g16_"1/16"[ g g g] sg32_"1/32"[ s g s g s g] s16

05.06.2013. 6International NooJ Conference 2013

Page 7: Introducing  M usic to NooJ

Hmm, does this look familiar?

c4-( d e-) c4-- d-- e-- c4-.-( d-. e-.-) c4-. d-. e-.

05.06.2013. 7International NooJ Conference 2013

Page 8: Introducing  M usic to NooJ

How about this one?

<g b d>1 <g bes d> <g bes des>

<g b dis>05.06.2013. 8International NooJ Conference 2013

Page 9: Introducing  M usic to NooJ

And for the final challenge...

bes16 aes8_"notation" aes16 bes aes8 g |{ aes16[( bes] } <c aes>4){ aes16[( bes] } <c aes>4) bes16 aes8_"performance" aes16 bes aes8 g aes32 bes c8. aes32 bes c8.aes16 ~ aes8. aes16 ~ aes8.

05.06.2013. 9International NooJ Conference 2013

Page 10: Introducing  M usic to NooJ

NooJ does NOT “read” notes!

1. We code the notes using: letters numbers symbols

05.06.2013. 10International NooJ Conference 2013

Page 11: Introducing  M usic to NooJ

Instead of these codes

05.06.2013. 11International NooJ Conference 2013

Page 12: Introducing  M usic to NooJ

We get these codes:... \header { title = "Piano Sonate Opus 2 No 1 (1st Movement)" composer = "Ludwig Van Beethoven“ ...}

\score { \new GrandStaff << \new Staff = "up" { \clef treble

\key f \minor \time 4/4 \tempo 4 = 190 \repeat volta 2 { \

partial 4 c'4\p\staccato^\markup { \large \bold "Allegro." } f'\staccato aes'\staccato c''\staccato f''\staccato aes''4.( \times 2/3 { g''16[ f'' e''] } f''4\staccato) r4 g'\staccato c''\staccato e''\staccato g''\staccato bes''4.( \times 2/3 { aes''16[ g'' f''] } g''4\staccato) r4 \acciaccatura c''16 aes''4.\sf( \times 2/3 { g''16[ f'' e''] } f''4\staccato) r4 \acciaccatura c''16 bes''4. ...}

\new Staff = "down" { \clef bass \key f \minor \time 4/4 \repeat volta 2 { \partial 4 r4 R1 r4 <f aes c'>4\staccato <f aes c'>\staccato <f aes c'>\staccato <e g bes c'>4\staccato r4 r2 r4 <e g bes c'>\staccato <e g bes c'>\staccato <e g bes c'>\staccato r4 <f aes c'>\staccato <f aes c'>\staccato <f aes c'>\staccato r <g bes e'>\staccato <g bes e'>\staccato <g bes e'>\staccato r4 <aes c' f'>\staccato r <bes des' g'>\staccato r4 <c' g'>4\staccato r4^\fermata g,4\staccato^\p c\staccato ees!\staccato g\staccato c'\staccato ees'!4.( \times 2/3 { d'16[ c' b] } c'4\staccato) c'4\staccato <c' f'>1 <bes! f'>1 <bes ees'>1 <aes ees'>1 des'2 d' ees'4 r r << { ees'4 f'2 f' ees'4 } \\ { c'4 des'2 d' ees'4 } >> r4 r << { ees4 f2 f2 } \\ { c4 des2 d2 } >>...} >>... }

05.06.2013. 12International NooJ Conference 2013

Page 13: Introducing  M usic to NooJ

Replaced the notation that presented

additional instructions for the layout design (paper-height, paper-width, line-width, padding, font-size, color etc)

information about the person preparing the notation for the Mutopia site

Information that is printed at the bottom of the page

Lyrics

With descriptive tags like <MARKUP> <INFO> <FOOTER> <LYRICS> ...

A bit of code cleaning

Page 14: Introducing  M usic to NooJ

Building the dictionary

#use muzicke_note.nof# N= NOTESc,N+Octave=0+FLX=TRAJANJENE+LANG=Nederlandsd,N+Octave=0+FLX=TRAJANJENE+LANG=Nederlandse,N+Octave=0+FLX=TRAJANJENE+LANG=Nederlands

#PA =Pauzar,PA+Length=U

key,GL+Value=Key+UNAMBtime,GL+Value=Time+UNAMB

# ORN = ornaments above the notesstaccato,ORN+UNAMB

# GN = grace notes –printed much smaller – not counted inside the bar

grace,GN+UNAMBacciaccatura,GN+UNAMB

# DYN=changes in dynamicscr,DYN+Value=crescendo+UNAMBdecr,DYN+Value=decrescendo+UNAMBp,DYN+Value=piano+UNAMBf,DYN+Value=forte

1. Description of music<N> notes<PA> pause<GL>global information<ORN> ornaments<DYN> dynamics

05.06.2013.14

International NooJ Conference 2013

Page 15: Introducing  M usic to NooJ

Building the dictionary

#inside the headerheader,HEADER+UNAMBtitle,HEAD+Value=Title+DRV=HEADERcomposer,HEAD+Value=Composer+DRV=HEADER

#NB=note blocks - place where to put the notes

score,NB+Level=0+UNAMBnew GrandStaff,NB+Level=1+UNAMBnew StaffGroup,NB+Level=2+UNAMBnew Staff,NB+Level=3+UNAMB

#PL= page layout<comment>,PL+comment+UNAMB<footer>,PL+footer+UNAMB

markup,MARK+UNAMB

large,FONT+Value=markup

2. Description of page /instructions <HEAD> <NB> note blocks <PL> page layout <MARK> <FONT>

05.06.2013. 15International NooJ Conference 2013

Page 16: Introducing  M usic to NooJ

Forming the nof file

c,N+Octave=0+FLX=TRAJANJENE

TRAJANJENE = <E>/Length=U + is/Length=U+sharp + es/Length=U+flat + isis/Length=U+dblsharp + eses/Length=U+dblflat;

3. Description of: FLX =

DRV =05.06.2013. 16International NooJ Conference 2013

title,HEAD+Value=Title+DRV=HEADER

HEADER = <LW>mutopia/HEAD;

Page 17: Introducing  M usic to NooJ

Building the syntactic grammars

05.06.2013. 17International NooJ Conference 2013

4. Description of:A. dynamics

Page 18: Introducing  M usic to NooJ

4. Description of:A. KeyB. TimeC. TempoD. ClefE. MarkupF. override

Building the syntactic grammars

05.06.2013. 18International NooJ Conference 2013

Page 19: Introducing  M usic to NooJ

4. Description of:A. Accidentala) ! – (back to natural)

Building the syntactic grammars

05.06.2013. 19International NooJ Conference 2013

Page 20: Introducing  M usic to NooJ

Building the syntactic grammars

4. Description of:A. Single notesa) cb) c’’’c) c’2d) c’2\staccato

05.06.2013. 20International NooJ Conference 2013

Page 21: Introducing  M usic to NooJ

Building the syntactic grammars

4. Determining the length:

05.06.2013. 21International NooJ Conference 2013

Page 22: Introducing  M usic to NooJ

05.06.2013. 22International NooJ Conference 2013

What magic can NooJ do now?

Page 23: Introducing  M usic to NooJ

05.06.2013. 23International NooJ Conference 2013

Show me all the notes in 1st octave!

Page 24: Introducing  M usic to NooJ

05.06.2013. 24International NooJ Conference 2013

Show me all the notes in 2nd octave!

Page 25: Introducing  M usic to NooJ

05.06.2013. 25International NooJ Conference 2013

Show me all the notes in 3rd octave!

Page 26: Introducing  M usic to NooJ

05.06.2013. 26International NooJ Conference 2013

Show me all the chords!

Page 27: Introducing  M usic to NooJ

05.06.2013. 27International NooJ Conference 2013

Show me all the beams!

Page 28: Introducing  M usic to NooJ

05.06.2013. 28International NooJ Conference 2013

Show me all the slurs!

Page 29: Introducing  M usic to NooJ

05.06.2013. 29International NooJ Conference 2013

Show me the chords with all equal notes!

Page 30: Introducing  M usic to NooJ

05.06.2013. 30International NooJ Conference 2013

Show me the chords with 1st and last equal notes!

Page 31: Introducing  M usic to NooJ

In conclusion

05.06.2013. 31International NooJ Conference 2013

:...:

word sentence

paragraph

Page 32: Introducing  M usic to NooJ

05.06.2013. International NooJ Conference 2013 32/32

Page 33: Introducing  M usic to NooJ

Questions?

05.06.2013. 33International NooJ Conference 2013