function P = woodblock_defaults() % WOODBLOCK_DEFAULTS Default parameters, mirroring the web app's params.ts. % Note woodblock.py's reference default for mallet_stiffness is 3.0e8; the % app (and this file) default to a softer 1.0e8. P.length_m = 0.200; P.width_m = 0.055; P.wall_thickness_m = 0.010; P.block_height_m = 0.050; P.density = 850.0; P.youngs_modulus = 1.6e10; P.hollow_softening = 0.90; P.participating_mass_kg = 0.35; P.inharmonicity = 1.00; P.n_modes = 26; P.max_mode_hz = 20000.0; P.loss_factor = 0.010; P.loss_slope = 1.2e-7; P.strike_position = 0.42; P.mallet_mass = 0.025; P.mallet_velocity = 2.5; P.mallet_stiffness = 1.0e8; P.contact_exponent = 1.5; P.contact_damping = 0.8; P.cavity_volume_m3 = 2.6e-4; P.slit_area_m2 = 8.0e-4; P.slit_length_m = 0.012; P.cavity_damping = 0.06; P.cavity_coupling = 1.0; P.cavity_span_lo = 0.30; P.cavity_span_hi = 0.70; P.listener_x_m = 0.15; P.listener_y_m = 0.25; P.listener_z_m = 0.30; P.slit_x_m = 0.0; P.slit_y_m = 0.0275; P.slit_z_m = 0.0; P.radiating_elements = 48; P.speed_of_sound = 343.0; P.air_density = 1.204; P.sample_rate = 48000; P.oversample = 16; P.duration_s = 0.45; P.pre_delay_ms = 3.0; P.normalize = 1; P.peak_dbfs = -3.0; P.full_scale_pa = 20.0; end