7T3YYRL4PXCPI2L24IM2I4VV3YQMQP5J72M7RQMX7NLXHFK7STMQC
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif file_exists(Words[word_idx].contents..'.wav') then
Words[word_idx].recording = love.sound.newSoundData(Words[word_idx].contents..'.wav')
Playing_source = love.audio.newSource(Words[word_idx].recording)
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = nil
end
{"fw_parent":196,"learn_mouse_release":58,"fw_app":"spell-cards","learn_keychord_press":59,"learn_text_input":60,"learn_key_release":61,"draw_new_word_button":117,"on.mouse_press":51,"draw_record_button":140,"save_wav":171,"draw_play_button":141,"on.keychord_press":194,"on.key_release":55,"on.text_input":54,"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"exists":175,"draw_playing_button":130,"play":197,"record":189,"Line_height":9,"learn_mouse_press":57,"on.save_settings":192,"to_word_idx":94,"draw_teach_word":68,"Recording_device":132,"on.load_settings":193,"draw_recording_button":133,"teach_mouse_release":46,"teach_mouse_press":88,"teach_key_release":56,"file_exists":176,"Recording_word":138,"Mode":2,"on.mouse_release":52,"draw_teach_screen":110,"draw_learn_screen":4,"teach_text_input":49,"on_play":96,"on.draw":5,"teach_keychord_press":47,"Words":12,"on_record":95,"on.initialize":7,"Playing_source":126,"Font_height":8,"on":1}
play = function(word_idx)
print('play', word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif file_exists(Words[word_idx].contents..'.wav') then
Words[word_idx].recording = love.sound.newSoundData(Words[word_idx].contents..'.wav')
Playing_source = love.audio.newSource(Words[word_idx].recording)
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = nil
end
{"learn_text_input":60,"learn_key_release":61,"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":194,"on.key_release":55,"file_exists":176,"on.text_input":54,"Cursor_word":24,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"fw_parent":195,"Recording_word":138,"record":189,"fw_app":"spell-cards","draw_teach_screen":110,"on.save_settings":192,"draw_teach_word":68,"on_play":96,"play":196,"save_wav":171,"Playing_source":126,"teach_mouse_press":88,"teach_text_input":49,"teach_mouse_release":46,"on":1,"Mode":2,"teach_keychord_press":47,"teach_key_release":56,"exists":175,"draw_learn_screen":4,"on_record":95,"on.draw":5,"learn_keychord_press":59,"Words":12,"draw_recording_button":133,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"on.load_settings":193,"draw_playing_button":130}
play = function(word_idx)
print('play', word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif exists(Words[word_idx].contents..'.wav') then
Words[word_idx].recording = love.sound.newSoundData(Words[word_idx].contents..'.wav')
Playing_source = love.audio.newSource(Words[word_idx].recording)
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = nil
end
{"learn_text_input":60,"learn_key_release":61,"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":194,"on.key_release":55,"file_exists":176,"on.text_input":54,"Cursor_word":24,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"fw_parent":194,"Recording_word":138,"record":189,"fw_app":"spell-cards","draw_teach_screen":110,"on.save_settings":192,"draw_teach_word":68,"on_play":96,"play":195,"save_wav":171,"Playing_source":126,"teach_mouse_press":88,"teach_text_input":49,"teach_mouse_release":46,"on":1,"Mode":2,"teach_keychord_press":47,"teach_key_release":56,"exists":175,"draw_learn_screen":4,"on_record":95,"on.draw":5,"learn_keychord_press":59,"Words":12,"draw_recording_button":133,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"on.load_settings":193,"draw_playing_button":130}
on.keychord_press = function(chord, key)
if chord == 'tab' then
if Mode == 'teach' then Mode = 'learn'
else Mode = 'teach' end
return
end
if Mode == 'teach' then
teach_keychord_press(chord, key)
else
learn_keychord_press(chord, key)
end
end
{"Font_height":8,"learn_mouse_press":57,"Line_height":9,"draw_recording_button":133,"learn_keychord_press":59,"learn_text_input":60,"on.save_settings":192,"learn_key_release":61,"Recording_device":132,"on.load_settings":193,"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"Recording_word":138,"on.key_release":55,"on.text_input":54,"Cursor_word":24,"on_new_word_button":118,"new_word":64,"fw_parent":193,"on_word":80,"fw_app":"spell-cards","to_word_idx":94,"record":189,"file_exists":176,"draw_playing_button":130,"Mode":2,"draw_teach_word":68,"on_play":96,"learn_mouse_release":58,"draw_learn_screen":4,"save_wav":171,"teach_mouse_press":88,"on_record":95,"teach_mouse_release":46,"exists":175,"teach_keychord_press":47,"on.keychord_press":194,"teach_key_release":56,"on":1,"teach_text_input":49,"Playing_source":126,"on.draw":5,"play":177,"Words":12,"draw_teach_screen":110,"on.initialize":7,"draw_new_word_button":117}