<jupyter_start><jupyter_text>We use Lilypond to create notes, so we need to inform music21 of the path of the lilpond executable<jupyter_code>print(mus.note)

us = mus.environment.UserSettings()
us['lilypondPath'] = "C:\\Users\\cedro\\.sync\\Tools\\LilyPond\\usr\\bin\\lilypond.exe"
us['ipythonShowFormat'] = "ipython.lily.png"

#note = np.random.randint(53, 89)
s = mus.stream.Stream()
for n in range (53,89):
    s.append(mus.note.Note(n))
s.show()


print(f.name)
print(f.octave)
print(f.pitch.frequency)
tmp = s.write('lily.png')
print(tmp)
img = cv2.imread(str(tmp))
plt.imshow(img)

crop = img[:,60:-10]
plt.imshow(crop)
ly = """\\version "2.18" 

#(define default-toplevel-book-handler
  print-book-with-defaults-as-systems )

#(ly:set-option 'backend 'eps)

\\score {
  \\relative c' {
    c' d' e' f' g' a' b' c'' d'' e''
  }
  \\layout {
     \\context {
      \\Staff
      \\remove "Time_signature_engraver"
      \\remove "Clef_engraver"
      \\remove "Bar_engraver"
    }
    \\context {
      \\Score
      \\remove "Bar_number_engraver"
    }
  }
}
"""
print(ly)
import subprocess
ret = subprocess.run(["C:\\Users\\cedro\\.sync\\Tools\\LilyPond\\usr\\bin\\lilypond.exe", "--png", "-"],
                     input=ly, 
                     stdout=subprocess.PIPE
                    )
print(ret)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18419090231170768, 'fraction_numerical': 0.013422818791946308, 'mean_word_length': 2.7486033519553073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '591166', 'license': 'MIT', 'n_tokens_mistral': 546, 'n_tokens_neox': 525, 'n_words': 93, 'path': 'notebooks/music-reader/sample-gen.ipynb', 'repo_name': 'cedrou/ml-notebooks', 'size': '1341'}