Knobs

etLux

Member
Licensed User
Longtime User
Image + touch event handling -> image rotation = knob ?

Maybe. I'm still coming up the hill on the learning
curve... lol -- so I'm just fishing for a way to do it
at the moment.

In other environments, another approach is to make
a strip containing images at the various required
rotations -- then incrementally move through that
image strip in relation to the horizontal motion of
the user input. [Sample image, below at end.]

There's a great little free tool, KnobMan, that's
designed to make image strips for that approach:
Software - KnobMan ver.1.44 | g200kg Music & Software
-- which I've used with products like SynthMaker.

One of the assets of that approach is it gives
you much better control over lighting and shadow
than you could get by rotating a single fixed
image.

Best,



David
-----
David Sosnowski
The Music of David Sosnowski

20071014aqua.jpg
 
Last edited:
Upvote 0

karmacomposer

Member
Licensed User
Longtime User
On that note, is there a way to create music/audio apps using Basic4Android?

I create virtual instruments for windows (synthedit) and would LOVE to create some music/instrument apps using this software for Android (especially for tablets).

I have tons of samples I created. I wonder if you could use soundfont format? If not, I wonder how to map samples? Anyway, if someone could let me know if it's possible to create audio apps.

I assume sliders, buttons and knobs can be used from Knobman (which I do use).

Mike
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
@david
If you want the knob to travel in both directions then this will need a little more work.
but if you always moving in one direction then at least there are a number of workarounds.
One of them is to use the circle function (modified) to rotate a point around axis, then touch
the knob center, or longtouch it and the point should move (your code).. a single touch will give you
a single step.
Yet another workaround (I call it the poor man's solution) is to place multiple tiny labels in
a circular way around he knob, and make them transparent. This will give you a limited number
of steps and the knob pointer will jump from point to point. some knobs do this (switching knobs)

my two cents.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
oh!

Thanks Informatix and sorry because I didn't see the date.. I was searching for something
and didn't get to the thread by drilling the forum.
Thanks for the link.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Informatix,

Where can I find your BitmapPlus library? The example needs it.

Thanks in advance..
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Just wonderful.. can't thank you enough Informatix.. you saved my life.
I wish the UI was in abstract designer layout because I am not good at laying views by code.
I will implement the nob and the switch in my project.
 
Upvote 0
Top