Skip to content

Commit

Permalink
preparing project for release
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Sep 7, 2016
1 parent e60dffe commit 6c79965
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ out
hs_err_pid*.log
src/content/visuals
config
visuals
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: ch.bildspur.visualpush.Main

Manifest-Version: 1.0
Main-Class: ch.bildspur.visualpush.Main

6 changes: 5 additions & 1 deletion src/ch/bildspur/visualpush/sketch/RenderSketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
public class RenderSketch extends PApplet {

final static String CONFIG = "djrush.json";
final static String CONFIG = "guenther.json";

final static int PUSH_DISPLAY_REFRESH_STEP = 1;

Expand Down Expand Up @@ -208,6 +208,10 @@ public PGraphics getOutputScreen() {
return outputScreen;
}

public ConfigurationController getConfig() {
return config;
}

public DataModel<Float> getGlobalOpacity() {
return globalOpacity;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ public class ConfigurationController extends PushController {

protected RenderSketch sketch;

String visualPath = "";

List<ConfigLoadedHandler> configLoadedListener = new ArrayList<>();

public void addConfigLoadedListener(ConfigLoadedHandler observer)
{
configLoadedListener.add(observer);
}

public String getVisualPath()
{
return visualPath;
}

public void setup(PApplet sketch) {
super.setup(sketch);
this.sketch = (RenderSketch)sketch;
Expand All @@ -36,6 +43,7 @@ public void setup(PApplet sketch) {
public void load(String fileName)
{
JSONObject root = sketch.loadJSONObject(CONFIG_DIR + fileName);
visualPath = root.getString("visualPath");
JSONArray clips = root.getJSONArray("clips");

// load clips from config
Expand Down
3 changes: 2 additions & 1 deletion src/ch/bildspur/visualpush/sketch/state/AddClipState.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import ch.bildspur.visualpush.event.ControlChangeHandler;
import ch.bildspur.visualpush.event.midi.MidiEventListener;
import ch.bildspur.visualpush.push.color.RGBColor;
import ch.bildspur.visualpush.sketch.RenderSketch;
import ch.bildspur.visualpush.sketch.controller.ClipController;
import ch.bildspur.visualpush.ui.FaderListControl;
import ch.bildspur.visualpush.ui.ListElement;
Expand Down Expand Up @@ -125,7 +126,7 @@ public void controlChange(int channel, int number, int value) {


// load clips from folder
for(Path path : fileList(ContentUtil.getContent("visuals/")))
for(Path path : fileList(((RenderSketch)sketch).getConfig().getVisualPath()))
{
clipFiles.add(new ListElement(path, path.getFileName().toString()));
}
Expand Down
7 changes: 1 addition & 6 deletions src/ch/bildspur/visualpush/util/ContentUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
public class ContentUtil {
public static String getContent(String name)
{
try {
return ContentUtil.class.getResource("/content/" + name).toURI().getPath();
} catch (URISyntaxException e) {
e.printStackTrace();
return null;
}
return "content/" + name;
}
}
Binary file removed src/content/visuals/old_projects/circle_enc.mov
Binary file not shown.
Binary file not shown.
Binary file removed src/content/visuals/old_projects/fire_clip_enc.mov
Binary file not shown.
Binary file not shown.
Binary file removed src/content/visuals/old_projects/lightblur_enc.mov
Binary file not shown.
Binary file not shown.
Binary file removed src/content/visuals/old_projects/milk_enc.mov
Binary file not shown.
Binary file removed src/content/visuals/old_projects/milk_zoom_enc.mov
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/content/visuals/old_projects/short_smoke_enc.mov
Binary file not shown.
Binary file removed src/content/visuals/old_projects/starfall_enc.mov
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/content/visuals/old_projects/tunnel_enc.mov
Binary file not shown.

0 comments on commit 6c79965

Please sign in to comment.