Re: Re: Using VerticalSlider controls for Manipulate

• To: mathgroup at smc.vnet.net
• Subject: [mg96690] Re: [mg96674] Re: Using VerticalSlider controls for Manipulate
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Sat, 21 Feb 2009 19:37:22 -0500 (EST)
• Reply-to: hanlonr at cox.net

```If you are going to use a Button, I would recommend that you assign some action to it (e.g., increment).

a = 64; b = 64;
Grid[{{VerticalSlider[Dynamic[a], {0, 127, 1}],
VerticalSlider[Dynamic[b], {0, 127, 1}]},
{Button[Dynamic[a], a = Min[127, a + 1]],
Button[Dynamic[b], b = Min[127, b + 1]]}}]

Bob Hanlon

---- brtubb at pdmusic.org wrote:

=============
I found a "solution" which might interest others, so here is an
example. As my intent is to allow dynamic values with labels for the
sliders, the "Button" approach is the next best thing :>)

Dynamic[a]; Dynamic[b]; a = 64; b = 64;
Print[
Column[
{
Row[
{VerticalSlider[Dynamic[a], {0, 127, 1}],
, " ", VerticalSlider[Dynamic[b], {0, 127, 1}]}
],
Row[{Dynamic[Button[a]], "  ", Dynamic[Button[b]]}]
}
]
]

Thanks for all the feedback.

P.S. Ideally I'd like to use Mathematica perhaps with the Orchestra-95 text
based music language (for programming "ease") to allow both MIDI
[SoundNote[] based] AND additive synthesis [Play[] based] playback of
music playable polyphonically with the Sound[] function whether for
algorithmic music or not!.

But it would be very helpful if Mathematica could IMPORT MIDI files and just
export them (unless Version 7 can now -- v6 doesn't).

Benjamin Tubb
www.pdmusic.org

On Feb 19, 2:34 am, brt... at pdmusic.org wrote:
> On Feb 18, 5:00 am, Yves Klett <yves.kl... at googlemail.com> wrote:
>
>
>
>
>
> > Benjamin,
>
> > you might have a look at the earlier thread,"Custom label for a slider
> > in Manipulate".
>
> > While I agree with David that Manipulate is not suitable for everything=
,
> > for those still wanting to use it there is Control[] in Version 7 that
> > allows you to place Manipulate control statements flexibly, e.g. in
> > grids, columns etc.
>
> > Regards,
> > Yves
>
> > brt... at pdmusic.org schrieb:
>
> > > In reference to the Manipulate function, does anyone know how to use
> > > row arranged variables with it, particular the VerticalSlider control
> > > if possible. As it it the only placement alignment is either top,
> > > bottom left or right but only in column formats, I want to use rows.
> > > I'm using Mathematica v6.0.2.
>
> > > Benjamin Tubb
> > >www.pdmusic.org-Hide quoted text -
>
> > - Show quoted text -
>
> Thanks. As to ver 7, I'm using ver 6.0.2 with a complimentary license
> from Stephen Wolfram already (but it expires 5 Mar 09), having only
> bought ver 3 previously, and can't afford to upgrade (to \$2500!)
> otherwise. As it is I'm trying to develop some music Demonstration
> Projects on as fast a learning curve as I can, despite having two hard
> drive crashes last year, and only (finally) recovering late last
> month, but at least I have DSL service now <g>, and a new (mfg. 12/08)
> 300GB hard drive! And I'm still using a WinXP Pro PC.- Hide quoted text -
>
> - Show quoted text -

```

• Prev by Date: Re: Help with project needed
• Next by Date: DiscretePlot
• Previous by thread: Re: Using VerticalSlider controls for Manipulate
• Next by thread: FourierTrigSeries[] and user-defined function