INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Report actual output sample rate in Standard View Display Text?  (Read 789 times)

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640

Is it possible to get the std view display text (up there at the top of the screen) to report the actual output sample rate, as reported by audio path after DSP Studio Output Format resampling has occurred?

I see no variable for it, and [Sample Rate] only reports the input sample rate, the actual sample rate of the file.

I'd like MC to display what it's actually outputting.

If there's no variable for this, it would be a nice addition.

Thanks...
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Report actual output sample rate in Standard View Display Text?
« Reply #1 on: April 06, 2020, 09:05:42 am »

Coming next build:
NEW: Added the variable [Play Sample Rate] to get the output sample rate instead of the input sample rate during playback.

Thanks for the suggestion.
Logged
Matt Ashland, JRiver Media Center

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3119
Re: Report actual output sample rate in Standard View Display Text?
« Reply #2 on: April 06, 2020, 12:44:59 pm »

Good addition.  A conditional can be used in the header to only display it if it is different than Sample Rate.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Report actual output sample rate in Standard View Display Text?
« Reply #3 on: April 06, 2020, 12:56:20 pm »

Worked on it a little more and got it going for video as well.

Here's the updated history:
NEW: Added the variables [In Sample Rate] and [Out Sample Rate] to get the sample rates during playback.
Logged
Matt Ashland, JRiver Media Center

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Report actual output sample rate in Standard View Display Text?
« Reply #4 on: April 06, 2020, 01:01:43 pm »

Thanks Matt!

Wouldn't [In Sample Rate] always be the same as [Sample Rate]?  What's the difference?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Report actual output sample rate in Standard View Display Text?
« Reply #5 on: April 06, 2020, 01:13:05 pm »

Probably.  Just added to be complete.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Report actual output sample rate in Standard View Display Text?
« Reply #6 on: April 10, 2020, 05:00:52 pm »

Good idea!

Next build:
Changed: The in and out sample rates are formatted for display instead of just returned as a raw number.
Logged
Matt Ashland, JRiver Media Center

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Report actual output sample rate in Standard View Display Text?
« Reply #7 on: April 10, 2020, 05:12:13 pm »

Sorry, I retracted my post while you were posting it looks like, based on testing, because I thought I was nit-picking a bit.

I found that math() produces "friendly" output anyway.  So math(96000/1000) = "96" but math(176400/1000) produces "176.4" so there's really no need for the user to have to account for the decimal point.

math([Out Sampling Rate]/1000) kHz

is a simple enough expression I think for people to use.  But if you still decide to make it formatted for display that will be even more convenient and reduce forum questions I guess.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3119
Re: Report actual output sample rate in Standard View Display Text?
« Reply #8 on: April 10, 2020, 05:15:58 pm »

Maybe formatting is the difference between [OutIn Sample Rate] and [Sample Rate].  Sample rate is used by a lot of people and should not be changed.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: Report actual output sample rate in Standard View Display Text?
« Reply #9 on: April 10, 2020, 05:28:32 pm »

If you want the raw value without formatting you can usually do something like [Sample Rate,0], I would expect this to also work on those new fields either way.
Logged
~ nevcairiel
~ Author of LAV Filters

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Report actual output sample rate in Standard View Display Text?
« Reply #10 on: April 10, 2020, 05:38:52 pm »

dtc, Matt isn't changing [Sample Rate] he's changing the new variables for the playback display text to match the existing formatting of [Sample Rate].

To clarify, [Out Sample Rate] is the sampling rate AFTER processing by the Output Format DSP, which may or may not be the same as [Sample Rate].
[Sample Rate] is of course the native sampling rate of the file, as always.
[In Sample Rate] is the sampling rate prior to modification by Output Format.  It would always be identical to [Sample Rate] but Matt decided to include this new variable anyway just for the sake of completeness.

He's changing the format of the new variables to match so that by default users won't see output like:
Track Sample Rate: 44.1 kHz     Output Sample Rate: 441000
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3119
Re: Report actual output sample rate in Standard View Display Text?
« Reply #11 on: April 10, 2020, 06:29:54 pm »

wer - I understand that. That is why I said there is now a difference between [OutIn Sample Rate] and [Sample Rate] - namely the format.  Before there was not. [Sample Rate] is not being changed and, per my comment, cannot be changed without a lot of grief. I did not mean to suggest that Matt was planning to change it.

EDIT: My mistake. I wrote [Out Sample Rate] when I was thinking [In Sample Rate]. [Sample Rate] and [In Sample Rate] are the same except for formatting. Sorry for the confusion.
Logged
Pages: [1]   Go Up