X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Moosique.java;h=bb90b765b69492f5d2da3a6334e507de62f46825;hb=c1e5f1aeab138bb0c9f8adaa6d5c78e25067db7c;hp=c2006faff375c1c093596acc32fe5c2e5f988e2e;hpb=80becb8c5f94bf0a46219ae678c7996ed4d111bc;p=moosique.git diff --git a/Moosique.java b/Moosique.java index c2006fa..bb90b76 100644 --- a/Moosique.java +++ b/Moosique.java @@ -244,16 +244,19 @@ public class Moosique { /** * Saves the current sequence to the given filename - * @param filename the filename to use + * @param file the filename to use */ - public static void saveAs(String filename) throws IOException { - MidiSystem.write(seq, 1, new File(filename)); + public static void saveAs(String file) { + try { + MidiSystem.write(seq, 1, new File(filename)); + } catch (IOException e) {} + filename = file; } /** * Saves the current sequence to the previously given filename. */ - public static void save() throws IOException { + public static void save() { saveAs(filename); }