I am trying to develop an app where you press one of many buttons, it will start a song, with only the one track designated to that button to be heard, that way, when another track button is pressed, it will “unmute” and join in at the right time. I am willing to learn code better, understanding it will take a long time and a lot of work, but I don’t know where to start. I have this so far:
display.setStatusBar( display.HiddenStatusBar )
local bg = display.newImage( “Music BG.png”, 0, 0)
local song1 = display.newImage( “Song 1.png”, 86, -5)
local buttonOrange1 = display.newImage( “Play ButtonOrange.png”, 8, 50)
local buttonOrange2 = display.newImage( “Play ButtonOrange.png”, 8, 160)
local buttonOrange3 = display.newImage( “Play ButtonOrange.png”, 8, 275)
local buttonGrey = display.newImage( “Play ButtonPressed1S.png”, 215, 275)
local buttonGreen = display.newImage( “Play ButtonGreen.png”, 110, 50)
local buttonBlue = display.newImage( “Play ButtonBlue.png”, 110, 160)
local buttonRed = display.newImage( “Play ButtonRed.png”, 110, 275)
local buttonYellow = display.newImage( “Play ButtonYellow.png”, 215, 50)
local buttonPurple = display.newImage( “Play ButtonPurple.png”, 215, 160)
local reset = display.newImage( “Reset.png”, 8, 440)
local keyboardChords_mp3 = audio.loadSound(“HipHopKeyboard(Song1).mp3”)
local keyboardMelody_mp3 = audio.loadSound(“KeyboardMel(Song1).mp3”)
local allSoundActive = false
function onEnterFrame( event )
if (allSoundActive = false)
if (
function buttonGreen:tap( event )
audio.play(keyboardChords_mp3)
audio.play(keyboardMelody_mp3)
end
local function onEnterFrame( event )
buttonGreen.rotation = buttonGreen.rotation + 2
end
local function onTouch(event)
if (event.phase == “began”) then
Runtime:addEventListener(“enterFrame”, onEnterFrame)
end
end
function reset:tap( event )
audio.stop(keyboardChords_mp3)
audio.stop(keyboardMelody_mp3)
end
buttonGreen:addEventListener( “touch”, onTouch )
buttonGreen:addEventListener( “tap”, buttonGreen )
buttonGreen:addEventListener( “tap”, buttonGreen )
reset:addEventListener( “tap”, reset )
I don’t know if that made any sense, but could someone point me in the right direction? I also want the user to be able to export the finished song to their itunes. [import]uid: 189494 topic_id: 32290 reply_id: 332290[/import]