freq and amplitud example