[CM] Advice on using snd's (play) from another program?
Jenweil
HerbertGrimsby at protonmail.com
Fri Jan 17 07:43:19 PST 2025
> I don't understand the question about "repl parsing"; you can give the
> index directly to play: (play 1), or the sound object, or the file name.
Sorry, I meant parsing from the listener. I like that (open-sound ...) gives me back a handle, and that the printed form shows what I can use to play.
In your example, I would have gotten back a "#<sound 1>", so my naive approach would be to parse that string in comint, get the "1", and store it along with the file name, so I know to execute (play 1), when I want to play "file.wav".
Is it possible to explicitly set which number I get back? Or somehow programmatically assign which number gets mapped to which sound file I open?
Thanks again for all your generous help.
On Thursday, January 16th, 2025 at 2:03 PM, bil at ccrma.Stanford.EDU <bil at ccrma.Stanford.EDU> wrote:
> > I'd like to avoid re-reading from disk, and keep everything in memory
>
>
> Linux, and maybe other OS's, caches files in memory.
>
> > I don't know how to autocomplete for symbols
>
>
> If you're using Snd's listener, use the tab key when the cursor is
> at the end of the symbol-to-be-completed.
>
> I don't understand the question about "repl parsing"; you can give the
> index directly to play: (play 1), or the sound object, or the file name.
More information about the Cmdist
mailing list