So I am making a simple piano app (my first project) and im very new to Corona. Basically I want piano to have some different types of sounds that can be choosen in small table view widget, here’s my problem- how to make it with that feature? If it will work something like this: Piano plays normal. You’re tapping on button that activates the table view, then you’re choosing for example ‘pedal sustain’ option and keys play now another type of sound. How do I make that? I use this code for all of the keys on keyboard:
local widget = require(“widget”)
local C = media.newEventSound(“C.mp3”)
local button_C_Press = function(event)
media.playEventSound(C,button_C_Press)
end
local button_C = widget.newButton
{
defaultFile = “NewKey.png”,
overFile = “NewKey2.png”,
onPress = button_C_Press,
}
button_C.x = 20; button_C.y = 295
…Thanks for help