[CM] Selecting a sound
e deleflie
edeleflie@gmail.com
Mon, 18 Jun 2007 21:59:01 +1000
sorry .... I'm thinking in java ... its not
select-sound(insound)
but rather:
select-sound insound
cripes ... I just spent 2 days on that. :|
Etienne
On 6/18/07, e deleflie <edeleflie@gmail.com> wrote:
> but the error is on the line
>
> select-sound(insound);
>
> where insound is defined by:
>
> (let ((insound (open-sound fullfilename)))
>
> If I do
> select-sound(0);
>
> I get the same result: misc-error: (#f Wrong type to apply: ~S ((0)) #f)
>
> The doc for select-sound says it takes an index.... have I overlooked
> something ?
>
> Etienne
>
>
> On 6/15/07, Bill Schottstaedt <bil@ccrma.stanford.edu> wrote:
> > > (display (format #f "Currently selected Sound is ~D \n" (selected-sound)))
> >
> > selected-sound returns #f if there is no selected sound. The ~D format
> > directive wants an integer. So, use ~A instead.
> >
> >
> > On Ladspa, the plugin tells Snd how many inputs and outputs it wants,
> > and it handles the rest. I could add the usual "snd chn edpos" args to
> > apply-ladspa -- or maybe use a different name like ladspa-channel.
> > Seems late in the game to add anything -- isn't ladspa in its current
> > incarnation dead?
> >
> >
>