Package de.maramuse.soundcomp.process

Examples of de.maramuse.soundcomp.process.UnknownConnectionException


  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid source for TDHS");
  if(connectionIndex==StandardParameters.IN.i){
    inputHP.setSource(StandardParameters.IN.i, source, sourceIndex);
    if(MODE==1)
    svf1.setSource(connectionIndex, source, sourceIndex);
  }else if(connectionIndex==StandardParameters.FACTOR.i){
    factor=new SourceStore(source, sourceIndex);
  }else
    throw new UnknownConnectionException("attempt to set unkown TDHS parameter");
  }
View Full Code Here


  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid source for FreqShift");
  if(connectionIndex==StandardParameters.FREQUENCY.i){
    freq=new SourceStore(source, sourceIndex);
    cos.setSource(connectionIndex, source, sourceIndex);
    sourceMap.put(StandardParameters.FREQUENCY.i, freq);
  }else if(connectionIndex==StandardParameters.IN.i){
    in=new SourceStore(source, sourceIndex);
    ph.setSource(connectionIndex, source, sourceIndex);
    sourceMap.put(StandardParameters.IN.i, in);
  }else
    throw new UnknownConnectionException("attempt to set unkown FreqShift parameter");
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid ParametricAllPass source");
  sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
  if(connectionIndex==StandardParameters.Q.i||
        connectionIndex==StandardParameters.FREQUENCY.i||
        connectionIndex==StandardParameters.IN.i){
    sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
    nsetSource(nativeSpace, connectionIndex, source.getNativeSpace(), sourceIndex);
  }else
    throw new UnknownConnectionException(
      "attempt to set unknown parameter for StateVariableFilter");
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(connectionIndex!=StandardParameters.IN.i)
    throw new UnknownConnectionException("attempt to set invalid calculation parameter");
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid calculation parameter source");
  in=new SourceStore(source, sourceIndex);
  sourceMap.put(StandardParameters.IN.i, in);
  }
View Full Code Here

            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  SourceStore ss=new SourceStore(source, sourceIndex);
  sourceStoreMap.put(connectionIndex, ss);
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid signal shaping source");
  if(connectionIndex==StandardParameters.IN.i){
    in=ss;
  }else if(connectionIndex==StandardParameters.NONLINEARITY.i){
    nonlin=ss;
  }else
    throw new UnknownConnectionException("attempt to provide unkown signal shaping parameter");
  }
View Full Code Here

  if(connectionIndex==StandardParameters.IN.i||
    connectionIndex==StandardParameters.LOW.i||
    connectionIndex==StandardParameters.HIGH.i)
    sourceMap.put(connectionIndex, new SourceStore(source, sourceIndex));
  else
    throw new UnknownConnectionException("attempt to provide unkown signal shaping parameter");
  }
View Full Code Here

   */
  @Override
  public void setSource(int connectionIndex, NamedSource source, int sourceIndex)
    throws UnknownConnectionException, TypeMismatchException {
  if(connectionIndex!=StandardParameters.IN.i)
    throw new UnknownConnectionException("MDCT only knows IN connection");
  input=new SourceStore(source, sourceIndex);
  sourceMap.put(StandardParameters.IN.i, input);
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
        TypeMismatchException {
  if(connectionIndex!=StandardParameters.IN.i&&connectionIndex!=StandardParameters.IN_IMAG.i)
    throw new UnknownConnectionException("attempt to set invalid calculation parameter");
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid calculation parameter source");
  if(connectionIndex==StandardParameters.IN.i){
    in1=new SourceStore(source, sourceIndex);
    sourceMap.put(StandardParameters.IN.i, in1);
  }else{
    in2=new SourceStore(source, sourceIndex);
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid source for PseudoHilbert");
  if(connectionIndex==StandardParameters.IN.i){
    sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
    nsetSource(nativeSpace, connectionIndex, source.getNativeSpace(), sourceIndex);
  }else
    throw new UnknownConnectionException("attempt to set unkown parameter for PseudoHilbert");
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(connectionIndex!=StandardParameters.IN.i)
    throw new UnknownConnectionException("attempt to set unknown parameter for PinkFilter");
  if(!source.getSourceTypes().containsKey(sourceIndex))
    throw new UnknownConnectionException("attempt to set invalid input for PinkFilter");
  this.source=new SourceStore(source, sourceIndex);
  sourceStoreMap.put(StandardParameters.IN.i, this.source);
  }
View Full Code Here

TOP

Related Classes of de.maramuse.soundcomp.process.UnknownConnectionException

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.