Getting filename from songs.

Effects, Recipes, Interfacing with other software, etc.
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
Post Reply
helblade
Posts: 2
Joined: Mon Apr 06, 2009 7:19 am
Operating System: Please select

Getting filename from songs.

Post by helblade » Mon Apr 06, 2009 7:25 am

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.

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Getting filename from songs.

Post by steve » Mon Apr 06, 2009 11:51 pm

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.
You will need to do that from user input as Audacity does not pass that information to Nyquist.

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)

helblade
Posts: 2
Joined: Mon Apr 06, 2009 7:19 am
Operating System: Please select

Re: Getting filename from songs.

Post by helblade » Tue Apr 07, 2009 5:42 am

oh okay. thanks alot.

Post Reply