- #36
pbuk
Science Advisor
Homework Helper
Gold Member
- 4,792
- 3,070
Yes, this could be implemented using the excellent expression parser in math.js.TULC said:You suggested a couple of things in a previous post including (1) enabling users to enter arbitrary equations similar to Desmos
Well the code has these default settings (see https://github.com/avplot/avplot.gi...0bed551481c708dcb9e10/src/avplot/avplot.js#L9)TULC said:(2) changing audio parameters...Both of these suggestions are great, though I would like to learn more. Which audio parameters could we actually adjust in this application?
JavaScript:
const defaults = {
animationDuration: 5000,
highlightPointRadius: 6,
maxGain: 0.25,
valueScale: 1,
valueOffset: 0,
// const baseFreq = 440; // A5.
// const baseFreq = 523.23; // C5.
baseFrequency: 880, // A6.
octaveScale: 2,
octaveOffset: 0,
};
Parameters could be introduced to expand the freqency range for e.g. the lower part of the curve which would highlight the detail in this case.TULC said:Regarding this particular sonification: It could be useful to adjust the function such that the users can more easily identify specific features of an action potential. Specifically, it would be helpful to make the undershoot following the fall of the curve a bit more pronounced, e.g., by increasing its amplitude. It would be good to experiment with that particular feature of the curve. Currently, without any visual input, I would not be able to identify that there is an undershoot following the fall of the curve.