Hi. I'm new to audacity and i'm trying to make a beat analyzer that prints out the time of beats to an external file using a nyquist plugin.
So far i've been able to print stuff out but i cant seem to find any supporting documents that would enable me to print the filename of the sound file i am using. i'm using the ;type analyze plugin for this.
any help will be greatly appreciated.
thanks.
Getting filename from songs.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Re: Getting filename from songs.
You will need to do that from user input as Audacity does not pass that information to Nyquist.helblade wrote:i cant seem to find any supporting documents that would enable me to print the filename of the sound file i am using.
Code: Select all
;nyquist plug-in
;version 2
;type analyze
;name "A-test"
;action "test"
;info "text input example..."
;; input for name
;; Note that for an empty input field, ther must be 2 spaces at the end of the line.
;control name "Enter Your Name" string "" ""
;; input for message
;; input field is not empty, so spaces at end of the line are not required.
;control input-text "text before box" string "text after" "input"
;; concatenate (join) strings
(setq message (strcat "your name is: " name ".nYour message is: " input-text))
(print message)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Getting filename from songs.
oh okay. thanks alot.