LSound: An L-System Framework for Score Generation


  • Chen Kim Lim Faculty of Art, Computing & Creative Industry, Sultan Idris Education University, 35900 Tanjong Malim, Perak, Malaysia.
  • Kian Lam Tan Faculty of Art, Computing & Creative Industry, Sultan Idris Education University, 35900 Tanjong Malim, Perak, Malaysia.
  • Hazwanni Yusran Faculty of Art, Computing & Creative Industry, Sultan Idris Education University, 35900 Tanjong Malim, Perak, Malaysia.
  • Vicknesh Suppramaniam Faculty of Art, Computing & Creative Industry, Sultan Idris Education University, 35900 Tanjong Malim, Perak, Malaysia.


L-Systems, , Plant Modeling, Music Rendering, Score Generation, Visual Language Programming


Visual language or visual representation has been used in the past few years in order to express the knowledge in graphics. One of the important graphical elements is fractal and L-Systems is a mathematics-based grammatical model for modelling cell development and plant topology. From the plant model, L-Systems can be interpreted as music sound and score. In this paper, LSound which is a Visual Language Programming (VLP) framework has been developed as a tool that can model plant to music sound and generate music score and vice versa. The objectives of this research have three folds: (i) To expand the grammar dictionary of L-Systems music based on visual programming, (ii) To design and produce a user-friendly and icon-based visual language framework typically for L-Systems musical score generation which helps the basic learners in musical field and (iii) To generate music score from plant models and vice versa using L-Systems method. This research undergoes four phases methodology where the plant is first modeled, then the music is interpreted, followed by the output of music sound through MIDI and a score is generated. Technically, LSound was compared to other existing applications in the aspects of the capability of modelling the plant, rendering the music and generating the sound. LSound is a flexible framework in which the plant can be easily altered through arrow-based programming and the music score can be altered through the music symbols and notes which encourages non-experts to work with L-Systems and music.


K. H. Koh, A. Basawapatna, V. Bennett, and A. Repenning, Towards the automatic recognition of computational thinking for adaptive visual language learning. In Visual Languages and Human-Centric Computing (VL/HCC), 2010, pp. 59-66

C. K. Lim, and A. Z. Talib, L-System Controlled Music Expression through Visual Language Framework. Applied Mechanics and Materials, 2013, vol. 284, pp. 3549-3553.

J. Bresson, and C. Agon, Visual programming and music score generation with openmusic. In Visual Languages and Human-Centric Computing (VL/HCC), 2011, pp. 247-248.

T. Tanaka, and K. Furukawa, Automatic Melodic Grammar Generation for Polyphonic Music Using a Classifier System. Proc. SMC, 2012, pp.150-156.

M. Giraud, and S. Staworko, Modeling Musical Structure with Parametric Grammars. In International Conference on Mathematics and Computation in Music, 2015, pp. 85-96.

Merriam-Webster: Definition of MUSIC. (2015). Retrieved August 8, 2016, from

A. Suyantohadi, M. Hariadi, and M. H. Purnomo, Plant Growth Modeling Using L-System Approach and Its Visualization. MAKARA of Technology Series, 2011, pp. 14(2).

X. R. Fan, M. Z. Kang, E. Heuvelink, P. Reffye, and B. G. Hu, A knowledge-and-data-driven modeling approach for simulating plant growth: A case study on tomato growth. Ecological Modelling, 2015, pp. 363-373.

Y. Fu, D. Ren, G. Xu, and J. Wang, Morphogenetic models of virtual plant: A survey. IEEE International Conference on Automation and Logistics, 2010, pp. 25-30.

W. Ding, L. Xu, C. Hu, and Y. Zhang, Parameter acquirement methods for rule-based model of virtual plant based on optimal algorithms. 10th World Congress In Intelligent Control and Automation (WCICA), 2012 pp. 748-752.

S. Pirk, T. Niese, T. Hädrich, B. Benes, and O. Deussen, Windy trees: computing stress response for developmental tree models. ACM Transactions on Graphics (TOG), 2014, vol. 33(6), pp.204.

S. Pirk, O. Stava, J. Kratt, M. A. Massih, B. Neubert, R. Mech, B. Benes, and O. Deussen, Plastic trees: interactive self-adapting botanical tree models. ACM Transactions on Graphics, 2012, vol. 31(4), pp.1-10.

T. L. Derzaph, and H. J. Hamilton, Effects of wind on virtual plants in animation. International Journal of Computer Games Technology, 2013, pp.3.

M. A. Kaliakatsos-Papakostas, A. Floros, and M. N. Vrahatis, Intelligent generation of rhythmic sequences using Finite L-systems. Conference In Intelligent Information Hiding and Multimedia Signal Processing, 2012, pp. 424-427.

M. A. Kaliakatsos-Papakostas, A. Floros, N. Kanellopoulos, and M. N. Vrahatis, Genetic evolution of L and FL-systems for the production of rhythmic sequences. In Proceedings of the 14th annual conference companion on Genetic and evolutionary computation, 2012, pp. 461-468.

L. C. Kim, and A. Z. Talib, Improving L-System Music Rendering Using a Hybrid of Stochastic and Context-Sensitive Grammars in a Visual Language Framework. In International Conference on Arts and Technology, 2011, pp. 46-53.

M. H. Yamaguchi, An extensible tool for automated music generation (Doctoral dissertation, Lafayette College), 2011.

E. Holder, E. Tilevich, and A. Gillick, Musiplectics: computational assessment of the complexity of music scores. International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Softwarexi, 2015, pp. 107-120.

T. Kathiresan, Automatic Melody Generation, 2015.

S. Rubin, and M. Agrawala, Generating emotionally relevant musical scores for audio stories. In Proceedings of the 27th annual ACM symposium on User interface software and technology, 2014, pp. 439-448.

M. M. Dehshibi, A. Shirmohammadi, and A. Adamatzky, March. Pattern formation using L-systems: A case study in forming Neyname’s words. In T.E. Simos and C. Tsitouras eds. AIP Conference Proceedings, 2015, vol. 1648, pp. 580015.

R. Tobergte, R. David, R. Curtis, and R. Shirley. The Structure of L-System. Journal of Chemical Information and Modeling, 2013, vol. 53(9), pp. 1689–1699.




How to Cite

Lim, C. K., Tan, K. L., Yusran, H., & Suppramaniam, V. (2017). LSound: An L-System Framework for Score Generation. Journal of Telecommunication, Electronic and Computer Engineering (JTEC), 9(2-11), 159–163. Retrieved from