Package com.neophob.sematrix.core.mixer

Examples of com.neophob.sematrix.core.mixer.Mixer


   
   
    private Visual createVisual(MatrixData matrix, ColorSet col) {
      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new PassThruMixer();
      return new Visual(g,e,m,col);
    }
View Full Code Here


      case CHANGE_MIXER:
        try {
          //the new method - used by the gui
          int nr = col.getCurrentVisual();
          tmp=Integer.parseInt(msg[1]);
          Mixer m = col.getPixelControllerMixer().getMixer(tmp);
          m.getId();
          col.getVisual(nr).setMixer(m);
        } catch (Exception e) {
          LOG.log(Level.WARNING, IGNORE_COMMAND, e);
        }
        break;
View Full Code Here

     * @return
     */
    private Visual createVisual(MatrixData matrix, ColorSet col) {
      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new PassThruMixer();
      return new Visual(g,e,m,col);
    }
View Full Code Here

    int additionalVisuals = 1+ph.getNrOfAdditionalVisuals();
    LOG.log(Level.INFO, "Initialize "+(nrOfScreens+additionalVisuals)+" Visuals");
    try {
      Generator genPassThru = pixelControllerGenerator.getGenerator(GeneratorName.PASSTHRU);
      Effect effPassThru = pixelControllerEffect.getEffect(EffectName.PASSTHRU);
      Mixer mixPassThru = pixelControllerMixer.getMixer(MixerName.PASSTHRU);
      for (int i=1; i<nrOfScreens+additionalVisuals+1; i++) {
        Generator g = pixelControllerGenerator.getGenerator(
            GeneratorName.values()[ i%(GeneratorName.values().length) ]
            );
        if (g==null) {
View Full Code Here

   * Sets the mixer.
   *
   * @param index the new mixer
   */
  public void setMixer(int index) {
    Mixer m = Collector.getInstance().getPixelControllerMixer().getMixer(index);
    if (m!=null) {
      this.mixer = m;     
    }
  }
View Full Code Here

      PixelControllerEffect pce = new PixelControllerEffect(matrix, sound);
      pce.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Effect eff: pce.getAllEffects()) {
        eff.getBuffer(v.getBuffer());
View Full Code Here

      PixelControllerResize pcr = new PixelControllerResize();
      pcr.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (IResize rsz: pcr.getAllResizers()) {
        BufferedImage bi = rsz.createImage(v.getBuffer(), matrix.getBufferXSize(), matrix.getBufferYSize());
View Full Code Here

        Output output = new NullDevice(ph);
     
      FileUtils fileUtils = new FileUtils();
      Collector.getInstance().init(fileUtils, ph);

      Mixer m = new PassThruMixer();
      ColorSet c = new ColorSet("JUNIT", new int[]{123233,232323,100,200});

      LayoutModel lmDefault = new LayoutModel(1, 1, 0, 0, 0);
      LayoutModel lmBox1 = new LayoutModel(2, 1, 0, 0, 0);
      LayoutModel lmBox2 = new LayoutModel(2, 1, 32, 32, 0);
View Full Code Here

      PixelControllerMixer pcm = new PixelControllerMixer(matrix, sound);
      pcm.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Mixer mix: pcm.getAllMixer()) {
        //System.out.println(mix);
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.mixer.Mixer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.