<jupyter_start><jupyter_text>LoopingThis allows you to repeat musical phrases and create recurring patterns.<jupyter_code># import library
from music_code import music_code

# initialize
m = music_code.MusicCode(120)
# create two seperate chords
c_major = m.create_wave(['C3','E3','G3'],'tri',1/4)
f_major = m.create_wave(['C3','F3','A3'],'tri',1/4)

# join chords into one waveform
chords = m.join_waves((c_major,f_major))

# bounce audio
chords.bounce()
# loop chords 4 times
chords.loop(4)

# bounce audio
chords.bounce()
# create C4 wave (1/100 duration)
vibration = m.create_wave(['C3'],'sine',1/100)

# loop 100 times
vibration.loop(100)

# WAV audio
vibration.bounce()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14326241134751774, 'fraction_numerical': 0.04397163120567376, 'mean_word_length': 6.431578947368421, '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': '211779', 'license': 'Apache-2.0', 'n_tokens_mistral': 283, 'n_tokens_neox': 264, 'n_words': 60, 'path': 'notebooks/tutorials/07 - Looping.ipynb', 'repo_name': 'wesleyLaurence/Music-Code', 'size': '705'}