TRKFVOL7TVS6SLVW3DZMNDMLQEIGRWFIABGXA4YVYCOSPVTH2IRQC
on.load_settings = function(settings)
Font_height = settings.font_height
Line_height = settings.line_height
for _,w in ipairs(settings.words) do
new_word()
Cursor_word.contents = w
Cursor_word.lines[1].data = w
Text.redraw_all(Cursor_word)
end
Cursor_word = nil
end
{"draw_play_button":141,"on.keychord_press":53,"play":177,"on.text_input":54,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"on.load_settings":193,"to_word_idx":94,"Recording_word":138,"record":189,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"exists":175,"on.key_release":55,"teach_mouse_release":46,"draw_teach_screen":110,"teach_keychord_press":47,"on.mouse_release":52,"teach_key_release":56,"save_wav":171,"draw_learn_screen":4,"on":1,"on.draw":5,"on.mouse_press":51,"file_exists":176,"teach_text_input":49,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"draw_recording_button":133,"on_record":95,"learn_keychord_press":59,"Words":12,"learn_text_input":60,"learn_mouse_release":58,"learn_key_release":61,"Mode":2,"draw_playing_button":130,"Cursor_word":24,"on.save_settings":192,"fw_parent":192,"draw_record_button":140,"fw_app":"spell-cards"}
on.save_settings = function()
settings = {words={}}
for _,word in ipairs(Words) do
if word.contents and #word.contents > 0 then
table.insert(settings.words, word.contents)
end
end
settings.font_height = Font_height
settings.line_height = Line_height
return settings
end
{"on.text_input":54,"Cursor_word":24,"on":1,"on_new_word_button":118,"new_word":64,"on_word":80,"Playing_source":126,"record":189,"Recording_device":132,"draw_teach_word":68,"fw_parent":191,"fw_app":"spell-cards","on_record":95,"Recording_word":138,"teach_mouse_release":46,"Mode":2,"teach_key_release":56,"save_wav":171,"draw_learn_screen":4,"on.save_settings":192,"on.draw":5,"file_exists":176,"exists":175,"teach_keychord_press":47,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"draw_recording_button":133,"draw_playing_button":130,"learn_keychord_press":59,"learn_mouse_release":58,"learn_text_input":60,"Words":12,"learn_key_release":61,"teach_text_input":49,"to_word_idx":94,"play":177,"on_play":96,"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":53,"draw_teach_screen":110,"on.key_release":55,"teach_mouse_press":88}
on.save_settings = function()
settings = {words={}}
for _,word in ipairs(Words) do
if word.contents and #word.contents > 0 then
table.insert(settings.words, word.contents)
end
end
end
{"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":53,"on.key_release":55,"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,"Recording_word":138,"record":189,"teach_text_input":49,"play":177,"draw_teach_word":68,"on_play":96,"fw_parent":189,"draw_teach_screen":110,"fw_app":"spell-cards","on_record":95,"exists":175,"teach_mouse_release":46,"teach_mouse_press":88,"Mode":2,"on":1,"teach_key_release":56,"Playing_source":126,"draw_learn_screen":4,"learn_keychord_press":59,"on.draw":5,"save_wav":171,"Words":12,"file_exists":176,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"draw_recording_button":133,"learn_mouse_release":58,"draw_playing_button":130,"teach_keychord_press":47,"learn_text_input":60,"on.save_settings":191,"learn_key_release":61}
on.save_settings = function()
settings = {words={}}
for _,word in ipairs(Words) do
if word.contents and #word.contents > 0 then
table.insert(settings.words, word.contents
end
end
end
{"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":53,"on.key_release":55,"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,"Recording_word":138,"record":189,"exists":175,"play":177,"draw_teach_word":68,"on_play":96,"fw_parent":189,"teach_keychord_press":47,"fw_app":"spell-cards","teach_mouse_press":88,"on_record":95,"teach_mouse_release":46,"teach_text_input":49,"Mode":2,"on":1,"draw_teach_screen":110,"teach_key_release":56,"draw_learn_screen":4,"draw_recording_button":133,"on.draw":5,"draw_playing_button":130,"Words":12,"file_exists":176,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"save_wav":171,"learn_keychord_press":59,"Playing_source":126,"learn_text_input":60,"on.save_settings":190,"learn_key_release":61}
record = function(word_idx)
if Recording_device then
Words[word_idx].recording = Recording_device:getData()
Recording_device:stop()
if Words[word_idx].recording then
save_wav(Words[word_idx].contents..'.wav', Words[word_idx].recording)
end
Recording_device = nil
Recording_word = nil
return
end
local devices = love.audio.getRecordingDevices()
if #devices == 0 then return end
Recording_device = devices[1]
Recording_device:start(10*8000, 8000)
Recording_word = Words[word_idx]
Playing_source = nil
end
{"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"on.keychord_press":53,"on.key_release":55,"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,"Recording_word":138,"record":189,"play":177,"draw_teach_word":68,"on_play":96,"fw_parent":188,"teach_keychord_press":47,"fw_app":"spell-cards","teach_mouse_press":88,"on_record":95,"teach_mouse_release":46,"teach_text_input":49,"Mode":2,"on":1,"draw_teach_screen":110,"teach_key_release":56,"draw_learn_screen":4,"draw_recording_button":133,"on.draw":5,"draw_playing_button":130,"Words":12,"file_exists":176,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"save_wav":171,"learn_keychord_press":59,"Playing_source":126,"learn_text_input":60,"exists":175,"learn_key_release":61}