Search found 17 matches

by stepheneb
Tue Jan 05, 2021 5:04 pm
Forum: Nyquist
Topic: how to run YIN starting at sound start + 0.25s?
Replies: 17
Views: 1978

Re: how to run YIN starting at sound start + 0.25s?

steve wrote:
Tue Jan 05, 2021 4:14 pm
JimWI wrote:
Tue Jan 05, 2021 3:53 pm
Any suggestions?
My guess is that you are trying to use the code on a stereo track.
stepheneb's code is written for mono tracks only.
Yes.

When I record in Audacity I'm collecting stereo data but delete one of the channels before running my scripts on mono data.
by stepheneb
Tue Jul 31, 2018 9:48 pm
Forum: Nyquist
Topic: can I get date-time audio was recorded?
Replies: 6
Views: 1048

Re: can I get date-time audio was recorded?

I added the date and time the "Pitch Detect" plugin was loaded at top of a report. This will be good enough for now to be able to differentiate similar reports later. fyi: this is a very specialized plugin but if anyone is interested in it or the techniques I adapted and implemented I put it in a re...
by stepheneb
Tue Jul 31, 2018 8:36 pm
Forum: Nyquist
Topic: can I get date-time audio was recorded?
Replies: 6
Views: 1048

Re: can I get date-time audio was recorded?

Thanks for the tip about the recording preferences. If the feature would also work to append a date to the name for an existing empty track when I record data it would work for my purpose. Currently I start the data collection for a specific type of six strings by opening a template project that has...
by stepheneb
Tue Jul 31, 2018 7:21 pm
Forum: Nyquist
Topic: can I get date-time audio was recorded?
Replies: 6
Views: 1048

can I get date-time audio was recorded?

Am using my pitch-report nyquist plugin to collect more data about guitar strings and would like to include in the report the date and time when the audio in the source audacity project was collected. If that isn't available a useful proxy would be the datetime the source audacity project was last m...
by stepheneb
Fri Jan 26, 2018 5:47 pm
Forum: Nyquist
Topic: want to remove *SCRATCH* property after last track processed
Replies: 3
Views: 1018

Re: want to remove *SCRATCH* property after last track proce

Yes, that's *much* simpler. Printing project header JUST once now works fine without accessing *SCRATCH*. Thanks!
by stepheneb
Fri Jan 26, 2018 6:14 am
Forum: Nyquist
Topic: want to remove *SCRATCH* property after last track processed
Replies: 3
Views: 1018

Re: want to remove *SCRATCH* property after last track proce

Here's how I solved the problem: *selection* has a tracks property that contains a list of track numbers selected I'm saving the length of this list as a *SCRATCH* property named pitch-report-track-count and incrementing another property named pitch-report-track-number every time the plugin is invok...
by stepheneb
Fri Jan 26, 2018 4:23 am
Forum: Nyquist
Topic: want to remove *SCRATCH* property after last track processed
Replies: 3
Views: 1018

want to remove *SCRATCH* property after last track processed

Pitch Report plugin is progressing well -- thanks for the help Steve! I'm selecting all 12 tracks and running the PitchReport plugin. The first time the plugin is run it looks for the existence of a PitchReport property on *SCRATCH* and if not found creates it with a value of t and prints a project ...
by stepheneb
Thu Jan 25, 2018 11:09 pm
Forum: Nyquist
Topic: how to run YIN starting at sound start + 0.25s?
Replies: 17
Views: 1978

Re: how to run YIN starting at sound start + 0.25s?

Fixed. The problem was the global variable confidence used to represent the best confidence value in the function bestguess needs to be reset to 1 every time bestguess is called. Here's the updated bestguess function: ;;; Find most confident frequency (defun bestguess (yin-out) (setq confidence 1) (...
by stepheneb
Thu Jan 25, 2018 9:14 pm
Forum: Nyquist
Topic: how to run YIN starting at sound start + 0.25s?
Replies: 17
Views: 1978

Re: how to run YIN starting at sound start + 0.25s?

The most obvious bug I fixed was to remember to use step-to-hz before reporting the frequency value! But there is still a more subtle problem. I made a simpler implementation to generate a table of frequency estimations which can be run in the Nyquist Prompt. It shifts the sample window over approxi...
by stepheneb
Thu Jan 25, 2018 6:56 am
Forum: Nyquist
Topic: how to run YIN starting at sound start + 0.25s?
Replies: 17
Views: 1978

Re: how to run YIN starting at sound start + 0.25s?

Thanks Steve for the sample! I've adapted it with some of my code and your pitch-detect YIN code to create a table and am having trouble getting YIN to produce correct results. Here's a screenshot of a pluck of a high E string and the report generated by my Extended Pitch Detect plugin. The track's ...