Creative Programming And Computing 2020-2021
Table of Content
1. Overview of the project
2. Background
3. Music Generation Model
4. Graphical Generation Part
5. System Design and Implementation
6. Human Computer Interaction
7. Conclusion and Discussion
Â
1 Overview
an animation of tree growing
on a 3D canvas
computer generated music,
played by the sound font of a music box
2 Background
plant development: description, iteration, animation
music generator: design, training
3 Music Generation Model
3 Music Generation Model
4 Graphical Part
Picea abies
4.1 Graphical Part: Parametric L-system
$$L = \langle G, \omega, P \rangle$$
Axiom:
$$\omega = A_4$$
Production rules:
$$A_n\rightarrow B_{n-1}$$
$$B_n \rightarrow A_n C_n A_n$$
Rewriting steps:
$$A_4$$
$$B_3$$
$$A_3 C_3 A_3$$
$$B_2 C_3 B_2$$
$$\dots$$
an example of L-system
4.2 Graphical Part: Turtle Interpretation
turtle  commands
turtle  orientation axes
L-system for our tree
4.3 Graphical Part: 3D Model
Approximation using segments:
a snapshot of the model
Turtle state \(T_i\):
Segment: Â \(\langle V_a, V_b \rangle\)
Stroke: Â Â Â \(\langle P_i, P_{i+1} \rangle \quad P_{i+1} = P_i + d \hat{H}\)
Rotation: Â \(q_{j+1} = r \cdot q_j\)
5 System Design and Implementation
Music model preparation:
Final application:
Dataset processing and music playback:
Quaternion
Turtle
Tree
Grammar
p5.Geometry
5 Regarding the Results
demo video at first
6 Interaction
3d canvas iteration: right now we have different view point, controlled by mouse movement.
future extension: it is possible to add more interactions based on the context
7 Conclusion
https://arxiv.org/abs/1412.3191, Bach in 2014: Music Composition with RNN
https://www.csh.rit.edu/~aidan/portfolio/3DLSystems.shtml
http://paulbourke.net/fractals/lsys/
https://www.sidefx.com/docs/houdini/nodes/sop/lsystem.html
https://forums.odforce.net/topic/30160-houdini-l-system-based-procedural-forest-and-plants-generator/
http://www.gib.uni-tuebingen.de/image/ausgaben-3?function=fnArticle&showArticle=105
https://anatolijzykov.artstation.com/projects/GKNn4
Â
Thanks for watching!
Reference
Updates 5 new features
Human Computer Interaction: by facial recognition
keras-posenet
A Good Melody or not
melody has a cadence
(II-V-I, II-I or VII-I)
F
T
Enhanced Connection with Music: the decorative lights
Lights rotate colors every time a note is played
Every Tree is Unique