I want to "rip off" the functionality of this web-page:
http://terpstrakeyboard.com/about/
- -
Click on the "Play It Now!" menu item and follow through . . .
You will end up with a microtonal keyboard that has this functionality:
1. When one performs a mouseDown on each hexagon a tone is played.
2. While the mouse button is held down the tone continues to sound.
3. If the mouse is dragged (while being pressed) from one hexagon to the next,
the sound changes from that of the initial hexagon to the new one.
So . . . there would seem to be something "there" that is a bit difficult to implement in LiveCode.
I have 2 adjacent hexagons, called "h1" and "h2" containing these scripts, respectively:
Code: Select all
on mouseDown
set the backgroundColor of me to red
end mouseDown
on mouseStillDown
set the backgroundColor of me to green
end mouseStillDown
on mouseLeave
set the backgroundColor of me to white
end mouseLeave
Code: Select all
on mouseDown
set the backgroundColor of me to blue
end mouseDown
on mouseStillDown
set the backgroundColor of me to yellow
end mouseStillDown
on mouseLeave
set the backgroundColor of me to white
end mouseLeave
THIS is the functionality I am looking for.
I replaced on mouseStillDown with mouseWithin to no avail.
At present there seems to be no way I can detect the presence of a mouse pointer
inwith an object if it has been dragged from outwith that object while its left button
has been depressed.