1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 09:30:06 +02:00

298 Commits

Author SHA1 Message Date
lllucius
4c0aa60871 A subset of the original v4 patch (which will become v5 eventually)
The main operational difference is that for v4 effect onward, the 
sound name will now be *TRACK*.  This will not affect existing
effects since they use version number 3 or less.

This also provides the Nyquist effect with much more information about
the current processing:

Variable       Property    What
*AUDACITY*     VERSION     current Audacity version number

*SYSTEM-DIR*   BASE        Audacity install path
*SYSTEM-DIR*   DATA        Audacity data path
*SYSTEM-DIR*   HELP        Audacity help path
*SYSTEM-DIR*   TEMP        Audacity temp file path
*SYSTEM-DIR*   PLUGIN      Audacity search path for Nyquist plugins

*PROJECT*      RATE        current project sample rate
*PROJECT*      TRACKS      total number of tracks in the project
*PROJECT*      WAVETRACKS  number of wave tracks in the project
*PROJECT*      LABELTRACKS number of label tracks in the project
*PROJECT*      MIDITRACKS  number of midi tracks in the project
*PROJECT*      TIMETRACKS  number of time tracks in the project

*SELECTION*    START       start time of current selection
*SELECTION*    END         end time of current selection
*SELECTION*    TRACKS      number of tracks in the current selection
*SELECTION*    CHANNELS    number of channels in the current selection
*SELECTION*    LOW-HZ      low frequency from spectrogram (if available, else nil)
*SELECTION*    CENTER-HZ   center frequence (calculated) (if available, else nil)
*SELECTION*    HIGH-HZ     high frequence from spectrogram (if available, else nil)
*SELECTION*    BANDWIDTH   bandwidth in octaves (calculated) (if available, else nil)
*SELECTION*    PEAK-LEVEL  peak amplitude for the current selection

*TRACK*        INDEX       1-based index of track being processed
*TRACK*        NAME        name of track
*TRACK*        TYPE        type of track: wave, midi, label, time
*TRACK*        VIEW        track view: Waveform,  Waveform (dB), etc.
*TRACK*        CHANNELS    number of channels in the track
*TRACK*        START-TIME  start time of track
*TRACK*        END-TIME    end time of track
*TRACK*        GAIN        track gain
*TRACK*        PAN         track pan
*TRACK*        RATE        sample rate of track
*TRACK*        FORMAT      sample format: 16 (int), 24 (int), 32.0 (float)
*TRACK*        CLIPS       list of start/end times for clips for each channel
2014-11-13 16:38:20 +00:00
james.k.crook@gmail.com
035ee5cdff [Bug 782] Nyquist parameters changed (during this session) now remembered until end of session, as before.
Thanks to Steve for tracking this down.
2014-11-09 21:54:06 +00:00
stevethefiddle@gmail.com
2abb46b83d Allow generator effects to use preview without requiring a selection to be made.
Documentation: This does not affect any currently shipped effects. This will need documenting on the wiki for writing Nyquist plug-ins.
2014-10-26 20:30:22 +00:00
james.k.crook@gmail.com
d96bbb1f3a Spectral selection effects now prompt for missing frequency fields when used in time selection mode. 2014-10-24 20:27:04 +00:00
stevethefiddle@gmail.com
0ce9f5ad16 Allow all output from Nyquist Prompt effect.
As the Nyquist Prompt is the only direct access to input Nyquist commands, it needs to remain flexible and versatile.
2014-10-24 12:04:06 +00:00
james.k.crook@gmail.com
af649b94e1 c_str()'s for Linux.
[Need to review this for wx3.x]
2014-10-18 18:46:50 +00:00
james.k.crook@gmail.com
37608c2290 Paul Licameli's Spectral Editing Patch.
This relies on three new nyquist scripts to actually do the editing.  The peak-snapping code in FrequencyWindow has been extracted into a new class, SpectrumAnalyst, to provide peak-snapping in spectrogram too.
2014-10-18 14:19:38 +00:00
lllucius
c6faffd731 Further Nyquist Prompt bug fixing from Steve
With the addition of the preview button, it became evident
that if an effect were to return text instead of audio, the
processing loop would not stop properly.

