Skip to content

Updates for hisstools library header-only#49

Merged
tremblap merged 1 commit into
flucoma:mainfrom
AlexHarker:hisstools-header-only
Mar 1, 2024
Merged

Updates for hisstools library header-only#49
tremblap merged 1 commit into
flucoma:mainfrom
AlexHarker:hisstools-header-only

Conversation

@AlexHarker

Copy link
Copy Markdown
Contributor

This is the update for CLI to move to hisstools library header-only

@AlexHarker

Copy link
Copy Markdown
Contributor Author

needed for flucoma/flucoma-core#265

@AlexHarker AlexHarker requested a review from tremblap March 1, 2024 11:53
@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

oh I should have meetings more often. things happen by magic!

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

I'll listen to bufnmf null summing as audio out sanity test?

@tremblap tremblap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a lot of these errors:

/research/dependencies/hisstools-src/include/audio_file/out_file.hpp:230:36: error: use of undeclared identifier 'endianness'
if (header_endianness() == endianness::little)
^

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

(helping me to find the answer would be appreciated if you have the time to be verbose - I aim to improve my independence)

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

ok i tried and it seems to be an error in the header file out_file.hpp that I cannot correct...

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

should it be m_endianness instead?

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

actually, I replaced endianness:: with endian_type:: and it works

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

next bug:

FluidCLIWrapper.hpp:97:19: error: too few arguments to function call, single argument 'position' was not specified
file.seek();
~~~~~~~~~ ^
/Users/pa/Documents/documents@hudd/research/projects/fluid corpus navigation/research/dependencies/hisstools-src/include/audio_file/out_file.hpp:76:10: note: 'seek' declared here
void seek(uintptr_t position)

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

ok so I missed the memo - it seems to work with the pull to the changes in HISStools and I'm chasing bugs that were sorted - but there is no note here that I should have pulled, hence the ghost chasing!

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

ok real problem now: no more null-summing.

  • download the CLI version, run HPSS with default settings, it nullsums in reaper
  • with the latest compile of header only, it doesn't - I suspect bit resolution size is not behaving as it is all in the top end

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

both are 32 bit float, so that is not the problem. Here is the output of afinfo on both versions - so it might be in the reading or the handling of the audio. I will stop pretending to troubleshoot but there is something not happy with file i/o

pa@tas ~ % afinfo /Users/pa/Desktop/h.wav
File: /Users/pa/Desktop/h.wav
File type ID: WAVE
Num Tracks: 1

Data format: 1 ch, 44100 Hz, Float32
no channel layout.
estimated duration: 10.293243 sec
audio bytes: 1815728
audio packets: 453932
bit rate: 1411200 bits per second
packet size upper bound: 4
maximum packet size: 4
audio data file offset: 44
optimized
source bit depth: F32

pa@tas ~ % afinfo /Users/pa/Desktop/h\ copy.wav
File: /Users/pa/Desktop/h copy.wav
File type ID: WAVE
Num Tracks: 1

Data format: 1 ch, 44100 Hz, Float32
no channel layout.
estimated duration: 10.293243 sec
audio bytes: 1815728
audio packets: 453932
bit rate: 1411200 bits per second
packet size upper bound: 4
maximum packet size: 4
audio data file offset: 44
optimized
source bit depth: F32

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

I found the bug - there is a one sample offset in either input or output but I get 1 sample earlier with the new version

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member
Screenshot 2024-03-01 at 13 16 27

@AlexHarker

Copy link
Copy Markdown
Contributor Author

Thanks - is this a change of behaviour from the previous version?

@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

yes, the lined up file in the picture is yesterday's nightly. the only diffs are in core and here relating to the header-only hiss-magic

@AlexHarker

Copy link
Copy Markdown
Contributor Author

Please redo all your cmake and test again - this should now be fixed (with core pulling in the fix)

@tremblap tremblap merged commit 16de960 into flucoma:main Mar 1, 2024
@tremblap

tremblap commented Mar 1, 2024

Copy link
Copy Markdown
Member

it all works thanks

@AlexHarker AlexHarker deleted the hisstools-header-only branch April 24, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants