WIKPYMSPVUBU4F6NAUAM7WD7RMXCYZGWZ2Y2ZRVVQLYPYO65SQ3AC
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif love.filesystem.exists(Words[word_idx].contents..'.sounddata') then
Words[word_idx].recording = love.sound.newSoundData(Words[word_idx].contents..'.sounddata')
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
{"teach_text_input":49,"Recording_word":138,"on.draw":5,"Words":12,"on.initialize":7,"on_play":96,"Font_height":8,"learn_mouse_press":57,"fw_parent":164,"learn_mouse_release":58,"fw_app":"spell-cards","learn_keychord_press":59,"on":1,"learn_key_release":61,"on.mouse_press":51,"draw_record_button":140,"on.mouse_release":52,"draw_play_button":141,"draw_new_word_button":117,"on.key_release":55,"on.text_input":54,"Cursor_word":24,"play":165,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":162,"draw_learn_screen":4,"draw_teach_screen":110,"draw_recording_button":133,"draw_teach_word":68,"learn_text_input":60,"on_record":95,"draw_playing_button":130,"Line_height":9,"teach_mouse_press":88,"Playing_source":126,"teach_mouse_release":46,"Recording_device":132,"Mode":2,"on.keychord_press":53,"teach_key_release":56,"teach_keychord_press":47}
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif love.filesystem.exists(Words[word_idx].contents..'.sounddata') then
Words[word_idx].recording = love.audio.newSoundData(Words[word_idx].contents..'.sounddata')
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
{"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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":162,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":163,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":164,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif love.filesystem.exists(Words[word_idx].contents..'.sounddata') then
Playing_source = love.audio.newSoundData(Words[word_idx].contents..'.sounddata')
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = 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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":162,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":162,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":163,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
record = function(word_idx)
if Recording_device then
Words[word_idx].recording = Recording_device:getData()
Recording_device:stop()
if Words[word_idx].recording then
love.filesystem.write(Words[word_idx].contents..'.sounddata', Words[word_idx].recording:getString())
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()
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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":162,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":161,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":159,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
record = function(word_idx)
if Recording_device then
Words[word_idx].recording = Recording_device:getData()
Recording_device:stop()
if Words[word_idx].recording then
print('saving')
love.filesystem.write(Words[word_idx].contents..'.sounddata', Words[word_idx].recording:getString())
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()
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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":161,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":160,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":159,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
record = function(word_idx)
if Recording_device then
Words[word_idx].recording = Recording_device:getData()
Recording_device:stop()
love.filesystem.write(Words[word_idx].contents..'.sounddata', Words[word_idx].recording:getString())
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()
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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":160,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":159,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":159,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif love.filesystem.exists(Words[word_idx].contents..'.sounddata') then
print('trying to load')
Playing_source = love.audio.newSoundData(Words[word_idx].contents..'.sounddata')
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = 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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":157,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":158,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":159,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
play = function(word_idx)
if Words[word_idx].recording then
Playing_source = love.audio.newSource(Words[word_idx].recording)
elseif love.filesystem.exists(Words[word_idx].contents+'.sounddata') then
print('trying to load')
Playing_source = love.audio.newSoundData(Words[word_idx].contents+'.sounddata')
else
Playing_source = love.audio.newSource('sample.wav', 'static')
end
Playing_source:play()
Recording_device = 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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":157,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":157,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":158,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}
record = function(word_idx)
if Recording_device then
Words[word_idx].recording = Recording_device:getData()
Recording_device:stop()
love.filesystem.write(Words[word_idx].contents+'.sounddata', Words[word_idx].recording:getString())
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()
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,"Playing_source":126,"on_new_word_button":118,"new_word":64,"Recording_device":132,"on_word":80,"to_word_idx":94,"Recording_word":138,"record":157,"draw_teach_word":68,"on_play":96,"teach_mouse_press":88,"teach_mouse_release":46,"fw_parent":156,"teach_keychord_press":47,"on":1,"teach_key_release":56,"teach_text_input":49,"learn_keychord_press":59,"on.draw":5,"Mode":2,"Words":12,"play":155,"on.initialize":7,"draw_new_word_button":117,"Font_height":8,"learn_mouse_press":57,"Line_height":9,"learn_mouse_release":58,"Cursor_word":24,"draw_playing_button":130,"on_record":95,"learn_text_input":60,"draw_recording_button":133,"learn_key_release":61,"fw_app":"spell-cards","draw_teach_screen":110,"draw_learn_screen":4}