[nama] Re: Sample rate setting

  • From: Joel Roth <joelz@xxxxxxxxx>
  • To: nama@xxxxxxxxxxxxx
  • Date: Thu, 17 Aug 2017 20:27:49 -1000

Okay guys $project->{sample_rate} is a new field. 

The command line option is --sample-rate 48000
You can also use -z 48000. ('z' comes from 'Hz'.)

Now the sample rate of a project won't change when 
namarc is changed. 

If you need to change sample rates mid project, I can offer:

eval $project->{sample_rate} = 48000

The new setting will be saved immediately by autosave.
It's not a common requirement that we need a command for it,
don't you think?

And you guys have to get familiar with a little perl5
syntax ;-)

I am bumping the version to 1.211. When loading earlier
projects the sample rate will be set according to namarc or
the --sample-rate flag. So older projects are not preserved
against changes in namarc sample_rate setting, at least
not until you reload and save them. 

cheers,

Joel


On Wed, Aug 16, 2017 at 07:37:04AM +0200, Jeanette C. wrote:

Aug 16 2017, Joel Roth has written:

Namaste,

It may be useful to allow for using different sample rates
in different projects.
Yes.

Instead of always getting the sample rate from namarc,
the sample rate could be saved with each project, so
that a change to namarc in future doesn't break previous
projects.
When creating a project the samplerate should be taken from the .namarc
setting.

The create command could take an optional parameter to set a different
samplerate on creation.

An additional single command can be implemented to change the sample
rate of a project. This hypotential command must be aware of already
existing files in the project. All existing track files must be a)
resampled or b) get Ecasound's resample-hq operator. The former is
strongly recommended, due to CPU usage and the quality of resample-hq in
realtime. I think even Kai wasn't too convinced of his resampling
operators at the time.

There could also be a command line option such as
--sample-rate, to set this value for a new project.
Good one!
...

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

I believe
We all have one true love
Somewhere in this world <3
(Britney Spears)


-- 
Joel Roth
  


Other related posts: