DEV Community

Discussion on: Editing MIDI files with Python

Collapse
 
ju1973 profile image
ju1973

hi I find your work very usefull, I don't know where I have to put the csv map ? would you help me ?

Collapse
 
varlen profile image
Varlen Pavani Neto • Edited

Thank you! The mapping csv should go in the same folder as the python script. Save it as note_map.csv and it should work properly. If this still doesn't work, it is possible to embed the csv using triple-double quotes. To try this approach, replace the line that opens the external csv file with the code below and replace the tag with the csv content.

map_text = """<paste the csv here>
"""
Enter fullscreen mode Exit fullscreen mode

Then, fix the identation, since by doing this, you removed the with block.