And he also found a case where the debug state wasn't reset
after using the debug button.  If this was following by the
preview button the next time the effect was used, the debug
window would reappear before the preview.
2014-10-08 01:47:01 +00:00
lllucius
bdcefb4850 Preliminary changes for wxWidgets 3.0.1
We can't go to 3.0.1 yet as there are still build issues on
Linux and OSX.  You can get Windows to build, but there's
still some display issues.

These changes should work with wxWidgets 2.8.12 as well, so
we can take our time to get things working properly before
switching over.
2014-10-06 08:10:50 +00:00
lllucius
8ecd6b538d Adding preview to Nyquist effects as requested by STF
He also added a new Nyquist control header that gives each
effect the ability to control the presentation of the Preview
button.  This will be used by effects are time based and, therefore,
do not produce the same results in preview as they do when applied.

I expect Steve will be committing changes to the effects that can
take advantage of this shortly.

Testing of this can be accomplished by adding:

;preview enabled

to the "tremelo.ny" effect, just after the ";action" line.

Adding that line will cause the "Preview" button to be shown and
you will then be able to preview, adjust, preview, apply...
2014-10-05 18:22:41 +00:00
james.k.crook@gmail.com
f5e593cc4c Paul L's new SelectedRegion class replacing use of t0 and t1. Also LabelTrack.h no longer in TrackPanel.h includes.
This change is believed to be a direct refactoring that does not change functionality.  It paves the way for more complex kinds of selection, such as selections involving frequency as well as time.  It also reduces risk of left and right edges being swapped in future code using SelectedRegion, as the default is to swap on assignment if needed.
2014-10-05 17:10:09 +00:00
lllucius@gmail.com
baa8f8a701 Gale found the reason I'd put in the yield during Nyquist processing,
so added it back for the Mac only.  See discussion in:

