Accessing Metadata with Nyquist?

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
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
Ktarnj
Posts: 8
Joined: Tue Sep 15, 2020 12:06 pm
Operating System: Windows 10

Accessing Metadata with Nyquist?

Post by Ktarnj » Tue Sep 15, 2020 12:12 pm

I'm new to Audacity and Nyquist, but I'm working on something that requires additional information to be added to audio files that are chopped up and I thought that the metadata would be a good place. I would like to have this done automatically, is there a way to access the metadata with Nyquist?

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

Re: Accessing Metadata with Nyquist?

Post by steve » Tue Sep 15, 2020 12:27 pm

Ktarnj wrote:
Tue Sep 15, 2020 12:12 pm
is there a way to access the metadata with Nyquist?
Nyquist does not have any built-in support for metadata as far as I'm aware.

Ktarnj wrote:
Tue Sep 15, 2020 12:12 pm
I'm working on something that requires additional information to be added to audio files that are chopped up
If you tell us more about what you are doing, we 'may' be able to suggest an alternative approach.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ktarnj
Posts: 8
Joined: Tue Sep 15, 2020 12:06 pm
Operating System: Windows 10

Re: Accessing Metadata with Nyquist?

Post by Ktarnj » Tue Sep 15, 2020 12:41 pm

steve wrote:
Tue Sep 15, 2020 12:27 pm
Ktarnj wrote:
Tue Sep 15, 2020 12:12 pm
is there a way to access the metadata with Nyquist?
Nyquist does not have any built-in support for metadata as far as I'm aware.

Ktarnj wrote:
Tue Sep 15, 2020 12:12 pm
I'm working on something that requires additional information to be added to audio files that are chopped up
If you tell us more about what you are doing, we 'may' be able to suggest an alternative approach.
I have to clip some long duration time tagged audio files but still carry that information over into the new files I generate. So for instance if I have a file that starts at 2:15 and goes to 5:15, and I clip a 15 minute segment of it at 3:45 to 4:00, that the clip starts at 3:45.

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

Re: Accessing Metadata with Nyquist?

Post by steve » Tue Sep 15, 2020 12:56 pm

Ktarnj wrote:
Tue Sep 15, 2020 12:41 pm
time tagged audio files
I'm not sure what you mean. Are you talking about metadata in files that you are importing, or are you referring to labelled audio clips in Audacity tracks?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ktarnj
Posts: 8
Joined: Tue Sep 15, 2020 12:06 pm
Operating System: Windows 10

Re: Accessing Metadata with Nyquist?

Post by Ktarnj » Tue Sep 15, 2020 1:03 pm

steve wrote:
Tue Sep 15, 2020 12:56 pm
Ktarnj wrote:
Tue Sep 15, 2020 12:41 pm
time tagged audio files
I'm not sure what you mean. Are you talking about metadata in files that you are importing, or are you referring to labelled audio clips in Audacity tracks?
I am trying to do something like this:

Image

When I export the 'clipped' file to a new file, I'd like to have a timestamp in there that lets me know the original segment started at 7 seconds, so when I load it into another program it does not start playing the file until at T=7.

Sorry if this is something already possible in Audacity, I'm still new at it and learning. I tried searching on the manual and everywhere regarding timestamps and I can't find anything.

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

Re: Accessing Metadata with Nyquist?

Post by steve » Tue Sep 15, 2020 1:28 pm

Ktarnj wrote:
Tue Sep 15, 2020 1:03 pm
so when I load it into another program it does not start playing the file until at T=7.
If you don't want the first 7 seconds to play, why not just delete the first 7 seconds? :?
I don't see what you are hoping to achieve with metadata.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ktarnj
Posts: 8
Joined: Tue Sep 15, 2020 12:06 pm
Operating System: Windows 10

Re: Accessing Metadata with Nyquist?

Post by Ktarnj » Tue Sep 15, 2020 1:56 pm

steve wrote:
Tue Sep 15, 2020 1:28 pm
Ktarnj wrote:
Tue Sep 15, 2020 1:03 pm
so when I load it into another program it does not start playing the file until at T=7.
If you don't want the first 7 seconds to play, why not just delete the first 7 seconds? :?
I don't see what you are hoping to achieve with metadata.
You are right, I don't want the first 7 seconds to play, but I also don't want it to start playing immediately when I load the file, it needs to know not to play the clip I created until the 7th second.

This is just an example with short duration, the files I have are hours long but only a few segments in the file are necessary for what I'm doing. If I have a 4 hour file, and I take a 1 minute clip that starts at hour 2, I need to preserve that time information somehow in that clip so it knows the clip starts playing at hour 2.

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

Re: Accessing Metadata with Nyquist?

Post by steve » Tue Sep 15, 2020 2:08 pm

Perhaps you could cut to the chase and tell us what you are actually trying to do.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Ktarnj
Posts: 8
Joined: Tue Sep 15, 2020 12:06 pm
Operating System: Windows 10

Re: Accessing Metadata with Nyquist?

Post by Ktarnj » Tue Sep 15, 2020 2:18 pm

steve wrote:
Tue Sep 15, 2020 2:08 pm
Perhaps you could cut to the chase and tell us what you are actually trying to do.
I've explained what I need to do already.

I have a hours long audio file that I need to clip snips out of. But I'm looking for a way to preserve the time information in the clips so I know what times the clips are from. That way if I ever need to go back to the original file I can quickly find it.

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

Re: Accessing Metadata with Nyquist?

Post by steve » Tue Sep 15, 2020 2:25 pm

Ktarnj wrote:
Tue Sep 15, 2020 2:18 pm
I've explained what I need to do already.
But you haven't explained "why".
From the information given so far, the answer would appear to be to just select the part that you want to play, then "File menu > Export > Export Selected Audio", and create a new file that contains only the part that you want to play. I'm guessing that is not what you want, though I have no idea why not.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply