Package jm.audio.io

Examples of jm.audio.io.SampleIn


    public AudioSampleInst(String fileName) {
        this.fileName = fileName;
    }

    public void createChain() {
        SampleIn sin = new SampleIn(this, fileName, true, true); //, 4, 44100, 88200); // cahce and wholefile booleans
        // Envelope env = new Envelope(sin, new double[] {0.0, 0.0, 0.001, 1.0, 0.999, 1.0, 1.0, 0.0});
    }
View Full Code Here


     * primary audio object(s) are the one or more
     * objects which head up the chain(s)
     */
    public void createChain() {
        //define the chain
        SampleIn sin = new SampleIn(this, fileName);
        NoteBufferReversed nb = new NoteBufferReversed(sin);
        ReSample reSample = new ReSample(nb, this.baseFreq);
        Volume vol = new Volume(reSample, (float) 1.0);
        Envelope env = new Envelope(vol, pointArray);
        SampleOut sout = new SampleOut(env, "jmusic.tmp");
View Full Code Here

                SampleOut sout = new SampleOut(pan);
            } else {
                // if sounds is < 0 or > 6 and < 11 then it will
                // process an audio file. Default is 7.  Again it is
                // very open ended to accommodate wrong input numbers.
                SampleIn grin = new SampleIn(this, this.fileName);
                //if (premapped) {
//      grain = new Granulator(grin,durationArray,gpsArray,freqArray,ri,rgd,rf);
//        } else {
                grain = new Granulator(grin, 44100, 2, 50, 100);
                //}
View Full Code Here

     * primary audio object(s) are the one or more
     * objects which head up the chain(s)
     */
    public void createChain() {
        //define the chain
        SampleIn sin = new SampleIn(this, fileName);
        sin.setWholeFile(wholeFile);
        ReSample reSample = new ReSample(sin, this.baseFreq);
        // modulate filter cutoff
        Oscillator sineMod = new Oscillator(this, Oscillator.SINE_WAVE, sin.getSampleRate(),
                sin.getChannels(), Oscillator.FREQUENCY, (float) modRate);
        sineMod.setAmp((float) this.modAmount * this.cutoff);
        // sub
        Oscillator subOsc = new Oscillator(this, Oscillator.SQUARE_WAVE, sin.getSampleRate(),
                sin.getChannels());
        subOsc.setFrqRatio(0.5f);
        subOsc.setAmp((float) subAmp);
        Add adder = new Add(new AudioObject[]{reSample, subOsc});
        // filter
        Filter filt = new Filter(new AudioObject[]{adder, sineMod}, this.cutoff, Filter.LOW_PASS);
View Full Code Here

     * primary audio object(s) are the one or more
     * objects which head up the chain(s)
     */
    public void createChain() {
        //define the chain
        SampleIn sin = new SampleIn(this, fileName);
        SampleIn sin2 = new SampleIn(this, fileName);
        SampleIn sin3 = new SampleIn(this, fileName);
        SampleIn sin4 = new SampleIn(this, fileName);


        Comb comb = new Comb(sin, 20, 0.5);
        Comb comb2 = new Comb(sin2, 100, 0.4);
        Comb comb3 = new Comb(sin3, 70, 0.6);
View Full Code Here

                //SampleOut sout = new SampleOut(pan);
            } else {
                // if sounds is < 0 or > 6 and < 11 then it will
                // process an audio file. Default is 7.  Again it is
                // very open ended to accommodate wrong input numbers.
                SampleIn grin = new SampleIn(this, this.fileName);
                grain = new Granulator(grin, sampleRate, channels, 50, 100);
                vol = new Volume(grain, 0.95f);
                //Volume vol2 = new Volume(vol,0.1f);
                pan = new StereoPan(vol);
                //SampleOut sout = new SampleOut(pan);
View Full Code Here

     * primary audio object(s) are the one or more
     * objects which head up the chain(s)
     */
    public void createChain() {
        //define the chain
        SampleIn sin = new SampleIn(this, fileName);

        ReSample reSample = new ReSample(sin, this.baseFreq);
        Volume vol = new Volume(reSample);
        StereoPan span = new StereoPan(vol);
        if (wholeFile) {
            sin.setWholeFile(wholeFile);
            if (output == RENDER) sout = new SampleOut(span);
        } else {
            Envelope env = new Envelope(span, points);
            if (output == RENDER) sout = new SampleOut(env);
        }
View Full Code Here

TOP

Related Classes of jm.audio.io.SampleIn

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.