<jupyter_start><jupyter_text>Global Parameters Printing functions<jupyter_code># Printing the parameter values
guit.SP.info()  # SP stands for SoundParameters
# Printing the parameter value and an info string explaining what they do
guit.SP.more_info()
# Function to change the value of a parameter
guit.SP.change('octave_fraction', 3)
guit.SP.bins.info()
guit.SP.info()<jupyter_output>general
	 octave_fraction : 3
	 fft_range : 2000
	 onset_delay : 100
envelop
	 frame_size : 524
	 hop_length : 200
log_envelop
	 start_time : 0.01
	 min_window : None
	 max_window : 2048
fundamental
	 min_freq : 60
	 max_freq : 2000
	 frame_length : 1024
bins
	 bass : 100
	 mid : 700
	 highmid : 2000
	 uppermid : 4000
	 presence : 6000<jupyter_text>Changing their values<jupyter_code># The Global Parameters are used when creating a Sound and a copy is bound to the Sound object
file2 = "soundfiles/flax_carbon/Carbon_D0_2.wav"
Sound2 = Sound(file2)
Sound2.condition()

print(Sound2.SP.general.octave_fraction.value)
# The value can be changed inside the Sound instance
# but this only works for parameters not used in the conditioning of the signal 

plt.figure(figsize=(12,5))

plt.subplot(1,2,1)
Sound2.SP.change('octave_fraction', 6)
Sound2.signal.plot(kind='fft hist')
plt.title('plot with octave fraction = 6')

plt.subplot(1,2,2)
Sound2.SP.change('octave_fraction', 3)
Sound2.signal.plot(kind='fft hist')
plt.title('plot with octave fraction = 3')

plt.show()
SP_copy = guit.SP

SP_copy.change('bass', 300)

SP_copy = guit.sound_parameters()

Sound3 = Sound(file2, SoundParams=SP_copy)
Sound3.condition()
Sound3.plot_freq_bins()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0998185117967332, 'fraction_numerical': 0.04900181488203267, 'mean_word_length': 5.241509433962264, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '544069', 'license': 'MIT', 'n_tokens_mistral': 656, 'n_tokens_neox': 566, 'n_words': 156, 'path': 'Notebooks/Presentations/DEMO_SoundParameters.ipynb', 'repo_name': 'olivecha/guitarsounds', 'size': '1653'}