picadae calibration programs
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
kevin ee3c41fe70 README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
doc README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
.gitignore AudioDevice.py : fixed linear_buffer() p_ac.py : changed dutyCyclePct to a list, added real-timen note analysis and multi-pitch tests. Added keyboard.py, rt_note_analysis.py, plot_note_analysis.py, plot_all_note_durations.ipynb. 4年前
AudioDevice.py AudioDevice.py : Change default channel count from 1 (mono) to 2 (stereo). 3年前
COPYING Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
LICENSE Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
MidiDevice.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
MidiFilePlayer.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
README.md README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
calibrate.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
calibrate_plot.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
common.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
convert.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
do_td_plot.png README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
elbow.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
keyboard.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
p_ac.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
p_ac.yml README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
plot_all_note_durations.ipynb AudioDevice.py : fixed linear_buffer() p_ac.py : changed dutyCyclePct to a list, added real-timen note analysis and multi-pitch tests. Added keyboard.py, rt_note_analysis.py, plot_note_analysis.py, plot_all_note_durations.ipynb. 4年前
plot_calibrate.ipynb Many changes and additions. First working version of calibrate.py Replaced analysis parameter dbRefWndMs with dbLinRef rms_analysis.py : Added samples_to_linear_residual() plot_seq_1.py : initial commit. 4年前
plot_calibrate.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
plot_note_analysis.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
plot_seq.py README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
plot_seq_1.py README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
plot_us_db_range.ipynb Many changes and additions. 4年前
result.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
rms_analysis.py README.md,doc/*.png : Updates to verify plotting and add example plots to README.md 3年前
rt_note_analysis.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前
velMapD.h Many changes and additions. 4年前
velMapD.json Many changes and additions. 4年前
velTableToDataStruct.py Added license notices to all files. Initial commit: LICENCE and COPYRIGHT. 3年前

README.md

  • Picadae Calibration Programs

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 python plot_seq.py ~/temp/p_ac_3_od p_ac.yml 60 10 do_td_plot(inDir,cfg.analysisArgs, pitch, take_id )

Multi Plot 1 python plot_seq.py p_ac.yml ~/temp/p_ac_3_od td_multi_plot 60 3 60 4 60 5 plot_seq.py do_td_multi_plot(inDir,cfg.analysisArgs,[(36,4), (48,2)] )

Spectral Ranges python plot_seq.py p_ac.yml ~/temp/p_ac_3_od plot_spectral_ranges 60 3 60 4

Multi Usec dB python plot_seq_1.py p_ac.yml ~/temp/p_ac_3_od us_db 84

Usec dB Spread python plot_seq_1.py p_ac.yml ~/temp/p_ac_3_od us_db_map 84 72

Min Max python plot_seq_1.py p_ac.yml ~/temp/p_ac_3_od min_max 36 48 60 72 84

Min Max 2 The last number in the list is the ‘takeId’ python plot_seq_1.py p_ac.yml ~/temp/p_ac_3_od min_max_2 36 48 60 72 84 2

python plot_seq_1.py p_ac.yml ~/temp/p_ac_3_od manual_db

Interpolate across the min and max db values to form the min/max curves for the complete set of keys. The anchor points for the curves are taken from cfg record manuMinD,manualAnchorPitchMinDbL, and manualMaxDbL.

      # select the event (takeId, eventIdx) to use to represent the min value for each pitch
      manualMinD: {
        36: [2, 10],
        48: [2, 10],
        60: [2, 10],
        72: [2, 10],
        84: [2, 10]
        },

      # leave 60 out of the min anchor point list
      manualAnchorPitchMinDbL: [ 36,48,72,84 ],
      
      manualAnchorPitchMaxDbL: [ 36,48,60,72,84 ],