2020-10-26 18:24:52 +00:00
|
|
|
* Picadae Calibration Programs
|
|
|
|
|
2020-11-24 18:27:05 +00:00
|
|
|
sudo dnf install python3-devel jack-audio-connection-kit-devel
|
|
|
|
|
|
|
|
|
|
|
|
prerequisites:
|
|
|
|
pyyaml
|
|
|
|
sounddevice
|
|
|
|
soundfile
|
|
|
|
pthon-rtmidi
|
|
|
|
|
|
|
|
export PYTHONPATH=${HOME}/src/picadae/control/app
|
|
|
|
python p_ac.py -c p_ac.yml
|
|
|
|
|
|
|
|
c 60 60 # caputre note 60 using the full_pulseL[] from the p_ac.yml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# plot third take of note 60
|
|
|
|
python plot_seq.py ~/temp/p_ac_3_oa/60 p_ac.yml 3
|
|
|
|
|
|
|
|
# record a calibration take: CalibrateKeys.start
|
|
|
|
uses cfg.full_pulseL[] for the pulse sequence
|
|
|
|
use cfg.calibrateArgs.holdDutyPctD{} for hold PWM duty cycle
|
|
|
|
|
|
|
|
# obsolete plotting function in calibrate_plot.py
|
|
|
|
python calibrate_plot.py ~/temp/p_ac_3_oa/60/2 p_ac.yml 60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![Plot Seq 1](doc/plot_seq_0.png)
|
|
|
|
|
|
|
|
`python plot_seq.py ~/temp/p_ac_3_od/60 p_ac.yml 12`
|
|
|
|
|
|
|
|
|
2020-11-24 19:18:35 +00:00
|
|
|
![Multi Plot 1](doc/multi_plot.png)
|
2020-11-24 18:27:05 +00:00
|
|
|
|
|
|
|
plot_seq.py `do_td_multi_plot(inDir,cfg.analysisArgs,[(36,4), (48,2)] )`
|
|
|
|
|