http://bugzilla.audacityteam.org/show_bug.cgi?id=734
2014-07-15 02:41:21 +00:00
lllucius
fe241e4d23 Implement suggested fix for http://bugzilla.audacityteam.org/show_bug.cgi?id=734. Tested on Windows and Steve tested on Linux. 2014-07-12 14:29:54 +00:00
benjamin.drung@gmail.com
277932dccb Remove trailing spaces. 2014-06-03 20:30:19 +00:00
martynshaw99
afe1f36522 Steve's patch for bug 681 "New number input validation breaks several Nyquist plug-ins". It looks sensible and has only a limited scope. 2013-12-31 00:19:52 +00:00
v.audacity
b967013fdf improved comment for patch for http://bugzilla.audacityteam.org/show_bug.cgi?id=490 2013-12-20 00:05:35 +00:00
v.audacity
417b764915 Steve's patch for http://bugzilla.audacityteam.org/show_bug.cgi?id=490, " Global variable "s" has two conflicting values in Audacity" 2013-12-19 23:51:54 +00:00
lllucius@gmail.com
08c94d5372 Backported wxWidgets-3.0rc1 number validators
The are pretty darn slick.  There's an integer one and a floating point 
one.  They support automatic range limiting (ex., you can't even type a 
number outside of the range), proper number formats (ex., you can't 
enter a decimal point in an integer field), you can't enter bogus 
numbers like "0.3-.2", thousands separators are supported, decimal 
precision may be specified and proper number formatting for string 
values (or automatic conversion to int, double, float, etc.).
2013-10-23 20:33:17 +00:00
v.audacity
cf6a0817f6 Add to comment about thread-safety. 2013-10-09 05:03:42 +00:00
lllucius
726139ebc1 Fix #1 for bug #642
http://bugzilla.audacityteam.org/show_bug.cgi?id=646
2013-10-07 23:41:27 +00:00
james.k.crook@gmail.com
dba81b3f1c Cleanup: Fixed lots of trivial MSVC warnings. 2013-08-25 21:51:26 +00:00
richardash1981
d4989b3a53 Patch by Steve the Fiddle to trap another invalid return from Nyquist and prevent crashing Audacity 2013-05-06 10:29:06 +00:00
v.audacity
c26b3c6b49 Campbell Barton's further patch to turn many, many tabs to our 3-space convenbtion 2013-02-23 04:33:20 +00:00
v.audacity
ed01546ee9 David Bailes's fix for bug 577 2013-01-13 05:41:04 +00:00
v.audacity
efaebf27fa Purge ANSI.
Also remove redundant (R) sign from main page in About dialog.
2012-06-23 02:28:04 +00:00
richardash1981
b8134fc306 commit it tidied up version of the patch to fix bug 497, with a consistent error message (none of the others include the Error. prefix) and some documentation of what the nyx function returns for future sanity. 2012-06-16 16:58:17 +00:00
richardash1981
627f4dd757 add support for Nyquist effects in Chains, written by Leyland and Martyn based on an idea by Edgar 2012-05-26 20:25:13 +00:00
james.k.crook@gmail.com
63f0b8b09e Fixed more internationalisation hints. 2012-03-20 16:17:37 +00:00
v.audacity
3a1d4334f2 Make wxLog* calls consistently not have \n at the end. Turn some wxLogWarning calls to wxLogError. Put some periods at the ends of sentences. 2011-10-09 21:14:03 +00:00
martynshaw99
309f9a90ce Disallow non-numeric chars in numeric input boxes.
Patch by Ed using examples by Martyn & James.
2011-06-16 23:29:56 +00:00
v.audacity
2ea3fd6553 clarifications in comments 2011-04-18 06:30:07 +00:00
rbdannenberg
42b7a6ed51 Fixed bug where once a Nyquist effect is run with Debug it always runs as if Debug was clicked even if the user clicked OK button. 2010-11-12 19:03:55 +00:00
BusinessmanProgrammerSteve
a5a749f2e8 Fix compile warning: signed/unsigned comparison in Nyquist.cpp 2010-11-06 21:36:21 +00:00
rbdannenberg
467aa5590a Fixed SAL effects so that correct line numbers are reported when an error occurs. 2010-11-02 19:46:19 +00:00
rbdannenberg
28661781be Modified so that when debugging SAL code, errors cause SAL traceback rather than XLISP stack trace. 2010-11-01 05:04:39 +00:00
rbdannenberg
f2e6d8ec0f Nyquist Effects now treat Nyquist code and output as UTF-8. Nyquist Prompt effect accepts both LISP and SAL (in SAL, either define function main or write return <expression> at the top level). 2010-11-01 03:15:39 +00:00
martynshaw99
38caac8648 Edgar's fix for problems with backslashes and double-quotes in the Audacity Nyquist text input widget, as approved by Steve, Al and Roger. 2010-10-28 23:22:02 +00:00
windinthew
31041351c5 Remove ellipses from title of Nyquist Prompt dialogue 2010-09-21 06:03:52 +00:00
rbdannenberg
a1f0e5ed5b Extensive changes to improve NoteTrack display and (some) editing, NoteTrack playback via MIDI, and Midi-to-Audio alignment. 2010-09-18 21:02:36 +00:00
BusinessmanProgrammerSteve
ed7f94ca7d Avoid passing a wxString to wxString::Printf() 2010-09-10 05:22:23 +00:00
v.audacity
7d762c5954 Add missing ".c_str()" to Printf arg. 2010-09-01 22:28:23 +00:00
v.audacity
2beae4edb5 Check for type of slider control, and instead of defaulting to int on a bad specification, put up a warning and do not create the slider. 2010-08-27 22:56:01 +00:00
v.audacity
50ea5acf27 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 23:56:50 +00:00
v.audacity
209a2b193d Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 22:47:26 +00:00
businessmanprogrammersteve
e35e019e17 Change lots of code that uses linking to use the new
scheme.
2010-02-16 20:50:38 +00:00
james.k.crook
f4e81220b3 New ShowInfoDialog() function for text message plus OK button. Resizability more obvious now, and cursor at position 0. 2010-02-13 18:24:57 +00:00
james.k.crook
a2ad4dae36 Use RICH2 edit ctrl in place of plain old text ctrl where possible. We can tab into it, and it is expected to be better for screen readers. 2010-02-13 11:11:05 +00:00
ra
e74978ba77 Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches 2010-01-23 19:44:49 +00:00