UnicodeDecodeError

Description: UnicodeDecodeError:

Error printout:

fluidsynth: error: DllMain
Traceback (most recent call last):
File “E:\PythonProjects\my_scamp\test_sca.py”, line 13, in
s.stop_transcribing().to_score().show()

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xf2 in position 178: invalid continuation byte

The full code that resulted in the error:

from scamp import *

s = Session()
s.tempo = 120

cello = s.new_part(“Cello”)

s.start_transcribing()

for pitch in (48, 53, 67):
cello.play_note(pitch, 1.0, 1.0)

s.stop_transcribing().to_score().show()

hi Yuri - i replaced the quotation marks around Cello with single quotes
and indented the for loop
and it worked
best wishes
Chris

Hi Chris
Thanks for the tip.
I forgot to mention that this error occurs when running the code in a notebook. And the indents are lost when copying :slight_smile:
In VS Code, the code runs without the error. But there are other problems. :slight_smile:
Yuri