Monday, March 23, 2015

The ND (L-Tree+ CFG) melody generation task

Steps: 
  1) Generate the L-Treedefined by the following two sproot growing processes :

A|_ a _|B      B|_ b _|A

2)      Draw the three of level 5
3)      Twice derive a string of terminals from nonterminal BAR 3 in CFG for  that we have been  using – arranging for two different sequence  to result
4)      Associate A with the result of one bar 3 derivation associate B with the other result of bar 3 derivation.
5)      Replace each instance of A and B in the level 5 of the tree.
6)      Write down the melody that is generated as a sequence of JFugue symbols
7)      Generate a sound file

Result of each step:

1-2)
3)
Bar3 => (3 p3 d3)
            => (12) (3 pitch pitch pitch d3)
            => (26) (3 f pitch pitch d3)
            => (25) (3 f e pitch d3)
            => (28) ( 3 f e a d3)
            => (16) ( 3 f e a h q  q)
 Bar3 => (3 p3 d3)
          => (12) (3 pitch pitch pitch d3)
          => (23) (3 c pitch pitch d3)
          => (24) (3 c d pitch d3)
          => (25) ( 3  c d e d3)
          => (15) ( 3 c d e q h h) 
4)
 A =     FH EQ AQ
 B =   CQ DH EH

5)
A B B A B A A B B A A B A B B A B A A B A B B A A B B A B A A B

6)
FH EQ AQ CQ DH EH CQ DH EH FH EQ AQ CQ DH EH FH EQ AQ FH EQ AQ CQ DH EH CQ DH EH FH EQ AQ FH EQ AQ CQ DH EH FH EQ AQ CQ DH EH CQ DH EH FH EQ AQ CQ DH EH FH EQ AQ FH EQ AQ CQ DH EH FH EQ AQ CQ DH EH CQ DH EH FH EQ AQ FH EQ AQ CQ DH EH CQ DH EH FH EQ AQ CQ DH EH FH EQ AQ FH EQ AQ CQ DH EH

7)

Song