# Using python to generate score

**URL:** <https://forum.csound.com/t/using-python-to-generate-score/654>\
**Category:** General\
**Created:** [January 21, 2022, 5:14pm UTC](https://forum.csound.com/t/using-python-to-generate-score/654 "2022-01-21T17:14:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![littleowl](https://forum.csound.com/letter_avatar_proxy/v4/letter/l/df705f/32.png) [@littleowl](https://forum.csound.com/u/littleowl)\
**Post date:** [January 21, 2022, 5:14pm UTC](https://forum.csound.com/t/using-python-to-generate-score/654/1 "2022-01-21T17:14:49Z")

</div>

Hello, I have tried following the instructions in “Csound A Sound and Music Computing System” and the examples given in the Floss Manual to use python to generate a score for my csd file but I am unable figure out how this is supposed to work. I have tried both the method of adding the to the section -L " | python3 scoreOne.py", scoreOne.py being the name of my python script, but this method does not work. I have also tried within the score to add and adding something similar to what is written in “Csound A Sound and Music Computing System” in Listing 8.9 but this method all throws an error. What might I be doing wrong?

---

<div class="post-metadata">

**Author:** ![joachim](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@joachim](https://forum.csound.com/u/joachim)\
**Post date:** [January 21, 2022, 10:52pm UTC](https://forum.csound.com/t/using-python-to-generate-score/654/2 "2022-01-21T22:52:07Z")

</div>

can you post your error?

---

<div class="post-metadata">

**Author:** ![Jair-Rohm\_Wells](https://forum.csound.com/user_avatar/forum.csound.com/jair-rohm_wells/32/71_2.png) [@Jair-Rohm\_Wells](https://forum.csound.com/u/Jair-Rohm_Wells)\
**Post date:** [August 30, 2022, 12:08pm UTC](https://forum.csound.com/t/using-python-to-generate-score/654/3 "2022-08-30T12:08:37Z")

</div>

I’d be very interested to follow this problem as I too have trouble with creating scores with Python.
