/* Dette er et enkelt eksempel pŒ hvordan du kan arbeide med lyd ved hjelp av klassen * MatInf1100Sound. Med denne som utgangspunkt burde det v¾re overkommelig Œ programmere de * andre filtrene i oppgave 1 i oblig2. */ import java.util.Random; class Filters { public static void main(String [] args) throws Exception { MatInf1100Sound lyd, lyd1; int i, n; short data []; double sampleRate; double t; short a[]; lyd = MatInf1100Sound.getSampleSound();//Genererer strengelyden System.out.println("Den gode, gamle strengen!"); lyd.play(); lyd = MatInf1100Sound.getSoundFromFile("yenrab.au");//Leser fra fil System.out.println("Framlengs"); lyd.play(); a = lyd.samples; n = a.length; data = new short[n]; for (i=0; i