Skip to content

Conversation

@AlexHarker
Copy link
Contributor

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

@AlexHarker
Copy link
Contributor Author

needed for flucoma/flucoma-core#265

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

tremblap commented Mar 1, 2024

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

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

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

Copy link
Member

@tremblap tremblap left a comment

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
Copy link
Member

tremblap commented Mar 1, 2024

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

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

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

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

should it be m_endianness instead?

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

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

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

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
Copy link
Member

tremblap commented Mar 1, 2024

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
Copy link
Member

tremblap commented Mar 1, 2024

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
Copy link
Member

tremblap commented Mar 1, 2024

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
Copy link
Member

tremblap commented Mar 1, 2024

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
Copy link
Member

tremblap commented Mar 1, 2024

Screenshot 2024-03-01 at 13 16 27

@AlexHarker
Copy link
Contributor Author

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

@tremblap
Copy link
Member

tremblap commented Mar 1, 2024

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
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
Copy link
Member

tremblap commented Mar 1, 2024

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