Suggestions on using gridfs to stream file for Overtone consumption.

10 views
Skip to first unread message

Boris Kourtoukov

unread,
Mar 20, 2015, 6:38:57 AM3/20/15
to clojure...@googlegroups.com

I am wondering if I can return a resource from GridFS that I can then used as a buffer within overtone.

Overtone example form file system:

(def flute-buf (load-sample "/flutey-echo-intro-blast.wav"))

I am very new to this, and have been working from the file system for a while. But my needs are moving to a much larger set of audio resources and I am hoping to use Mongo to manage access to them. (The DB will always be local.)

I have been able to store the files within GridFS, and query them, but am stumped on how to pass them to other parts of my code-base (overtone for the time being).

I am also wondering about any possible caveats  of memory management, how should I 'hold on' and 'release' queried buffers that I no longer need?

Any help would be greatly appreciated!

(A sub question, and possibly too much for me to tackle but, do you think it is possible to use GridFS streaming capabilities to lower the memory footprint of loading files immediately and just consume them as they are done playing?)
Reply all
Reply to author
Forward
0 new messages