Package de.maramuse.soundcomp.process

Examples of de.maramuse.soundcomp.process.SourceStore


  @Override
  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(connectionIndex==StandardParameters.IN.i){
    loopstart=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.IN_IMAG.i){
    loopend=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.GATE.i){
    gate=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.FACTOR.i){
    factor=new SourceStore(source, sourceIndex);
  }
  sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            int sourceIndex) throws UnknownConnectionException,
      TypeMismatchException {
  if(connectionIndex<=0&&(-connectionIndex<nChannels)){
    this.sources[-connectionIndex]=new SourceStore(source, sourceIndex);
  }
  sourceStoreMap.put(connectionIndex, new SourceStore(source, sourceIndex));
  }
View Full Code Here

  @Override
  public void setSource(int connectionIndex, NamedSource source, int sourceIndex)
    throws UnknownConnectionException, TypeMismatchException {
  if(connectionIndex==StandardParameters.MAXDELAY.i){
    // TODO check whether it's a constant?
    maxDelay=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.INTENSITY.i){
    intensity=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.FREQUENCY.i){
    frequency=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.DELAY.i){
    delay=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.DEPTH.i){
    depth=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.MODULATION.i){
    modulation=new SourceStore(source, sourceIndex);
  }else if(connectionIndex==StandardParameters.IN.i){
    in=new SourceStore(source, sourceIndex);
  }
  }
View Full Code Here

            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

  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

      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

  @Override
  public void setSource(int connectionIndex, NamedSource source,
            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;
View Full Code Here

            int sourceIndex) throws UnknownConnectionException,
    TypeMismatchException {
  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

TOP

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

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.