public void record() { String name; try { name = JSONPresets.getPresets().getCurrent().getString("name"); if (sequencer.isAdded()) { name += "_" + JSONSequencerPresets.getPresets().getCurrent().getString("name"); } } catch (Exception e) { e.printStackTrace(); name = "errorerrorerror"; } File outfolder = new File(Environment.getExternalStorageDirectory(), "Plasma Sound"); outfolder.mkdirs(); String filename = pdman.recordOnOff(outfolder, name, true); MiscDialogs.checkForSoundcloudAndDoThatOrNot(this, filename, name); }
@Override public void onStart() { super.onStart(); JSONSequencerPresets.getPresets().addListener(this); }
@Override public void onStop() { super.onStop(); JSONPresets.getPresets().removeListener(this); JSONSequencerPresets.getPresets().removeListener(this); }
public void loadSequenceSettings() { JSONSequencerPresets.getPresets().showLoadMenu(this, sequencer); }
public void saveSequenceSettings() { JSONSequencerPresets.getPresets().showSaveMenu(this, sequencer); }