-
-
Notifications
You must be signed in to change notification settings - Fork 50
Adding flac file format #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leidentech
wants to merge
2
commits into
brummer10:master
Choose a base branch
from
leidentech:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. But didn't we need to change the max value for fformat to 3.0 in order to allow to select flac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that what that's for?
Odldy enough it doesn't make a difference with what I tested (see attached image). But, it makes sense looking at what the registerFloatVar is supposed to do. I'm not sure these values are being validated anywhere otherwise I would have expected it to fail.
It applies to this line too:
reg.registerFloatVar("st_recorder.file","","S",N_("select file format"),&fformat, 0.0, 0.0, 2.0, 1.0, fformat_values);Odldy enough it doesn't make a difference with what I tested. But, it makes sense looking at what the registerFloatVar is supposed to do.
I'll change these and commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW I have a few other changes that I've done for my own workflow - which may or may not be interesting for other people. Let me know if anything sounds interesting.
First, I'm saving the files as std::strftime(datetime, sizeof(datetime), "%Y%m%d-%H%M%S", now) + extension. This is because I use guitarix running on multiple machines (desktop, laptop and portable pi) and then when I go to combine the files (to listen to on my phone) the ones with the same index number and file format are overwritten with the old naming scheme.
The other is that I added Taglib as a requirement and I'm writing the bank:preset to the metadata comment tag. Which maybe is interesting for other people. Actually, I'm writing the bank:preset into the genre and album fields too and hard-coding a few others like artist so that I can see what setup I was using when I listen to the files on my phone with some players (auxio) I can sort by genre which I find handy. But, this is my workflow so maybe too specific.
This maybe shouldn't be required (although it seems that taglib seems to also be available for mac and windows) and maybe things like artist should be picked up from some external json file (maybe that's too much trouble - besides if people want to add tags there are other ways to do it).
Another is that I dump the pmap into a file with the the .txt extension, so that if something sounds particularly interesting I can reproduce the settings at a later date.
Maybe this would be handy but then as a setting it should be possible to turn this off.