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

Couple of issues with the code on the readme.md #10

Open
tinpark opened this issue Mar 9, 2022 · 1 comment
Open

Couple of issues with the code on the readme.md #10

tinpark opened this issue Mar 9, 2022 · 1 comment

Comments

@tinpark
Copy link

tinpark commented Mar 9, 2022

Hi James, this is totally brilliant set of tools and fantastically helpful. Thanks for sharing it. I was just getting going and fell when using the example on the readme.md page, a few bits and pieces missing from the imports and a typo in the fluid name, easy to fix, but might slow a newbie like me down... :). This works for me, with obviously, swapping the paths to src and corpus. Hope it's all going well.

# import ftis modules that we need
from ftis.analyser.slicing import FluidNoveltyslice # novelty slicing
from ftis.world import World # a ftis 'world'
from ftis.corpus import Corpus # a corpus object
from ftis.analyser.audio import ExplodeAudio, CollapseAudio

src = Corpus("~/corpus-folder/corpus1") # corpus object collects audio files at this directory
out = "~/corpus-folder/slicing" # set an output folder

# instantiate an instance of the process
world = World(sink=out)

# Connect together processes using >>
src >> FluidNoveltyslice(threshold=0.35, feature=1) >> ExplodeAudio()

# now add a Corpus node to our world
world.build(src)

if __name__ == "__main__":
    world.run() # finally run the chain of connected analysers
@jamesb93
Copy link
Owner

jamesb93 commented Mar 9, 2022

Hey!

Thanks for bashing through the warts here... since the new role FTIS has been left in the proverbial code draw.

I should update these examples! Let me know if I can help you in any more detail.

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

2 participants