Skip to content
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

Change in frameCutter ? Error when checking types. Expected: Real, received: std::vector<Real> #1419

Open
Vriska opened this issue May 30, 2024 · 0 comments

Comments

@Vriska
Copy link

Vriska commented May 30, 2024

Based on this issue #175, it looks like frameCutter should be outputting real but it's outputting a real vector instead. How should I handle this ? I tried passing it to FrameToReal but that's giving me another error- the opposite basically

Error when checking types. Expected: std::vector, received: Real

What on earth is going on ?

``
filename = path +'/'+str(i)

    loader =EqloudLoader(filename=filename, sampleRate=44100)

    frameCutter = FrameCutter(frameSize = 2048, hopSize = 128)

    frameRealer = FrameToReal()

    print("Duration of the audio sample [sec]:")

    pitch_extractor = PredominantPitchMelodia()

    fileout = FileOutput(filename = 'pitch.txt')

    loader.audio >> frameCutter.signal

    frameCutter.frame>>frameRealer.signal

    frameRealer.signal>>pitch_extractor.signal

    pitch_extractor.pitch>>fileout

    pitch_extractor.pitchConfidence>> None

    essentia.reset(loader)

    essentia.run(loader)

``

Also does Loader load the entire music file into ram or can I keep writing into the music file while this processing is going on . I want to write to a file and process the frames at the same time, is my approach correct ?

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

No branches or pull requests

1 participant