/ proof-of-concept / cymbalsim
Sign in
proof-of-concept / cymbalsim
Default stick speed 3 m/s
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 00e189586651 parent 3c218eb Browse files
2 changed files+2−2
src/params.tsmodified+1−1View file
@@ -28,7 +28,7 @@ export interface SimParams {
2828 export const defaultParams: SimParams = {
2929 strikeFracX: 0.9,
3030 strikeFracY: 0.5,
31- strikeVelocity: 6,
31+ strikeVelocity: 3,
3232 stickMass: 0.03,
3333 contactStiffness: 1e7,
3434 contactExponent: 1.5,
src/tutorial/steps.tsmodified+1−1View file
@@ -475,7 +475,7 @@ ${liveText ? live(liveText) : need("Load a design to see its impedance.")}`;
475475 { label: "Soft: 1 m/s", run: async (h) => { h.setParam("strikeVelocity", 1); await h.synthesize(); } },
476476 { label: "Hard: 10 m/s", run: async (h) => { h.setParam("strikeVelocity", 10); await h.synthesize(); } },
477477 { label: "Light stick: 10 g", run: async (h) => { h.setParam("stickMass", 0.01); await h.synthesize(); } },
478- { label: "Defaults: 6 m/s, 30 g", run: async (h) => { h.setParam("strikeVelocity", 6); h.setParam("stickMass", 0.03); await h.synthesize(); } },
478+ { label: "Defaults: 3 m/s, 30 g", run: async (h) => { h.setParam("strikeVelocity", 3); h.setParam("stickMass", 0.03); await h.synthesize(); } },
479479 { label: "Play", run: (h) => h.play() },
480480 ],
481481 },
↑↓ move↵openescclose